Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Get dotnet pack excuted full name path and nuget push in post-build event

$
0
0

I want to build my dll, and use dotnet pack to generate *.nupkg file. Then use nuget push to publish my dll.

dotnet pack --no-buildnuget setapikey xxx-xxx-xxx-xxx-xxx -source xxxxxxxxxxxxxxxxxxxxxxxnuget push yyyyyyyyyyyyyyyyyyyyyyyyy -source xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

So every time I build my project, it automatically generate *.nupkg and publish it.

But I'm stuck in publish. nuget push need to specify the *.nupkg, so how to get the full file name generated by dotnet pack marked green?Now I have to set yyyyyyyyyyyyyyyyyyyyyyyyy every time, it's annoying.

Or is there any way to get package version, so I can build the full file name?

enter image description here


Viewing all articles
Browse latest Browse all 3067

Trending Articles