Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio MacOS error MSB4057: The target "Build" does not exist in the project

I have created a simple C# .net core console application project in VS MacOS. But I get error MSB4057. There a similar question on stackoverflow but doesn't explain anything how to fix this kind of error.

The problem is same when I create asp.net core project.

Build FAILED.

/Users/abhimanyuaryan/Unity3D/LearnCSharp/LearnCSharp/LearnCSharp.csproj : error MSB4057: The target "Build" does not exist in the project.
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.02

---------------------- Done ----------------------

Build: 1 error, 0 warnings
like image 533
abhimanyuaryan Avatar asked Jan 22 '17 06:01

abhimanyuaryan


1 Answers

It is very important to upgrade Mono 4.8 to its latest build, (in my case)

http://www.mono-project.com

Then the bundled build environment can successfully compile the project.

It seems the built in updater does not upgrade Mono runtime as expected.

Updated: Now the installer should assist you install Mono 5.0 automatically.

like image 76
Lex Li Avatar answered Nov 02 '22 08:11

Lex Li