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.
精彩评论