Skip to content

Commit

Permalink
Use case-insensitive path comparison on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat committed Sep 10, 2024
1 parent 85de2ae commit 2566b7c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/BuiltInTools/dotnet-watch/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,15 @@ internal Watcher CreateWatcher(IRuntimeProcessLauncherFactory? runtimeProcessLau
var projectGraph = TryReadProject(rootProjectOptions, reporter);
if (projectGraph != null)
{
var rootProject = projectGraph.GraphRoots.Single();

// use normalized MSBuild path so that we can index into the ProjectGraph
rootProjectOptions = rootProjectOptions with { ProjectPath = projectGraph.GraphRoots.Single().ProjectInstance.FullPath };
rootProjectOptions = rootProjectOptions with { ProjectPath = rootProject.ProjectInstance.FullPath };

if (rootProject.GetCapabilities().Contains("Aspire"))
{
runtimeProcessLauncherFactory ??= AspireServiceFactory.Instance;
}
}

var fileSetFactory = new MSBuildFileSetFactory(
Expand Down

0 comments on commit 2566b7c

Please sign in to comment.