-
-
Notifications
You must be signed in to change notification settings - Fork 230
Closed
Labels
.NETPull requests that update .net codePull requests that update .net codeBugSomething isn't workingSomething isn't workingRoslynThe .NET Compiler Platform, Roslyn Components and Extensions, Microsoft.CodeAnalysisThe .NET Compiler Platform, Roslyn Components and Extensions, Microsoft.CodeAnalysis
Description
Description
As far as I can tell, the Sentry.SourceGenerators aren't working at all.
Steps to reproduce
dotnet new console -f net9.0dotnet 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...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
.NETPull requests that update .net codePull requests that update .net codeBugSomething isn't workingSomething isn't workingRoslynThe .NET Compiler Platform, Roslyn Components and Extensions, Microsoft.CodeAnalysisThe .NET Compiler Platform, Roslyn Components and Extensions, Microsoft.CodeAnalysis
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
Status
No status