Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-30-2008, 03:54 PM
dataflux dataflux is online now
Registered User
 
Join Date: 04-20-2005
Posts: 10
PATH that is used when 'Make VS.NET' action runs

We are noticing a problem when building projects using this action. In some cases, cpp files don't get rebuilt when a header file in a path specified in the include path changes. We think we've tracked down the problem to how the Microsoft vcbuild.exe program works. Ultimately, Microsoft requires that the <Studio2005>/Common7/IDE path be in the PATH in order for this to function properly.

In VBP I assume that this action (which I assume calls vcbuild.exe) will inherit the environment (and thus the PATH) that VBP saw when it started up. Is this correct?

Is there any way I can specify a specific path that VBP should use when calling this action?

I know I could probably alter the PATH on the system, but this is less desirable as I want to minimize impact.

Here is the MS problem report describing this problem:

https://connect.microsoft.com/Visual...dbackID=217625
Reply With Quote
  #2  
Old 01-30-2008, 04:32 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Based on that link, it appears that one workaround may be to use devenv rather than vcbuild (select devenv in the Override field on the Options tab of the Make VS.NET action).

Yes, VBP will inherit the PATH of the process that started it, so another option would be to start VBP from a Visual Studio Command Prompt.

Or, you can alter the PATH environment during the build by using a Set Macro action to create a temporary PATH macro, with 'Add to environment variables' checked and a Value like %PATH%;c:\extra\path1;c:\extra\path2...

http://www.visualbuild.com/Manual/setmacroaction.htm
http://www.visualbuild.com/Manual/advancedsample.htm
Reply With Quote
  #3  
Old 01-30-2008, 04:35 PM
dataflux dataflux is online now
Registered User
 
Join Date: 04-20-2005
Posts: 10
Thanks. You guys are helpful as always. I think we'll go the route of setting the PATH from our build script so that we can keep it isolated.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 03:18 AM.


Copyright © 1999-2023 Kinook Software, Inc.