开发者

Making a DLL from a C# project?

Is it possible making a DLL file from an existing project in visual studio开发者_Python百科 C# ? instead of giving an exe , i want to supply a DLL file for another person to use my methods in his code. i want to take the project as a whole and supply a DLL. It is already a big project with many components , but its built not right and it will take a whole lot of time to make this code into modules, so i rather give the whole project as a dll.

thanks for any help.


Project properties -> Application tab -> Output type -> Select 'Class library' there.


Do you want to keep the EXE version of the project as well?

If so, create a new project that has a target of assembly in the same solution, then link in the existing .cs / .vb files.

To link:

  • right-click on the project
  • add existing
  • select .cs file
  • click "Add" dropdown arrow
  • select link
  • hit "Add Link" button.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