Warning NU5118 packaging RCL with static contents and multi-target frameworks netcoreapp3.1;net5.0 #10253
Labels
Category:Quality Week
Issues that should be considered for quality week
Functionality:Pack
Priority:2
Issues for the current backlog.
Product:dotnet.exe
Type:Bug
Details about Problem
Trying to package a Razor Class Library that contains static contents, and that multi-targets the frameworks
netcoreapp3.1
andnet5.0
, I receive several NU5118 warnings. I'm usingdotnet pack
command from stable .NET 5 SDK. Building works without warnings, packaging no.dotnet.exe --version: 5.0.100
VS version: 16.8.0
Detailed repro steps so we can see the same problem
Add a
wwwroot
directory with a sample static file insideTry to pack it with
dotnet pack
, or VS UI.Logs
Sample Project
RazorClassLibrary1.zip
The text was updated successfully, but these errors were encountered: