How to make MvcBuildViews a continuation of other error views?

I have a convenient external utility for visual studio to create the current project with MvcBuildViews enabled.

Arguments: /m:2 $(ProjectFileName) /p:MvcBuildViews=true Command Line: C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /m:2 "ProviderPortal.csproj" /p:MvcBuildViews=true

At any time, an error in the presentation appears, it stops at this and reports it. I want to know all the views that have errors, and not just dwell on the first.

How can I tell Aspnet-Compiler to continue errors? Or is there a way to get msbuild to use an aspnet compiler for each view instead, rather than a one-time call?

+4
source share
1 answer

You can try setting ContinueOnError to ErrorAndContinue:

 <Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'"> <AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" ContinueOnError="ErrorAndContinue" /> </Target> 

http://msdn.microsoft.com/en-us/library/ms171484.aspx

0
source

All Articles