Open dagood opened 5 years ago
There was an old nuget.exe issue a while ago, https://github.com/NuGet/Home/issues/1290.
Back then we closed it's rather dangerous to change right now. I'm inclined to say the same thing here, but we'll discuss it internally before I close this.
Thanks! Did some searching but didn't think to look so far back, wow. I agree with this from that thread:
At the very least, issue a warning or something when ignoring user input.
Adding .txt
to the file name and reversing it when the SDK runs was an easy workaround in my case (and allowing .nuspec
doesn't really matter to me at this point), but the behavior was really confusing.
Yeah, looking at those comments, I think a warning is a good idea. I'll add a logging tag to the issue.
Details about Problem
NuGet product used:
NuGet version:
5.3.0-rtm.6251+b75150f2f4127a77a166c9552845e86fb24a3282.b75150f2f4127a77a166c9552845e86fb24a3282
Worked before: Unknown.
Detailed repro steps
Extract minimal repro project based on
dotnet new classlib
: PackNuspecContent.zip.dotnet pack
Open
obj\Debug\PackNuspecContent.1.0.0.nuspec
, see the File items including a.nuspec
:Open
bin\Debug\PackNuspecContent.1.0.0.nupkg
, opentargets/
, see that the.nuspec
isn't included:Other
My goal was to include a
nuspec
file in an MSBuild SDK tool package that the consuming project will use withnuget.exe pack
. I don't think I'm blocked by this issue, but it's pretty surprising and took a bit to spot what was happening. 😄