Actually, the octopus server installed on my local machine, I don't want to use Build Automation tools like TeamCity, TFS, or 3rd party tools like Nant. we use MSBuild.
New in octopus deploy, looking for idea how to get the package version unique number on each vs2017 build. So far know octopus require every package version unique, want to use MS-build command on my vs2017 project that helps me to create a unique number on each successful build.
Recently use following the MSBuild on "Developer Command Prompt for VS2017"
msbuild
/t:build
/p:RunOctoPack=true
/p:OctoPackPackageVersion=1.0.0-BETA-1 /p:OctoPackReleaseNotesFile=ReleaseNotes.txt
/p:OctoPackPublishPackageToHttp=http://localhost/nuget/packages /p:OctoPackPublishApiKey=API-9MQWIWVDKR44YSGYROUGPPFBXX
Is there any way to use any variable with /p:OctoPackPackageVersion which increment in every build.
I am looking for help on following
- After each successful vs2017 build want to create a package?
- How to keep new package not override previous packages?
- How to get a unique version number for each successful build?
If have any query please ask.