Zek
Zek

Reputation: 1

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

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?

Upvotes: 0

Views: 64

Answers (0)

Related Questions