Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

##[error]dotnet command failed with non-zero exit code on the following projects

edit your.csproj and add MvcRazorCompileOnPublish as false

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<PreserveCompilationContext>true</PreserveCompilationContext>
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
</PropertyGroup>
 
PREVIOUS NEXT
Tagged: #command #failed #exit #code #projects
ADD COMMENT
Topic
Name
9+7 =