Get the telemetry version from the --version command and use it to find dotnet.dll
This commit is contained in:
parent
b110fd5fe9
commit
89758ef046
1 changed files with 6 additions and 1 deletions
|
@ -10,7 +10,12 @@ namespace EndToEnd.Tests
|
|||
[Fact]
|
||||
public void TelemetryOptOutDefaultAttribute()
|
||||
{
|
||||
var dotnetdir = Path.Combine(Path.GetDirectoryName(RepoDirectoriesProvider.DotnetUnderTest), "sdk", "7.0.100");
|
||||
var result = new DotnetCommand()
|
||||
.ExecuteWithCapturedOutput("--version");
|
||||
|
||||
var sdkVersion = result.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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue