Skip to content

Commit 8aea406

Browse files
committed
Construct full path instead of passing along Windows relative path to Project.Load.
1 parent 040f79f commit 8aea406

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sdk/Tasks/DmappCreation.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ private PackageCreationData PrepareData()
337337
List<Project> referencedProjects = new List<Project>();
338338
foreach (ProjectReference projectProjectReference in project.ProjectReferences)
339339
{
340-
Project referencedProject = Project.Load(projectProjectReference.Path);
340+
string projectPath = FileSystem.Instance.Path.Combine(project.ProjectDirectory, projectProjectReference.Path);
341+
Project referencedProject = Project.Load(projectPath);
341342
referencedProjects.Add(referencedProject);
342343
loadedProjects[projectProjectReference.Path] = referencedProject;
343344
}
@@ -366,7 +367,8 @@ private PackageCreationData PrepareDataForProject(Project project, PackageCreati
366367
{
367368
if (!loadedProjects.TryGetValue(projectProjectReference.Path, out Project referencedProject))
368369
{
369-
referencedProject = Project.Load(projectProjectReference.Path);
370+
string projectPath = FileSystem.Instance.Path.Combine(project.ProjectDirectory, projectProjectReference.Path);
371+
referencedProject = Project.Load(projectPath);
370372
loadedProjects.Add(projectProjectReference.Path, referencedProject);
371373
}
372374

0 commit comments

Comments
 (0)