-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet pack "Path to csproj or nuspec file(s) to pack" doesn't work as expected #13674
Comments
Hi @nandun5 - how will be using this task with nuspec file? will you be providing only nuspec file in the command, or do you want to include .sln file as well? |
we are providing the nuspec file with a wildcard as **/*.nuspec |
okay. is the nuspec file taking care of the files to be packaged? so the command won't need the project/sln path? |
thats correct. in our pipelines, we only specify the nuspec file. |
alright! thanks. |
Hi @nandun5 , we have merged the fix . Please let us know if you are still seeing this issue |
Closing as this is resolved |
Required Information
Question, Bug, or Feature?
Type: Bug
Enter Task Name: DotNetCoreCLI@2
dotnet pack command
Environment
Server - Azure Pipelines
Agent - Hosted
HostedVS2017
Issue Description
The task fails when we specify a nuspec file in the "Path to csproj or nuspec file(s) to pack" field. this is the Yaml version what the UI generates:
Errorlogs
Troubleshooting
this seems to be because the dotnet pack tasks expects a csproj or sln. and the nuspec has to be provided with -p:NugetConfig.
this command line works for us
dotnet pack solution1.sln -p:NugetConfig=Project1\Project1.nuspec
how ever the equivalent of this command that the pipeline dotnet task seem to execute is
dotnet pack Project1\Project1.nuspec
Expected behavior
task should not fail when "Path to csproj or nuspec file(s) to pack" field is populated with a nuspec file.
The text was updated successfully, but these errors were encountered: