-
-
Notifications
You must be signed in to change notification settings - Fork 221
Open
Labels
.NETPull requests that update .net codePull requests that update .net codeImprovementRoslynThe .NET Compiler Platform, Roslyn Components and Extensions, Microsoft.CodeAnalysisThe .NET Compiler Platform, Roslyn Components and Extensions, Microsoft.CodeAnalysis
Description
Description
We don't know under which environment the user is hosting Roslyn when building a project that depends on Sentry
.
- .NET SDK version
- "Full"-Framework MSBuild
- custom Host
See dotnet/sdk#20355
So that older hosts won't load the Roslyn Component, and newer hosts can choose a compatible version.
E.g. fixes issues like
An instance of analyzer Sentry.SourceGenerators.BuildPropertySourceGenerator cannot be created from {..}\.nuget\packages\sentry\5.11.0\analyzers\dotnet\cs\Sentry.SourceGenerators.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..
Examples
Metadata
Metadata
Assignees
Labels
.NETPull requests that update .net codePull requests that update .net codeImprovementRoslynThe .NET Compiler Platform, Roslyn Components and Extensions, Microsoft.CodeAnalysisThe .NET Compiler Platform, Roslyn Components and Extensions, Microsoft.CodeAnalysis
Type
Projects
Status
No status
Status
No status