C# 无法在JetBrains Rider中生成或运行我的.NET应用程序

C# 无法在JetBrains Rider中生成或运行我的.NET应用程序,c#,asp.net,asp.net-mvc,jetbrains-ide,rider,C#,Asp.net,Asp.net Mvc,Jetbrains Ide,Rider,我正在Ubuntu 20.04.1上试用JetBrains Rider,我刚刚从OneDrive下载了一个.NET应用程序到Linux机器上。当我打开JetBrains Rider时,无论何时我想要运行或构建我的应用程序,都会出现以下错误: Done building project "InterviewTest.csproj" -- FAILED. Build FAILED. /usr/lib/mono/msbuild/Current/bin/Microsoft.Com

我正在Ubuntu 20.04.1上试用JetBrains Rider,我刚刚从OneDrive下载了一个.NET应用程序到Linux机器上。当我打开JetBrains Rider时,无论何时我想要运行或构建我的应用程序,都会出现以下错误:

Done building project "InterviewTest.csproj" -- FAILED.

Build FAILED.

/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2101,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Entity". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
CSC : error CS0041: Unexpected error writing debug information -- 'Operation is not supported on this platform.'
    1 Warning(s)
    1 Error(s)

Time Elapsed 00:00:01.42

我以前尝试过删除以下两个软件包:

  • Microsoft.CodeDom.Providers.DotNetCompilerPlatform
  • Microsoft.Net.Compilers
正如在这一问题中所建议的那样:

但突出显示的解决方案似乎对我不起作用


更新:我刚刚意识到这个项目可能不是一个>NET标准应用程序。该应用程序似乎在Windows上运行良好,但根据Jetbrains网站,我在linux上运行该应用程序应该不会有问题。

如Lex所述,包
System.Web.Entity
不是符合.NET标准的包。如果你想运行它,你必须尝试在Mono上运行它,方法是转到
Rider
Preferences
Build、Execution、Deployment
工具集和Build
使用MSBuild version并选择Mono运行时。

这是否回答了你的问题?不,这并没有解决我的问题,我尝试了潜在的解决方案,但我得到了同样的结果。我也在使用Ubuntu20.04.1你在做一个奇怪的项目
System.Web.Entity
仅被视为Windows,并且是.NET Framework独有的。NET标准项目不应将其用作参考。