Possibilty of removing MVCBuildViews target from a C# ASP .Net project

33 Views Asked by At

In my C# ASP.Net project that utilizes the CoreXT build system, there's a specific target defined as follows:

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

When running MSBuild on Azure DevOps, it's necessary to set MvcBuildViews to true in the command line, but doing so results in an error. Removing the above target configuration resolves the error. Since my project exclusively contains API controllers without any views, will removing this target configuration impact the build process in anyway?

0

There are 0 best solutions below