我对c#编程是个新手,特别是对单声道编译器和单声道相关的东西。当我写下
using System;
namespace HelloWorld
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
在mono上开发IDE并点击build按钮
/usr/lib/mono/msbuild/15.0/bin/Microsoft.CSharp.CurrentVersion.targets(5,5): Error MSB4019: The imported project
"/usr/lib/mono/msbuild/15.0/bin/Roslyn/Microsoft.CSharp.Core.targets" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. (MSB4019) (HelloWorld)
这个错误。我做了一些研究,我不能理解任何解决方案,因为我完全是linux上单声道c#编程的初学者。
发布于 2020-07-30 07:07:06
我曾经遇到过“find‘t find Microsoft.CSHARP.Targets”。解决方案是将其更改为"Microsoft.Csharp.targets“。所以也许你可以尝试同样的方法。
https://stackoverflow.com/questions/61720840
复制