Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools

Reply
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1  
Old 09-23-2009, 03:18 PM
ShiamakD ShiamakD is online now
Registered User
 
Join Date: 04-28-2008
Location: us
Posts: 32
DevEnvVarDir var in Visual Build 7.2

Hi,

How DevEnvDir is being set in Visual Build 7.2. While compiling my VS 2008 project which has a POST build command , I am getting following error

(PostBuildEvent target) ->
C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft. Common.targets(3397,13): error MSB3073: The command ""*Undefined*..\..\SDK\v3.5\Bin\sgen.exe" /a:"W:\Bin\UIW.Framework.Settings.Shell.dll" /force" exited with code 3.


Though Sgen.exe exists as defined in the Post Build command within the project/solution.

Any help is appreciated.
Reply With Quote
  #2  
Old 09-23-2009, 03:28 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
Some possibilities:
http://www.bokebb.com/dev/english/19...96766522.shtml
http://www.google.com/search?q=msb3073+undefined+sgen

VBP itself doesn't create or use a DevEnvDir or DevEnvVarDir environment variable (?).

It is Visual Studio (msbuild/vcbuild/devenv) that actually performs the building of a VS solution or project (and is reporting the error), not VBP itself. And building a VS project from the command-line is not identical to building in the VS IDE. If building via MSBuild does not work, you might try using devenv (enter devenv in the Override field on the Advanced tab), as this will be closer to what the IDE does when building. Even then, we have heard of situations where building from the command-line doesn't work even when building in the IDE does. You can check the Log the command-line checkbox on the Advanced tab, rebuild the step, and provide the msbuild/devenv command to MS when submitting a support incident.
Reply With Quote
  #3  
Old 09-23-2009, 04:06 PM
ShiamakD ShiamakD is online now
Registered User
 
Join Date: 04-28-2008
Location: us
Posts: 32
Hi,

