Octopack and MS Deploy


I'm in the process of migrating a project to the wonderful Octopus Deploy from MSDeploy. But I hit a weird hiccup where Octopack was adding some strange extra files into the bin folder of my web package:

     [CreateOctoPackPackage] OctoPack: Added file: bin\packages\structuremap.3.0.3.116\lib\net40\StructureMap.pdb
     [CreateOctoPackPackage] OctoPack: Added file: bin\packages\structuremap.3.0.3.116\lib\net40\StructureMap.Net4.pdb
     [CreateOctoPackPackage] OctoPack: Added file: bin\packages\structuremap.web.3.0.0.108\lib\net40\StructureMap.Web.pdb

See how the files are within subfolders of the bin folder? Very strange.

So it turns out I was running the MSDeploy and Octopack processes in the same MSBuild:

/p:DeployOnBuild=True /p:DeployTarget=Package /p:RunOctoPack=true

and somehow (I haven't investigated why) that was confusing Octopack somewhat.

I simply removed the /p:DeployOnBuild=True /p:DeployTarget=Package and the weird extra bin files were no longer packaged.

Hope that helps someone :)


Anthony Meehan

Read more posts by this author.


Additional Posts
Share This Post
Twitter Google+ Pinterest Facebook