Search
 
SCRIPT & CODE EXAMPLE
 

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>
Comment

dotnet command failed with non-zero exit code on the following projects

Check the project name in the error carefully. Chances are its not actually in your solution .sln ... and wouldn't build if it were. By default, VSTS will try to build all .csproj files regardless whether they are in your solution or not. Remove all .csproj files for projects you don't want to be built.
In my case. I deleted the My.Project directory (which contained the .csproj file) and the build suceeded.
Comment

PREVIOUS NEXT
Code Example
Csharp :: tachyons 
Csharp :: display none asp.net 
Csharp :: vb.net drag window without titlebar 
Csharp :: run a command line from vb.net app 
Csharp :: console writeline 
Csharp :: run in wpf 
Csharp :: c# bool list count true 
Csharp :: how to stop timer in c# windows application 
Csharp :: SQLite Parameters 
Csharp :: c# faker 
Csharp :: sql server query output to json file automatically 
Csharp :: c# Write a program to reverse an array or string 
Csharp :: instantiate c# 
Csharp :: change physics material unity 
Csharp :: dbset 
Csharp :: c# extension 
Csharp :: delete all fields that start with mongo 
Csharp :: or operator in c# 
Csharp :: while loop in c# 
Csharp :: logical operators in c# 
Csharp :: check .net installing 
Csharp :: rename join ta le in many to many 
Csharp :: nuget package TSETMC guide 
Csharp :: c# Class instance 
Csharp :: .net console arguments 
Csharp :: c# multipthreading 
Csharp :: delegate 
Csharp :: how to fill dictionary in c# 
Csharp :: unity update not called 
Csharp :: c# remove duplicate cards 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =