Hi,
I want to build the project(.csproj) instead of solution(.sln). I have gone through many sites but unable to find the solution. As a trick I did the following change in ConfigurationToBuild element of TFSBuild.proj file
<
ConfigurationToBuild Include="Release|AnyCPU">
<FlavorToBuild>Release</FlavorToBuild>
<PlatformToBuild>AnyCPU</PlatformToBuild>
</ConfigurationToBuild>
I have removed the space in between "Any" and "CPU" and made it "AnyCPU". It is done for the value of PlatformToBuild element and Include attribute's value. After making this change, I have passed project file information in SolutionToBuild element as follows:
<
SolutionToBuild Include="$(SolutionRoot)\WebApplication6\Web\Web.csproj" />
It worked for me. But it is creating a folder named "AnyCPU" at drop location and in that I am getting Release folder. The only change I observed is that of folder "AnyCPU". In normal scenarios, We will get Release folder only in the drop location. Then the above change is creating "AnyCPU" folder in drop location. I am not sure whether I am going on the right way by modifying the ConfigurationToBuild element values. I want to eliminate the creation of "AnyCPU" folder at drop location.
Any help is appreciated.
Regards,
Ohmsri.