Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Get the telemetry version from the --version command and use it to fi…
…nd dotnet.dll
  • Loading branch information
marcpopMSFT committed Nov 5, 2022
commit 89758ef046c167369ff3e20f278bbca40cfc6fab
7 changes: 6 additions & 1 deletion test/EndToEnd/TelemetryOptOutDefaultTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ public class TelemetryOptOutDefault : TestBase
[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");
}
Expand Down