Creating a .dll file in C#.Net

前端 未结 5 2142
半阙折子戏
半阙折子戏 2020-12-24 06:04

I had created a project which is C# console application project for which I need to call this project dll in another windows application project. I had built the project in

5条回答
  •  半阙折子戏
    2020-12-24 06:36

    You need to make a class library and not a Console Application. The console application is translated into an .exe whereas the class library will then be compiled into a dll which you can reference in your windows project.

    • Right click on your Console Application -> Properties -> Change the Output type to Class Library

    enter image description here

提交回复
热议问题