Skip to content

Commit 1a5090e

Browse files
authored
simplify the globaljson test logic
1 parent 9c440f3 commit 1a5090e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithGlobalJson.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public void It_fails_build_on_failed_sdk_resolution(bool runningInVS)
4545
var result = buildCommand.Execute($"/p:BuildingInsideVisualStudio={runningInVS}", $"/bl:binlog{runningInVS}.binlog")
4646
.Should()
4747
.Fail();
48-
var warningString = "warning : Unable to locate the .NET SDK version";
49-
var errorString = "Unable to locate the .NET SDK. Check that it is installed, your PATH is configured for the correct architecture, and that the version specified in global.json (if any) matches the installed version.";
48+
var warningString = "warning : Unable to locate the .NET SDK";
49+
var errorString = "Unable to locate the .NET SDK. Check that it is installed";
5050
if (runningInVS)
5151
{
5252
result.And

0 commit comments

Comments
 (0)