Merge in 'release/7.0.1xx' changes

This commit is contained in:
dotnet-bot 2022-11-08 22:31:49 +00:00
commit f1d0366f0c

View file

@ -10,7 +10,13 @@ namespace EndToEnd.Tests
[Fact]
public void TelemetryOptOutDefaultAttribute()
{
var dotnetdir = Path.Combine(Path.GetDirectoryName(RepoDirectoriesProvider.DotnetUnderTest), "sdk", "7.0.101");
var versionCommand = new DotnetCommand()
.ExecuteWithCapturedOutput("--version");
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");
result.Should().Contain("TelemetryOptOutDefault:False");
}