Rider 2020.2.4 -> Publishing ASP.NET Core 3.1 to Folder fails

I've got a solution that consists of 3 projects.

 

Project 1 -> .NET Core 3.1 Worker Service

Project 2 -> ASP.NET Core 3.1 Web App

Project 3 -> .NET Framework 4.7.2 Console Application

 

I created a publishing profile for both Project 1 and 2.  When I try to publish them they fail because Project 3 has a nuget package that is ONLY compatible with 4.7.2 Framework. 

 

If I unload Project 3 from the solution, publishing then works fine.

 

Log file shows this

 

1>D:\Development\VisualStudio\Solutions\MySolution\src\Project3.UpdateService\Project3.UpdateService.csproj : error NU1202: Package SomeNuget 1.2.2.9 is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1). Package SomeNuget 1.2.2.9 supports: net472 (.NETFramework,Version=v4.7.2) [D:\Development\VisualStudio\Solutions\MySolution\MySolution.sln]
1>D:\Development\VisualStudio\Solutions\MySolution\src\Project3.UpdateService\Project3.UpdateService.csproj : error NU1202: Package SomeNuget 1.2.2.9 is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1) / win-x64. Package SomeNuget 1.2.2.9 supports: net472 (.NETFramework,Version=v4.7.2) [D:\Development\VisualStudio\Solutions\MySolution\MySolution.sln]

 

Visual Studio 2019 handles this with no issues.

 

Help!?

0
4 comments

Hi @...,

 

Would it be possible to send us a sample (similarly structured) solution, so we could reproduce this behavior in our environment? You can use the Upload Service to send us an archive and let us know the Upload ID.

 

Thank you.

0
Avatar
Permanently deleted user

Kirill Filin

 

Upload id: 2020_10_22_L1jmJFvmwgeEmhbC (file: TestRider.zip)

 

 

 

0

Thanks!

 

This issue was fixed in Rider 2020.3. Please, install the Early Preview version of Rider from the Toolbox or download the installer here and let us know if the issue persists.

1
Avatar
Permanently deleted user

Great, good to know it's been addressed!

 

Thanks

0

Please sign in to leave a comment.