Share c# class source code between several projects

前端 未结 7 801
遥遥无期
遥遥无期 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:44

    You could create a library project that has this class this way all you have to do is add a reference to that project.

    If that is no option you could use "Right click -> add existing item -> Add as link" this way you only have one copy of the code but it can exist in multiple projects.

提交回复
热议问题