From 00c6e9ad1735334544fc40eb2a7299d8f58c3f27 Mon Sep 17 00:00:00 2001 From: themorfeus Date: Thu, 30 Apr 2026 22:22:44 +0200 Subject: [PATCH] add StartWorkingDirectory output to csproj.user file --- modules/vstudio/vs2005_csproj_user.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/vstudio/vs2005_csproj_user.lua b/modules/vstudio/vs2005_csproj_user.lua index 44b3060441..decbcfc88d 100644 --- a/modules/vstudio/vs2005_csproj_user.lua +++ b/modules/vstudio/vs2005_csproj_user.lua @@ -16,6 +16,7 @@ m.elements.userProjectPropertyGroup = function() return { m.referencePath, + m.startWorkingDir, } end @@ -82,7 +83,14 @@ end end - + function m.startWorkingDir(prj) + -- Per-configuration reference paths aren't supported (are they?) so just + -- use the first configuration in the project + local cfg = p.project.getfirstconfig(prj) + if cfg.debugdir then + p.x('%s', cfg.debugdir) + end + end function m.localDebuggerCommandArguments(cfg) if #cfg.debugargs > 0 then