From e5dc5e0b418920ac0c0f2f24270a1d59b0de994d Mon Sep 17 00:00:00 2001 From: Bruno Champoux Date: Tue, 27 Feb 2024 18:16:41 -0500 Subject: [PATCH] Bug with CSharpProject.ResourcesPath and .ContentPath that default to the root of the drive - Closes #168 [Bug with CSharpProject.ResourcesPath and .ContentPath that default to the root of the drive](https://gitlab-ncsa.ubisoft.org/Sharpmake/sharpmake/-/issues/168) --- Sharpmake/Project.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sharpmake/Project.cs b/Sharpmake/Project.cs index 2d4ee9d21..49aafe9e2 100644 --- a/Sharpmake/Project.cs +++ b/Sharpmake/Project.cs @@ -2434,8 +2434,8 @@ private void InitCSharpSpecifics() AssemblyName = "[project.Name]"; IsFileNameToLower = false; IsTargetFileNameToLower = false; - ResourcesPath = RootPath + @"\Resources\"; - ContentPath = RootPath + @"\Content\"; + ResourcesPath = @"[project.RootPath]\Resources\"; + ContentPath = @"[project.RootPath]\Content\"; ImportProjects.Add(new ImportProject { Project = DefaultImportProject }); ApplicationDefinitionFilenames.Add("App.xaml", "MainApplication.xaml");