views:

15

answers:

0

I have a nant script calling msbuild on my Team City server. I have Team City check out source from TFS into a directory called C:\Source In my solution I have one website that is dependent on the two class library projects in the same solution.

The idea is that the msbuild will be done in that source directory and then msdeploy will copy everything to my web servers. The two class library projects compile on the server but as soon as it gets to the website it complains that: "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level"

Obviously the c:\Source directory is not setup in IIS, this is just a build server!! What am I missing, is there a command to tell it to compile without the web.config? The solution compiles fine on my local machine that has an IIS site pointing to the root of the folder that I have the solution in.