dotnet pack behaves differently depending on TargetFramework vs TargetFrameworks #5281
Labels
Functionality:Pack
Resolution:Duplicate
This issue appears to be a Duplicate of another issue
Type:Bug
Milestone
From @jskeet on May 24, 2017 7:41
Steps to reproduce
Create a
csproj
file in an empty directory:Run
dotnet restore
thendotnet pack
. No problems, and a 3K nupkg.Edit the project file to use
<TargetFramework>
singular, and repeat... warnings and a 19MB nupkg.Expected behavior
The same behavior both times.
Actual behavior
Massive difference, basically baking a lot of
Grpc.Core
's contents into the nupkg when the singular XML tag is used.The warnings are of the form:
I don't want them in my package... I'm just trying to add a dependency within a library project. (If I were trying to create a standalone executable package or similar, I could understand it.)
Environment data
dotnet --info
output:Copied from original issue: dotnet/cli#6679
The text was updated successfully, but these errors were encountered: