Specify correct global.json path for Razor.Design tests (#6311)
This commit is contained in:
parent
d66537c7d1
commit
a10aff3a03
|
|
@ -75,7 +75,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
|||
CopyGlobalJson(solutionRoot, destinationPath);
|
||||
|
||||
return new ProjectDirectory(
|
||||
destinationPath,
|
||||
destinationPath,
|
||||
directoryPath,
|
||||
newProjectFilePath);
|
||||
}
|
||||
|
|
@ -128,7 +128,8 @@ $@"<Project>
|
|||
|
||||
void CopyGlobalJson(string solutionRoot, string projectRoot)
|
||||
{
|
||||
var srcGlobalJson = Path.Combine(solutionRoot, "global.json");
|
||||
var repoRoot = Path.Combine(solutionRoot, "..", "..");
|
||||
var srcGlobalJson = Path.Combine(repoRoot, "global.json");
|
||||
if (!File.Exists(srcGlobalJson))
|
||||
{
|
||||
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.");
|
||||
|
|
|
|||
Loading…
Reference in New Issue