NuGet/Home
Auf GitHub ansehenRepository element missing from .nuspec on running nuget pack
Open
#9.142 geöffnet am 6. Feb. 2020
Area:PackageDefinitionFunctionality:PushPriority:2Type:Docshelp wanted
Repository-Metriken
- Stars
- (1.459 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 464T 23h) (1 gemergte PR in 30 T)
Beschreibung
Details about Problem
NuGet product used: NuGet.exe
NuGet version: 5.0.2.5988
VS version : VS 2019 16.5.0 Preview 3.0
Detailed repro steps so we can see the same problem
-
Open .nuspec file and remove type="git" from the repository element. Leave the url attribute there with a url to your repo
-
"type" attribute is optional in nuspec.xsd
-
run nuget pack .\app.nuspec
-
The nuspec generated in the nupkg doesnt have the repository element
-
This causes failures in uploading private packages to GitHub package registry
...
Issue doesnt repro when running pack from VS or running pack on the csproj