Skip to content

Commit a087a5c

Browse files
authored
Reenable CheckTargetFrameworkDisplayName test (#48471)
2 parents 9a265a2 + 912be2c commit a087a5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Microsoft.NET.Build.Tests/GivenThatWeWantToControlGeneratedAssemblyInfo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ public void It_does_not_write_to_undefined_assembly_metadata_attribute(string ta
810810
}
811811
}
812812

813-
[Theory(Skip = "https://github.com/dotnet/sdk/issues/45148")]
813+
[Theory]
814814
[InlineData("netcoreapp3.1", ".NET Core 3.1")]
815815
[InlineData("netcoreapp2.1", ".NET Core 2.1")]
816816
[InlineData("netstandard2.1", ".NET Standard 2.1")]
@@ -855,11 +855,11 @@ static void Main(string[] args)
855855
.Should()
856856
.Pass();
857857

858-
var result = new DotnetCommand(Log, "run")
859-
.WithWorkingDirectory(Path.Combine(testAsset.Path, testProject.Name))
858+
var exePath = Path.Combine(buildCommand.GetOutputDirectory(testProject.TargetFrameworks).FullName, testProject.Name + ".dll");
859+
var result = new DotnetCommand(Log, "exec", exePath)
860860
.Execute();
861861
result.Should().Pass();
862-
result.StdOut.StripTerminalLoggerProgressIndicators().Should().BeEquivalentTo(expectedFrameworkDisplayName);
862+
result.StdOut.Should().BeEquivalentTo(expectedFrameworkDisplayName);
863863
}
864864
}
865865
}

0 commit comments

Comments
 (0)