MSBuild : Building a project without building it's dependencies - CSharp

This is a discussion on MSBuild : Building a project without building it's dependencies - CSharp ; Hi, I'm facing a problem while building a project through MSBuild, this project is a part of a solution which has several other projects on which it depends, but I want to build this project without building it's dependencies. We ...

+ Reply to Thread
Results 1 to 5 of 5

MSBuild : Building a project without building it's dependencies

  1. Default MSBuild : Building a project without building it's dependencies

    Hi,
    I'm facing a problem while building a project through MSBuild, this
    project is a part of a solution which has several other projects on
    which it depends, but I want to build this project without building
    it's dependencies.
    We can do this for a solution by unselecting projects through
    Configuration Manager under solution properties, but how to achive
    same for a project!

  2. Default Re: MSBuild : Building a project without building it's dependencies

    Instead of running MSBUILD on the solution file, have you tried to run
    it on just the project file?

    Or, you can still run it on the solution file, and target just one
    specific project in the solution using the /t switch.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard.caspershouse.com

    <ramshankaryadav@gmail.com> wrote in message
    news:be9bc727-7393-470f-b96d-23567fa45030@s8g2000prg.googlegroups.com...
    > Hi,
    > I'm facing a problem while building a project through MSBuild, this
    > project is a part of a solution which has several other projects on
    > which it depends, but I want to build this project without building
    > it's dependencies.
    > We can do this for a solution by unselecting projects through
    > Configuration Manager under solution properties, but how to achive
    > same for a project!




  3. Default Re: MSBuild : Building a project without building it's dependencies

    Hi Nicholas,
    The problem is that we are migrating from .NET 1.1 to .NET 2.0, and we
    used NAnt to build our solutions, using <solution> tag like this,
    <solution configuration="${project.config}" failonerror="true"
    outputdir="${output.dir}">
    <projects>
    <include name="myproject.csproj" /
    >

    ...........

    but because of change in the project structure of VS .NET 2005, which
    is MSBuild compliant, our previous build file fails to build.
    After some diagnosis, we found that we need to invoke MSBuild using
    <exec> tag like this
    <exec program="MSBuild" commandline="myproject.vcproj /
    property:Configuration=${project.config};OutputPath=${path::get-full-
    path(output.dir)}" verbose="false"/>

    now the problem is ........
    when I execute this script, it rebuilds it's dependent projects as
    well, which I don't want to do!

    I hope this explanation would be useful to you!

    Thanks in advance!

    Cheers,
    Ram
    On Dec 5, 9:32 pm, "Nicholas Paldino [.NET/C# MVP]"
    <m...@spam.guard.caspershouse.com> wrote:
    > Instead of runningMSBUILDon the solution file, have you tried to run
    > it on just the project file?
    >
    > Or, you can still run it on the solution file, and target just one
    > specific project in the solution using the /t switch.
    >
    > --
    > - Nicholas Paldino [.NET/C# MVP]
    > - m...@spam.guard.caspershouse.com
    >
    > <ramshankarya...@gmail.com> wrote in message
    >
    > news:be9bc727-7393-470f-b96d-23567fa45030@s8g2000prg.googlegroups.com...
    >
    >
    >
    > > Hi,
    > > I'm facing a problem while building a project throughMSBuild, this
    > > project is a part of a solution which has several other projects on
    > > which it depends, but I want to build this project without building
    > > it's dependencies.
    > > We can do this for a solution by unselecting projects through
    > > Configuration Manager under solution properties, but how to achive
    > > same for a project!- Hide quoted text -

    >
    > - Show quoted text -


  4. Default Re: MSBuild : Building a project without building it's dependencies

    Well, why use NANT still and why not use MSBuild directly?

    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard.caspershouse.com

    <ramshankaryadav@gmail.com> wrote in message
    news:315bfa3a-e20f-4745-b35b-f5198d59ef1c@s36g2000prg.googlegroups.com...
    > Hi Nicholas,
    > The problem is that we are migrating from .NET 1.1 to .NET 2.0, and we
    > used NAnt to build our solutions, using <solution> tag like this,
    > <solution configuration="${project.config}" failonerror="true"
    > outputdir="${output.dir}">
    > <projects>
    > <include name="myproject.csproj" /
    >>

    > ..........
    >
    > but because of change in the project structure of VS .NET 2005, which
    > is MSBuild compliant, our previous build file fails to build.
    > After some diagnosis, we found that we need to invoke MSBuild using
    > <exec> tag like this
    > <exec program="MSBuild" commandline="myproject.vcproj /
    > property:Configuration=${project.config};OutputPath=${path::get-full-
    > path(output.dir)}" verbose="false"/>
    >
    > now the problem is ........
    > when I execute this script, it rebuilds it's dependent projects as
    > well, which I don't want to do!
    >
    > I hope this explanation would be useful to you!
    >
    > Thanks in advance!
    >
    > Cheers,
    > Ram
    > On Dec 5, 9:32 pm, "Nicholas Paldino [.NET/C# MVP]"
    > <m...@spam.guard.caspershouse.com> wrote:
    >> Instead of runningMSBUILDon the solution file, have you tried to run
    >> it on just the project file?
    >>
    >> Or, you can still run it on the solution file, and target just one
    >> specific project in the solution using the /t switch.
    >>
    >> --
    >> - Nicholas Paldino [.NET/C# MVP]
    >> - m...@spam.guard.caspershouse.com
    >>
    >> <ramshankarya...@gmail.com> wrote in message
    >>
    >> news:be9bc727-7393-470f-b96d-23567fa45030@s8g2000prg.googlegroups.com...
    >>
    >>
    >>
    >> > Hi,
    >> > I'm facing a problem while building a project throughMSBuild, this
    >> > project is a part of a solution which has several other projects on
    >> > which it depends, but I want to build this project without building
    >> > it's dependencies.
    >> > We can do this for a solution by unselecting projects through
    >> > Configuration Manager under solution properties, but how to achive
    >> > same for a project!- Hide quoted text -

    >>
    >> - Show quoted text -




  5. Default Re: MSBuild : Building a project without building it's dependencies

    Nicholas Paldino [.NET/C# MVP] wrote:
    > Well, why use NANT still and why not use MSBuild directly?


    Maybe he likes NAnt.

    I assume that NAnt still has way more tasks than MSBuild.

    Arne

+ Reply to Thread

Similar Threads

  1. MSBuild : Building a project without building it's dependencies
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 12-05-2007, 12:29 AM
  2. Re: building a GUI
    By Application Development in forum Python
    Replies: 0
    Last Post: 09-23-2007, 05:57 PM
  3. Help building GUI with Tix
    By Application Development in forum Python
    Replies: 1
    Last Post: 07-03-2007, 01:17 PM
  4. Building multiple project to one Build Directory
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 06-13-2007, 09:26 AM
  5. can't build asp.net project after building once (trouble with ISS)
    By Application Development in forum DOTNET
    Replies: 3
    Last Post: 04-29-2005, 07:25 AM