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 ...
-
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!
-
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!
-
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 -
-
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 -
-
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
Similar Threads
-
By Application Development in forum DOTNET
Replies: 0
Last Post: 12-05-2007, 12:29 AM
-
By Application Development in forum Python
Replies: 0
Last Post: 09-23-2007, 05:57 PM
-
By Application Development in forum Python
Replies: 1
Last Post: 07-03-2007, 01:17 PM
-
By Application Development in forum DOTNET
Replies: 0
Last Post: 06-13-2007, 09:26 AM
-
By Application Development in forum DOTNET
Replies: 3
Last Post: 04-29-2005, 07:25 AM