Skip to content

Commit a10aff3

Browse files
authored
Specify correct global.json path for Razor.Design tests (#6311)
1 parent d66537c commit a10aff3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Razor/Razor.Design/test/IntegrationTests/IntegrationTests/ProjectDirectory.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static ProjectDirectory Create(string originalProjectName, string targetP
7575
CopyGlobalJson(solutionRoot, destinationPath);
7676

7777
return new ProjectDirectory(
78-
destinationPath,
78+
destinationPath,
7979
directoryPath,
8080
newProjectFilePath);
8181
}
@@ -128,7 +128,8 @@ void SetupDirectoryBuildFiles(string solutionRoot, string binariesRoot, string t
128128

129129
void CopyGlobalJson(string solutionRoot, string projectRoot)
130130
{
131-
var srcGlobalJson = Path.Combine(solutionRoot, "global.json");
131+
var repoRoot = Path.Combine(solutionRoot, "..", "..");
132+
var srcGlobalJson = Path.Combine(repoRoot, "global.json");
132133
if (!File.Exists(srcGlobalJson))
133134
{
134135
throw new InvalidOperationException("global.json at the root of the repository could not be found. Run './build /t:Noop' at the repository root and re-run these tests.");

0 commit comments

Comments
 (0)