问题
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