Is there a way to generate a DLL file from Visual Studio Express without explicitly creating a DLL project?

≡放荡痞女 提交于 2019-12-31 03:27:08

问题


Is there a way to generate a DLL file from Visual Studio Express without explicitly creating a DLL project?

EDIT: Maybe my thinking process has gone astray on me, but I am trying to setup NUnit, and thought is needed a dll to run it... Please correct me if I am wrong.


回答1:


Yes, you can change the Project Properties|Application|Output Type to either Windows Application, Console Application or Class Library, thus by selecting Class Library you will output a DLL.

I struggle to think why you'd want to do this though?




回答2:


How do you mean? What exactly are you after?

You can create an exe project and change the output type (project properties)... or you can use csc /target:library at the command line...



来源:https://stackoverflow.com/questions/514900/is-there-a-way-to-generate-a-dll-file-from-visual-studio-express-without-explici

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!