How can I convert a console application to a .dll?

2020-08-09 07:25发布

问题:

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'



标签: c# dll console