How do I compile C# code as a library instead of an executable?

后端 未结 5 679
盖世英雄少女心
盖世英雄少女心 2021-01-12 02:56

I have a C# console application in Visual Studio 2010. It has a Main() method as well as a bunch of utility classes. I\'d like those utility classes to be available to other

5条回答
  •  一向
    一向 (楼主)
    2021-01-12 03:35

    Make sure that the classes in your dll project are public.

提交回复
热议问题