Introjucer: Visual Studio - Change Working Dir


#1

Hi Jules,

Yet another request; a feature that can let a user change the working directory per Visual Studio project configuration.

Here are images demonstrating what I’m talking about;
[attachment=0]Working Dir - Project Dir.png[/attachment]
[attachment=1]Working Dir - Output Dir.png[/attachment]


#2

This is a tab bit more complicated than I thought, since it involves writing xml to a different file; a i.vcxproj.user[/i] file.

Example:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    <LocalDebuggerWorkingDirectory>$(OutDir)</LocalDebuggerWorkingDirectory>
    <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
  </PropertyGroup>
</Project>

#3

Ah, I’d rather avoid getting involved with those user-specific files, I think that’d be a can of worms.


#4

Yeah, it would probably make those MSVC exporters really complex… I don’t think those .user files are backwards compatible, only forwards, too - so there would be lots of crap to add to get such a small thing working. Oh well!