Background
I am utilizing the following:
- VS 2012
- .NET 4.5 apps including an MVC4 app, a C# Domain app, and NUnit projects.
- A custom MSBuild File
- CruiseControl.NET running on a build server
I have the following build targets:
- Clean: deletes the buildartifacts directory
- Init: creates a blank buildartifacts directory
- Compile: compiles the solution
- Test: runs NUnit Tests
- Package: creates a ZIP package for deployment
- Deploy: Deploys package to a remote IIS Server
Problem
- When I run the build from my local machine, it packages and deploys perfectly.
- When CCNet runs the same build target, the files appear to be deployed
Attempted Resolutions / Potential Leads
- I have run the same target in PowerShell from both machines and have seen no errors or warnings on either.
- Because I tell CCNEt to override the framework to point it to the .NET 4.5 files I've copied to the build server, I made my local machine point to the same files when running MSBuild but my local build still worked and deployed.
- In Visual Studio, I have ensured that all content files are marked with a Build Action of "Content" and a Copy to Output setting of "Copy Always".
The Code
- Available in a gist at https://gist.github.com/53ef2a63931d190593f6
- (file has been scrubbed, app name & credentials replaced, etc.)