Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / December 2007

Tip: Looking for answers? Try searching our database.

MSBuild : Building a project without building it's dependencies

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ramshankaryadav@gmail.com - 05 Dec 2007 16:17 GMT
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!
Nicholas Paldino [.NET/C# MVP] - 05 Dec 2007 16:32 GMT
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.

Signature

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

> Hi,
> I'm facing a problem while building a project through MSBuild, this
[quoted text clipped - 4 lines]
> Configuration Manager under solution properties, but how to achive
> same for a project!
ramshankaryadav@gmail.com - 06 Dec 2007 04:57 GMT
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?
[quoted text clipped - 20 lines]
>
> - Show quoted text -
Nicholas Paldino [.NET/C# MVP] - 06 Dec 2007 17:48 GMT
Well, why use NANT still and why not use MSBuild directly?

Signature

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

> Hi Nicholas,
> The problem is that we are migrating from .NET 1.1 to .NET 2.0, and we
[quoted text clipped - 50 lines]
>>
>> - Show quoted text -
Arne Vajhøj - 08 Dec 2007 04:18 GMT
>     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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.