From 6e59c69809de971ff349e5099b229b8faab849b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Tue, 15 Sep 2015 17:59:26 +0200 Subject: [PATCH] The VisualD project generator sets the working directory. Fixes #567. --- source/dub/generators/visuald.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/dub/generators/visuald.d b/source/dub/generators/visuald.d index 2dcbf4c08..f4e7abbc4 100644 --- a/source/dub/generators/visuald.d +++ b/source/dub/generators/visuald.d @@ -403,7 +403,10 @@ class VisualDGenerator : ProjectGenerator { ret.put(" \n"); ret.put(" \n"); ret.put(" \n"); - ret.put(" ..\n"); + auto wdir = Path(buildsettings.workingDirectory); + if (!wdir.absolute) wdir = m_project.rootPackage.path ~ wdir; + ret.formattedWrite(" %s\n", + wdir.relativeTo(project_file_dir).toNativeString()); ret.put(" \n"); ret.put(" \n"); ret.put(" *.obj;*.cmd;*.build;*.dep\n");