Building Dependent Projects

If you are using a Web Application Project (WAP) as opposed to a Web site, then there is one major flaw in the process followed by the Microsoft.WebDeployment.targets file. The WAP is never built; it is assumed to have already been built. In the case of this example, if the WebApplication1 project was not built and you executed the command msbuild WebApplication1_01.csproj_deploy.wdproj the result would be what is shown in Figure 9-5.

Web Deployment Project failure

Figure 9-5. Web Deployment Project failure

Since the WAP is not being built, the AspNetCompiler task fails because it was unable to load a user control that was contained inside the WAP. In ...

Get Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.