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.22.214.171.124\lib\net40\StructureMap.pdb [CreateOctoPackPackage] OctoPack: Added file: bin\packages\structuremap.126.96.36.199\lib\net40\StructureMap.Net4.pdb [CreateOctoPackPackage] OctoPack: Added file: bin\packages\structuremap.web.188.8.131.52\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 :)
Read more posts by this author.