473,320 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Is there a way to get Devenv to ignore build dependencies ?

I am wondering if there is a devenv switch that will ignore build
dependencies that are set in .xxproj files. At the command line I am
attempting to build individual projects that I do not want subjected to the
build dependencies set in the project files.
Jun 6 '07 #1
6 5335
Resubmitting same questions due to MSDN setup configuration problems did not
get my questions past filters.

"apr0524" wrote:
I am wondering if there is a devenv switch that will ignore build
dependencies that are set in .xxproj files. At the command line I am
attempting to build individual projects that I do not want subjected to the
build dependencies set in the project files.
Jun 13 '07 #2
Hi,

Since you didn't tell us which version of Visual Studio you're using, I
assume you're using VS2005 and you are probably using following command
line to build a project in a solution:

devenv Solution1.sln /build debug /project
ConsoleApplication1\ConsoleApplication1.csproj

And you found out since the ConsoleApplication1 depends on another project
in the solution, the another project is also built before building
ConsoleApplication1.

If this is the case, you can use msbuild
(%windir%\Microsoft.NET\Framework\v2.0.50727\MSBui ld.exe) to build the
project alone, the project build dependency is stored in the solution file;
when you use msbuild to build the project file alone, dependent project
will not be built first.

However, please note if a project references another project, then in
either case, the referenced project will always be built first.

For more information about msbuild, please see this page:

#MSBuild Command Line Reference
http://msdn2.microsoft.com/en-us/library/ms164311.aspx
Hope this helps. Please reply here to let me know if there's anything else
I can help.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 14 '07 #3
Walter,

Thank you for your reply. Actually we have a mixed VS2003 and VS2005
environment. I will try your suggestion for VS2005 using msbuild. However,
I am still wondering if there is a method in VS2003 to ignore build
dependencies?

Reason I am looking to do this is we build .NET projects grouped together in
a makefilefile called via omake in order to get ClearCase configuration
records for our built deliverables. ClearCase configuration records
generated for deliverables built from a .sln file include entries that imply
a circular dependency between the deliverables even when there are no
dependencies. Just the fact that the deliverables build from the same
solution file creates this undesirable effect on the ClearCase configuration
record. These config recs are then basically usless as a tool for source
impact analysis. I am looking to code dependencies in the makefile for the
individual projects. Building individual projects via the .xxproj file has
been successful in creating a "good" config rec for projects that have no
dependencies coded in the solution file. So now I am looking for a way to
ignore the dependencies coded in the solution and project files since I have
the actual dependencies coded in my makefile.

Thanks for you time.

"Walter Wang [MSFT]" wrote:
Hi,

Since you didn't tell us which version of Visual Studio you're using, I
assume you're using VS2005 and you are probably using following command
line to build a project in a solution:

devenv Solution1.sln /build debug /project
ConsoleApplication1\ConsoleApplication1.csproj

And you found out since the ConsoleApplication1 depends on another project
in the solution, the another project is also built before building
ConsoleApplication1.

If this is the case, you can use msbuild
(%windir%\Microsoft.NET\Framework\v2.0.50727\MSBui ld.exe) to build the
project alone, the project build dependency is stored in the solution file;
when you use msbuild to build the project file alone, dependent project
will not be built first.

However, please note if a project references another project, then in
either case, the referenced project will always be built first.

For more information about msbuild, please see this page:

#MSBuild Command Line Reference
http://msdn2.microsoft.com/en-us/library/ms164311.aspx
Hope this helps. Please reply here to let me know if there's anything else
I can help.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 14 '07 #4
Well, the ProjectDependencies configuration in the solution file is
designed to be used. I don't think there's a switch to ignore the
dependencies.

However, I think it's easy to create some script to remove the dependencies
from the solution file, since you already have the correct build order from
the make file, then using this cleaned solution file to build the project
will be fine.

The solution file is a text file, the dependencies are written such as:

Microsoft Visual Studio Solution File, Format Version 8.00
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "WindowsApplication1",
"WindowsApplication1\WindowsApplication1.vbpro j",
"{144E63EE-2B98-43AA-A9A2-8EB4122CD59D}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassLibrary1",
"ClassLibrary1\ClassLibrary1.csproj",
"{31B6D86E-3E15-42EE-9B2F-D0DEDC5FE4E2}"
ProjectSection(ProjectDependencies) = postProject
{144E63EE-2B98-43AA-A9A2-8EB4122CD59D} =
{144E63EE-2B98-43AA-A9A2-8EB4122CD59D}
EndProjectSection
EndProject
It should be easy to use a regular expression to remove the content
enclosed the ProjectDependencies:

Search for:

ProjectSection\(ProjectDependencies\)\s*=\s*(\w+). *?EndProjectSection

and replace with:

ProjectSection(ProjectDependencies) = \1
EndProjectSection

Here's the C# code used to replace the text:

Regex RegexObj = new
Regex("ProjectSection\\(ProjectDependencies\\)\\s* =\\s*(\\w+).*?EndProjectSe
ction", RegexOptions.Singleline | RegexOptions.IgnoreCase);
ResultString = RegexObj.Replace(SubjectString,
"ProjectSection(ProjectDependencies) = $1\r\nEndProjectSection");
Hope this helps.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 15 '07 #5
Hi,

If you see this, please reply here to let me know the status of this post.
Thanks.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 21 '07 #6
Hi Anne,

In the project file, you can find content such as:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' ==
'Release|AnyCPU' ">

This means the property "Configuration" and "Platform" must have specified
values to make the proeprty group take effect. Therefore, to build the
configuration "Release", you should use following command line:

msbuild annesproject.csproj /property:Configuration=Release

The is assume that the property "Platform" has default value "AnyCPU"; but
you can also specify the Platform property on the command line:

msbuild annesproject.csproj /property:Configuration=Release
/property:Platform=AnyCPU
Hope this helps.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 26 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: SR | last post by:
Hi Would suggest that instead of using the process class and invoking the devenv, u try using the VS.Net object library. This will help you perform the operations in a much more controlled way....
0
by: Craig Leigh | last post by:
I have created a website to perform simple builds for our development staff. When I call devenv.exe from a batch file, a cgi script or a compiled 'C++' program the program times out, won't run or...
6
by: Christopher Bohn | last post by:
(repost under MSDN account) When building a solution that consists of one managed C++ project with a project reference to a C# project in the same solution, there is a bug when trying to build...
0
by: micc | last post by:
I am using devenv to build a solution. The Solution comprises 2 projects :- one C++ and the other a Fortran project. I created this solution by automatically converting a Visual Studio version...
1
by: arkam | last post by:
Hi, I am using VC7.1 to build a big solution (70 projects, lets say project A, B, C, ...). I am using filemon to look at what VC7.1 does while compiling project A. And I see that...
9
by: Brett Romero | last post by:
I have an EXE project with four project dependencies (DLLs). I need to set the order of these builds. However they are automatically ordered by alpha. There aren't any settings to change this. ...
1
by: wandii | last post by:
Hi, I've been working with devenv from the command line for the last couple of days and cannot get to build the msi file correctly. if I excecute the devenv.exe via the command line or batch...
4
by: chaitu | last post by:
Hi guys, I've written a parallel build program (in Perl) that takes a pre-computed dependency tree of many projects in 2 visual studio .net 2003 solution (.sln) files here at my company, and...
0
by: jadeite100 | last post by:
Hi All: I am new to displaytag and Maven. I download the displaytag-examples from the url "http://sourceforge.net/projects/displaytag/files/" it is part of the "displaytag-1.2-src.zip" I am using...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.