We're using Rider on Windows and Linux. We're migrating to .NET Core, but unfortunately one of our projects will need to stay on .NET Framework 4.7 for now. That's why we need to use multiple target frameworks for some projects: "netcoreapp2.1;net471". When I try to run them with Rider it does not work even though I've selected ".NETCoreApp,Version=2.1" in "Run/Debug Configurations" window. Here's an error:
Microsoft.Common.CurrentVersion.targets(1179, 5): [MSB3644] The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
I guess there should be a way to simply ignore .NET Framework target, but I cannot find it.
Besides that, projects with "net471" are even missing correct syntax highlighting (pretty much everything is red). The only solution I've found out to build the project with Rider is to remove "net471" from csprojs (which is not an option for us as we need quite some transition period).
When building/running with "dotnet" SDK ("dotnet run --project ... --framework netcoreapp2.1") everything works fine.
Any ideas how to work with such project? I'd love to be able to simply select .NET Core 2.1 and just ignore .NET Framework on Linux.