the code:
if $(ConfigurationName) == Release (
cd $(ProjectDir)
nuget spec Entities -f
nuget pack DeusPak.Entities.csproj -Prop Configuration=Release
nuget push DeusPak.Entities.$(version).nupkg $(MYGET_API_KEY) -Source http:
)
I just started playing with NuGet and want to know how to include the version number in my NuGet package. I am currently hard-coded it into a post-build event, which is obviously not what I want to keep doing. Can anyone help?
This is my current event after build:
if $(ConfigurationName) == Release (
cd $(ProjectDir)
nuget spec Dev-f
nuget pack Dev.csproj -Prop Configuration=Release
nuget push Dev.1.0.0.0.nupkg $(MYGET_API_KEY) -Source http:
)
Update:
OK, I was able to create a DLL with the correct version number with the version automatically added:
if $(ConfigurationName) == Release (
cd $(ProjectDir)
nuget spec Dev -f
nuget pack Dev.csproj -Prop Configuration=Release
nuget push Dev.$(version).nupkg $(MYGET_API_KEY) -Source http:
)
But this version does not appear on my MyGet package list. How can I show it so that it can be downloaded? Or can this be done only manually by clicking "Add Package"?
source
share