Welcome to Team System Rocks Sign in | Join | Help
in
Home Blogs Forums Photos Tutorials Files Roller
Notion Solutions Main Site

Project build instead of solution build

Last post 11-13-2008, 1:32 AM by shai_rai. 1 replies.
Sort Posts: Previous
  •  10-31-2008, 9:45 AM

    Project build instead of solution build

    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.

     

  •  11-13-2008, 1:32 AM

    Re: Project build instead of solution build

    Hello,

    If you want to build a project and not the entire solution use:


    Configuration=Debug


    Configuration=Release


    Developer & Senior Consultant
    http://blogs.microsoft.co.il/blogs/shair
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems