web deployment projects not working with team build

Hi -

I have a solution with several web projects and web deployment projects, as well as a class library project. When we use Team Build to build the solution without the web deployment projects, everything works fine and the projects compile, but when we tell it to build the web deployment projects too, I get errors where the deployment projects can't find any of the code that it's supposed to deploy (several classes aren't defined, or msbuild can't find the files specified).

When I look at the project files for the web deployment projects, it has the correct code path for the appropriate web project (i.e., ../ActualWebProject, not ../Inetpub/wwwroot/ActualWebProject). One of the web projects references the class library, which is in a different folder, but I haven't given an explicit hint path to the project file (I thought the project references would work for that).

Has anyone else had problems like this with web deployment projects and msbuild?

Thanks!
Terry

[1000 byte] By [TerryHeath] at [2007-12-21]
# 1

Just take a look to this two blog posts, I think you will find solution to your problem here:

http://blogs.msdn.com/anutthara/archive/2005/11/10/491409.aspx

http://blogs.msdn.com/nagarajp/archive/2005/10/18/482491.aspx

As you can see it's all a question of where is downloading the files for compiling from source control

LuisFraile at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 2

Hey,

I am partner with Terry on this project. We tried to change the setting in the build from any cpu to mixed platforms. But the build gave the warning:

"The specified solution configuration "Debug|Mixed Platforms" is invalid"

So I checked the webproject solution to see if it supports "Mixed Platforms." It doesn't; only debug exists as an option in the configuration manager. I tried to add mixed platforms as a new configuration in the solution but couldn't do it. Could anyone help? Thanks.

Laurius at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 3

Are you still having issues here? In general, the point is that you want to select a Configuration / Platform combination that is available in your solution. Solutions which contain only web projects will typically have only Debug / .NET available. Solutions which contain C# projects will typically have Debug or Release / Any CPU available. Solutions with a mix will default to Debug / Mixed Platforms (which will compile C# projects as Debug / Any CPU and web projects as Debug / .NET).

Hope this helps.

-Aaron

AaronHallberg at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 4

In your deployment project file (.wdproj) make sure that the settings for SourceWebPhysicalPath looks like this (the webfiles is output in _PublishedWebsites on the buildserver)

<SourceWebPhysicalPath Condition="'$(OutDir)' != '$(OutputPath)'">$(OutDir)_PublishedWebsites\[your web-project name]</SourceWebPhysicalPath>
<SourceWebPhysicalPath Condition="'$(OutDir)' == '$(OutputPath)'">..\[your web-project name]</SourceWebPhysicalPath>

Hope it helps!

/Andreas

Andreas?hlund at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...

Visual Studio Team System

Site Classified