开发者

Get the compilation fast again

开发者 https://www.devze.com 2023-02-02 03:16 出处:网络
I used SqlMetal to generate a C# file which has nearly 1 million lines of code. Even though it never开发者_如何学运维 changes, it slowed down the compilation process of the whole project. Is there a p

I used SqlMetal to generate a C# file which has nearly 1 million lines of code. Even though it never开发者_如何学运维 changes, it slowed down the compilation process of the whole project. Is there a possibility to get it fast again?


Put the auto generated file in a project of its own. Compile it to an assembly and add a reference to that assembly from the project you want to make fast. This way you don't have to recompile the auto generated file more than once.

0

精彩评论

暂无评论...
验证码 换一张
取 消