/p:RunOctoPack=true is ignored while running with msbuild 2017

Hi There,

I have installed OctoPack with Chocolatey package https://chocolatey.org/packages/OctopusTools. So, this is installed globally.

After that I am tunning following command-
msbuild OctoPackTest.csproj /t:Build /p:Configuration=Release /p:RunOctoPack=true

I don’t see any OctoPack log in the commandline neither it generates any package.

However if I edit the csproj file by adding octopack nuget package reference(whick adds octopack nuget package as development dependency), I can see the log and also package is getting generated.

How can I achieve this without adding octopack as nuget package to the project?

Thanks
Anup Das Gupta

Hi Anup,

The OctopusTools package is our command-line tools, OctoPack is not included in this package.

To use OctoPack as part of your build you have to add the OctoPack NuGet package to your project.

If you don’t want to do that, you’d have to go through the following process:

  1. Publish the application to a folder.
    1a. msbuild /t:Publish
  2. Package the application.
    2a. octo.exe pack
  3. Push the package to a feed that can be used by Octopus.
    3a. octo.exe push

I hope that helps.

Thank you and best regards,
Henrik

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.