2017-10-02 8 views

답변

1

TFS에서 Asp.net MVC 뷰를 미리 컴파일 할 수 있습니다.

당신은 MvcBuildViews 속성이 true로 설정되어있는 경우에만 실행하는 새로운 BuildViews 대상을 소개 Extend the Visual Studio Build Process해야합니다. 기사 아래

<Target Name="BuildViews" Condition="'$(MvcBuildViews)'=='true'" AfterTargets="Build"> 
    <Message Importance="normal" Text="Precompiling views" /> 
    <AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" /> 
</Target> 

참조, 자세한 내용은이를 참조 :

Turn on Compile-time View Checking for ASP.NET MVC Projects in TFS Build 2010