Fix build error.

This commit is contained in:
Marc Paine 2022-11-05 15:13:09 -07:00
parent 89758ef046
commit ccd4c9b0e2

View file

@ -10,10 +10,10 @@ namespace EndToEnd.Tests
[Fact]
public void TelemetryOptOutDefaultAttribute()
{
var result = new DotnetCommand()
var versionCommand = new DotnetCommand()
.ExecuteWithCapturedOutput("--version");
var sdkVersion = result.StdOut.Trim();
var sdkVersion = versionCommand.StdOut.Trim();
var dotnetdir = Path.Combine(Path.GetDirectoryName(RepoDirectoriesProvider.DotnetUnderTest), "sdk", sdkVersion);
var result = AssemblyInfo.Get(Path.Combine(dotnetdir, "dotnet.dll"), "AssemblyMetadataAttribute");