Thanks for your quick turn around. However as mentioned in one of the URL the FrameWorkSDKDir still does not work with "Reference" path e.g. ($FrameWorkSDKDir\..\..\abc\somedir\some. exe (atleast with MSBuild), it ONLY works if one would use "apsolute path"...which is true with DevEnvDir as well.


Again Thanks for absolutely "fantastic" customer support.
Reply With Quote
  #4  
Old 09-23-2009, 04:09 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
As mentioned, you would need to direct MSBuild questions/issues to Microsoft.
Reply With Quote
  #5  
Old 10-01-2009, 01:42 PM
ShiamakD ShiamakD is online now
Registered User
 
Join Date: 04-28-2008
Location: us
Posts: 32
Quote:
Originally posted by kinook
As mentioned, you would need to direct MSBuild questions/issues to Microsoft.
Dea Sir,

It seems that problem (at least what I am having) has nothing todo with Microsoft rather it seems to be a very specifc problem to Visual Build 7.2 version.

When I compile my Sln file with MSBUILD (Command Line - Msbuild aa.sln) everything compiles fine however when I create an VS 2008 event in Visual Build 7.2 to compile the same project, I get the error "refernced dll not found" though the DLL is being copied in the pre-determined destination location.

The command VisualBuild 7.2 create for an VS 2008 event for a solution compilation is

msbuild.exe W:\Foldr1\foldr2\project.sln /t:rebuild /p:Configuration=Release "/p:Platform=Any CPU" /maxcpucount

if you run ABOVE command with MSBUILD on COMMAND LINE , this command also generate the same "referenced DLL not found error"

hence it seems there is an issue with implementation of VS2008 event in Visual Build.
Reply With Quote
  #6  
Old 10-01-2009, 01:45 PM
ShiamakD ShiamakD is online now
Registered User
 
Join Date: 04-28-2008
Location: us
Posts: 32
Quote:
Originally posted by ShiamakD
Dea Sir,

It seems that problem (at least what I am having) has nothing todo with Microsoft rather it seems to be a very specifc problem to Visual Build 7.2 version.

When I compile my Sln file with MSBUILD (Command Line - Msbuild aa.sln) everything compiles fine however when I create an VS 2008 event in Visual Build 7.2 to compile the same project, I get the error "refernced dll not found" though the DLL is being copied in the pre-determined destination location.

The command VisualBuild 7.2 create for an VS 2008 event for a solution compilation is

msbuild.exe W:\Foldr1\foldr2\project.sln /t:rebuild /p:Configuration=Release "/p:Platform=Any CPU" /maxcpucount

if you run ABOVE command with MSBUILD on COMMAND LINE , this command also generate the same "referenced DLL not found error"

hence it seems there is an issue with implementation of VS2008 event in Visual Build.

Hi I have determined that it is /maxcpucount switch in msbuild.exe W:\Foldr1\foldr2\project.sln /t:rebuild /p:Configuration=Release "/p:Platform=Any CPU" /maxcpucount full command thats causing the whole "Referenced DLL not found" issue, if you remove /maxcpucount and run the WHOLE command from command line then it works perfectly fine.
Reply With Quote
  #7  
Old 10-01-2009, 02:07 PM
ShiamakD ShiamakD is online now
Registered User
 
Join Date: 04-28-2008
Location: us
Posts: 32
Quote:
Originally posted by ShiamakD
Hi I have determined that it is /maxcpucount switch in msbuild.exe W:\Foldr1\foldr2\project.sln /t:rebuild /p:Configuration=Release "/p:Platform=Any CPU" /maxcpucount full command thats causing the whole "Referenced DLL not found" issue, if you remove /maxcpucount and run the WHOLE command from command line then it works perfectly fine.
I am sorry I forgot to mention that I solved teh original issue "sgen.exe" by removing referenced path ... then i started getting "referenced DLL not found" DLL which is being referenced in one of the DLL project that I have.
Reply With Quote
  #8  
Old 10-01-2009, 02:11 PM
ShiamakD ShiamakD is online now
Registered User
 
Join Date: 04-28-2008
Location: us
Posts: 32
Quote:
Originally posted by ShiamakD
Hi I have determined that it is /maxcpucount switch in msbuild.exe W:\Foldr1\foldr2\project.sln /t:rebuild /p:Configuration=Release "/p:Platform=Any CPU" /maxcpucount full command thats causing the whole "Referenced DLL not found" issue, if you remove /maxcpucount and run the WHOLE command from command line then it works perfectly fine.
Just another update..

If you change the command from msbuild.exe W:\Foldr1\foldr2\project.sln /t:rebuild /p:Configuration=Release "/p:Platform=Any CPU" /maxcpucount TO

msbuild.exe W:\Foldr1\foldr2\project.sln /t:rebuild /p:Configuration=Release "/p:Platform=Any CPU" /maxcpucount:1 (please notice :1 after /maxcpucount) then EVERYTHING works on command line.
Reply With Quote
  #9  
Old 10-01-2009, 02:18 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
The Make VS 2008 action doesn't add /maxcpucount (with or without the :1) to the msbuild command-line. You must have added it to the Additional options field on the Options tab. Remove it or make sure it is set properly.
Reply With Quote
  #10  
Old 10-01-2009, 02:21 PM
ShiamakD ShiamakD is online now
Registered User
 
Join Date: 04-28-2008
Location: us
Posts: 32
Quote:
Originally posted by kinook
The Make VS 2008 action doesn't add /maxcpucount (with or without the :1) to the msbuild command-line. You must have added it to the Additional options field on the Options tab. Remove it or make sure it is set properly.
hi,

I dont have ANYTHING in the OPTIONS tab. Only thing i see it MSBuild login Level selected as Detault.
Reply With Quote
  #11  
Old 10-01-2009, 02:22 PM
ShiamakD ShiamakD is online now
Registered User
 
Join Date: 04-28-2008
Location: us
Posts: 32
Quote:
Originally posted by ShiamakD
hi,

I dont have ANYTHING in the OPTIONS tab. Only thing i see it MSBuild login Level selected as Detault.
Addtional option text box is blank
Reply With Quote
  #12  
Old 10-01-2009, 02:26 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
Sorry, I misspoke. Enter 1 in the 'MSBuild parallel builds' fields.
Reply With Quote
  #13  
Old 10-01-2009, 02:32 PM
ShiamakD ShiamakD is online now
Registered User
 
Join Date: 04-28-2008
Location: us
Posts: 32
Quote:
Originally posted by kinook
Sorry, I misspoke. Enter 1 in the 'MSBuild parallel builds' fields.
YUP....that did it.

I looked through your(VBL) help and I didnt find anything in this regard.
Reply With Quote
  #14  
Old 10-01-2009, 02:35 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
http://www.kinook.com/VisBuildPro/Ma...optionstab.htm
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 11:01 AM.


Copyright © 1999-2023 Kinook Software, Inc.