Fix integration tests for windows

This commit is contained in:
Joe Farebrother
2023-11-16 14:55:52 +00:00
parent e4edb19f43
commit befb1ccd84

View File

@@ -100,7 +100,8 @@ private string getARazorPathPrefix() {
or
exists(File csproj |
csproj.getExtension() = "csproj" and
result = csproj.getParentContainer().getAbsolutePath()
// possibly prepend '/' to match Windows absolute paths starting with `C:/` with paths appearing in the Razor file in standalone mode starting with `/C:/`
result = ["/", ""] + csproj.getParentContainer().getAbsolutePath()
)
}