Visual Studio MacOS错误MSB4057:项目中不存在目标"Build"

Abh*_*yan 7 .net c# compiler-errors xamarin asp.net-core

我在VS MacOS中创建了一个简单的C#.net核心控制台应用程序项目.但我得到错误MSB4057.stackoverflow上有类似的问题,但没有解释如何解决这种错误.

当我创建asp.net核心项目时,问题是一样的.

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
Run Code Online (Sandbox Code Playgroud)

Lex*_* Li 12

将Mono 4.8升级到最新版本是非常重要的(在我的例子中)

http://www.mono-project.com

然后捆绑的构建环境可以成功编译项目.

看起来内置更新程序不会按预期升级Mono运行时.

更新:现在安装程序应该可以帮助您自动安装Mono 5.0.