Skip to content
Prev Previous commit
Next Next commit
Added Configuration to tests
  • Loading branch information
jamescrosswell committed Jul 8, 2025
commit 21a87b51bcb699e5a02527dc909aefa4ba064db1
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public static class BuildVariableInitializer
global::Sentry.CompilerServices.BuildProperties.Initialize(new global::System.Collections.Generic.Dictionary<string, string> {
{"PublishAot", "true"},
{"OutputType", "exe"},
{"Configuration", "Release"},
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Task RunResult_Publish_AotTrue()
{
Skip.If(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));

var driver = BuildDriver(typeof(Program).Assembly, ("PublishAot", "true"), ("OutputType", "exe"));
var driver = BuildDriver(typeof(Program).Assembly, ("PublishAot", "true"), ("OutputType", "exe"), ("Configuration", "Release"));
var result = driver.GetRunResult().Results.FirstOrDefault();
result.Exception.Should().BeNull();
result.GeneratedSources.Length.Should().Be(1);
Expand Down