如何将控制台应用程序转换为.dll?
问题描述:
我正在尝试将用C#编写的应用程序转换为DLL。控制台应用程序接受用户的输入,并通过调用我在项目中导入的服务方法来重置密码。如何将控制台应用程序转换为DLL,以便每当用户希望更改密码时,都会调用我的DLL?
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?
答
右键单击Project-> Properties-> Application-> Output Type:'Class Library'
Right-click Project -> Properties -> Application -> Output Type: 'Class Library'