Reputation: 315
I'm trying out JetBrains Rider on Ubuntu 20.04.1, and I just downloaded a .NET application from my OneDrive to my Linux machine. When I open JetBrains Rider and try to run or build my app the following error appears:
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
I previously tried removing the following 2 packages:
as suggested in this question: CSC: error CS0041: Unexpected error writing debug information -- 'Operation is not supported on this platform.'
But the highlighted solution didn't seem work for me.
UPDATE: I just realized that this project may not be a .NET Standard application. The app seems to work fine on Windows, but according to the JetBrains website, I shouldn't have a problem running this app on Linux.
Upvotes: 1
Views: 8802
Reputation: 9281
As Lex mentioned, the package System.Web.Entity
is not a .NET Standard compliant package. If you want to run it you'll have to try run it against Mono by going to Rider
> Preferences
> Build, Execution, Deployment
> Toolset and Build
> Use MSBuild version
and select the Mono runtime.
Upvotes: 1