Open
Description
Description
As far as I can tell, the Sentry.SourceGenerators
aren't working at all.
Steps to reproduce
dotnet new console -f net9.0
dotnet add package Sentry --version 5.11.2
- Copy/paste the following into
program.cs
dotnet run -c Debug
using Sentry.CompilerServices;
SentrySdk.Init();
string? buildConfig = null;
BuildProperties.Values?.TryGetValue("Configuration", out buildConfig);
if (buildConfig is null)
{
Console.WriteLine("Source generators not working...");
}
else if (buildConfig == "Debug")
{
Console.WriteLine("You're in Debug Mode");
}
else
{
Console.WriteLine("You ain't in Debug Mode anymore Toto!");
}
Expected result
The application should output You're in Debug Mode
.
Actual result
The application outputs Source generators not working...
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status