Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using same Debug settings for Start External Program across 32 bit and 64 bit debug environments

We use a mixture of 32-bit and 64-bit development environments. Some of our class libraries are debugged using a 32-bit application so we have debug settings for "Start External Program" and "Working Directory". The problem is that the settings need to be different since the 32-bit application is installed to

C:\Program Files\xxx (on the 32-bit dev enviroment) or C:\Program Files (x86)\xxx (on the 64-bit dev environment)

Is there a way to use some sort of tag like %PROGRAMFILES% or $(ProgramFiles) so that Visual Studio 2008 will know where to look for the external program?

This wouldn't be a major issue except the solution file (where the debug information is saved) is checked into source control...so getting the latest version of the solution from our source repository keeps yoyo'ing the debug settings between the two program files locations.

like image 228
Michael Prewecki Avatar asked Oct 26 '22 07:10

Michael Prewecki


1 Answers

As pointed out by BQ, Start External Program and Working directory are stored in the .user file. However you can use $(Program Files) in both .csproj and .user files for any setting that relates to a directory name...the only trick is that you have to manually edit the relevant .user or .csproj file in a text editor.

Provided the user doesn't edit the value in Visual Studio it maintains it's value of $(ProgramFiles) and is correctly expanded in both 32 bit and 64 bit environments.

like image 100
Michael Prewecki Avatar answered Nov 24 '22 08:11

Michael Prewecki