【发布时间】:2020-10-11 19:08:17
【问题描述】:
我正在 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
我之前尝试删除以下 2 个包:
- Microsoft.CodeDom.Providers.DotNetCompilerPlatform
- Microsoft.Net.Compilers
正如这个问题所建议的那样:CSC: error CS0041: Unexpected error writing debug information -- 'Operation is not supported on this platform.'
但突出显示的解决方案似乎对我不起作用。
更新:我刚刚意识到这个项目可能不是一个 >NET 标准应用程序。该应用程序似乎在 Windows 上运行良好,但根据 Jetbrains 网站,我在 linux 上运行该应用程序应该没有问题。
【问题讨论】:
-
不,没有解决我的问题,我尝试了潜在的解决方案,但得到了相同的结果。我也在使用 Ubuntu 20.04.1
-
你正在做一个奇怪的项目。
System.Web.Entity仅被视为 Windows 且专属于 .NET Framework。 .NET Standard 项目不应将其用作参考。
标签: c# asp.net asp.net-mvc jetbrains-ide rider