阅读背景:

使用Visual Studio时重用代码的最佳方法?

来源:互联网 

I've tried 2 different methods of reusing code. I have a solution full of just class library projects with generic code that I reuse in almost every project I work on. When I get to work on a new project, I will reuse code from this code library in one of 2 ways. I have tried bringing the projects I need from this code library into my project. I have also tried compiling down to a .dll and referencing the .dll from a folder in the root of my current solution. While the 2nd method seems easier and lighter to implement, I always find myself making small tweaks to the original code to fit it into the context of my current project. I know this is a bit of a vague question, but has anyone had success with other methods of reusing class libraries on new solutions?I've tried 2 different methods of reusing code.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: