Make reference to C# code from multiple projects

后端 未结 4 1430
走了就别回头了
走了就别回头了 2020-12-19 04:08

I have a .cs file full of C# code I keep reusing in multiple projects.

Right now I\'m including it in these projects by copying and pasting the code int

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-19 04:37

    Put the code into a separate class library project and reference that in your other projects.

提交回复
热议问题