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 08-28-2020, 11:08 AM
deramor deramor is online now
Registered User
 
Join Date: 05-11-2011
Posts: 27
Help with Visual Studio step

Hello,

My build environment was working fine but then I installed the Visual Studio 2015 build tools and now my VS2019 steps are using a different version of MSBuild.

For now, I've overridden the path to MSBuild in the options tab of those failing steps but I wanted to better understand the problem. I don't want to be forced to forever have to implement this workaround.

My question is, how does Visual Build locate the version of MSBuild? I know it has to do with the solution files from posts I've seen on these forums. All of my solution files are created in VS2019 (and were previously working). If I knew the step's logic, I could look in more places (like registry) that could have been modified erroneously.

Thanks for any input.
Reply With Quote
  #2  
Old 08-28-2020, 05:35 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
I sent you some code that will explain this.

Also see https://kinook.com/Forum/showthread.php?t=4500
Reply With Quote
  #3  
Old 08-31-2020, 09:29 AM
deramor deramor is online now
Registered User
 
Join Date: 05-11-2011
Posts: 27
Thank you. After looking at the code and how the list of potential MSBuild instances was gathered and selected, I eyed your logic with my solution files and found that even though the project standardized on VS 2019, many solutions were made by 2013. This caused your logic to pick something I didn't expect.

Some kind of interaction with the solution and older MSBuild version caused things to not work. Fortunately, I can correct the solution files to correctly target 2019 as intended and everything works fine.

Thanks for helping. I suppose I should have checked my own solutions.
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 02:53 AM.


Copyright © 1999-2023 Kinook Software, Inc.