Share c# class source code between several projects

前端 未结 7 799
遥遥无期
遥遥无期 2020-12-09 00:59

I have written a class that will handle internal logging in my application. Now I want to use this class in another new and totally separate project.

I could simply

7条回答
  •  春和景丽
    2020-12-09 01:56

    Create a new assembly that contains this class.

    Then all your other projects can refer to this assembly and use the class within.

提交回复
热议问题