MSBuild.exe “website.publishproj” /t:Build /p:Configuration=Release /p:PublishProfile=GIBWEB /p:RunO
ctoPack=true /p:OctoPackPackageVersion=126.96.36.199 /p:OctoPackPublishPackageToHttp=http://Mysite/nuget/packages /p:OctoPackPublishApiKey=API-MYKEY
Would this command work?
I tried it and output is Build successfull but my nuget package is not posted to server.
just for information: other projects nugets are successfully posted to server
Thanks for getting in touch! Is the package created at all? Do you have the package in your bin folder? It is created there even when pushed to a server.
I would hazard a guess it is not only not pushing the package, but also not building the package. Octopack does not work with publish projects.
Are your other projects publish projects? In these cases we recommend either using nuget.exe to pack with a NuSpec or using Octo.exe to pack given a directory.
I got website working but in several steps.
1: used msbuild to published the website
2: Packaged it via Nuget Pack command
3: Published it to octopus via Nuget Push command.
Thanks for posting your solution! I am glad you got this working.