如何将控制台应用程序转换为.dll? [英] How can I convert a console application to a .dll?
本文介绍了如何将控制台应用程序转换为.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'
这篇关于如何将控制台应用程序转换为.dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文