问题
I am trying to convert an application written in C# to a DLL. The console application takes in input from the user and resets the password by calling a method of a service that I have imported in my project. How do I convert the console application into a DLL so that, whenever the user wishes to change their password, my DLL is invoked?
回答1:
Right-click Project -> Properties -> Application -> Output Type: 'Class Library'
来源:https://stackoverflow.com/questions/11736628/how-can-i-convert-a-console-application-to-a-dll