Also, the errors come from Microsoft DLLs that we are deploying ourselves
so we control which version of them we are using. Somehow having Octopack
installed for the various projects causes a build error with these DLLs
unless I set CopyLocal to false.
To summarize, leaving these DLLs as CopyLocal=True causes a build failure.
Switching them to CopyLocal=False completes the build, but then the DLLs
are not deployed properly.
Thanks John/Paul. If the issue’s not reproducible in VIsualStudio, it is very likely that Paul’s MSBuild-based command line above should reproduce it; i.e.:
I also have this problem. I have a solution that has 3 webservices, two windows services and 2 websites, one with a silverlight app. I use the DevExpress controls, and have copylocal=true on these. When Octopack runs through TeamCity, it attempts to include the devexpress dlls and also the xml files. It borks on the xml files. If I set DeployOnBuild=false, the process succeeds, but in this case my configuration file transformations for all of the web apps does not occur.
For config transforms make sure you have those set as in csproj and set to copy to your deployment directory. If you use deployonbuild=true (if I remember correctly) it does that automatically, but for octopack I needed .csproj to include those files in order to work correctly.
Hello fellow octodeployers
I’m getting a similar error during the octopack step. It errors when it sees a reference to a dll in the GAC. Copy local is set to false for that one, I don’t want it to be included in the package. I also tried to exclude it in the .nuspec (attached) but I still get the same error.