Click here to Skip to main content
15,881,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
One of our customers uses Visual Studio Online which is based on capabilities of Team Foundation Server (TFS)

We were researching how to do automated Builds and automated Unit Tests using the Visual Studio Online hosted build agent.

We are trying to build one of our Web Applications on it.

Our Web Application solution contains a number of csproj files under the solution.

Note: The Web Applications will build properly and run properly on our local development computers using Visual Studio 2012.

However, when we build the web application on the Visual Studio Online's Hosted Build Agent, it throws the following error about not finding the my application's main dll( my application is called BlahBlah ):

C:\Program Files (x86)\MSBuild\Microsoft\ VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets (182): Could not copy the file "bin\BlahBlah.dll" because it was not found. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets (182): Could not copy the file "bin\BlahBlah.pdb" because it was not found.
Therefore, I checked the various csproj files within our Web Application solutions, and I found the following code:

<content include="bin\BlahBlah.dll">
<content include="bin\BlahBlah.pdb">
In order to make it run properly on the Visual Studio Online's Hosted Build Agent, the above references were replaced by the following:

<content include="bin\BlahBlah.dll" condition="$(IsDesktopBuild) == true">
<content include="bin\BlahBlah.pdb" condition="$(IsDesktopBuild) == true">
<none include="bin\BlahBlah.dll" condition="$(IsDesktopBuild) != true">
<none include="bin\BlahBlah.pdb" condition="$(IsDesktopBuild) != true">
After replacing the references, our application would build properly on the Visual Studio Online's Hosted Build Agent.

However, Should I Exclude references to the bin..project..dll in TFS or Visual Studio ONline Builds? In other words, is my above successful build a "False Pass" ?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900