-
-
Notifications
You must be signed in to change notification settings - Fork 226
Trimming for .NET 7+ #2699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trimming for .NET 7+ #2699
Changes from 5 commits
8f81603
8c8615e
edb9e38
48c3f0a
5d2a51b
9ccc529
dcb7441
4f6644c
5479f1e
98a51c7
dc2c522
a216116
3b24c7b
ae56436
bfb0818
7322b6a
bb41fbb
c37926c
29818c7
adabd5d
89684a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,8 @@ | |
| <NoWarn Condition="'$(TargetFramework)' == 'netstandard2.0'">$(NoWarn);RS0017</NoWarn> | ||
| <CLSCompliant Condition="'$(TargetPlatformIdentifier)' == ''">true</CLSCompliant> | ||
| <AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
| <IsTrimmable>true</IsTrimmable> | ||
| <DefineConstants>$(DefineConstants);TRIMMABLE</DefineConstants> | ||
|
||
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup Condition="'$(SolutionName)' != 'Sentry.Unity'"> | ||
|
|
@@ -22,21 +24,23 @@ | |
| <Import Project="Platforms\Android\Sentry.Android.props" Condition="'$(TargetPlatformIdentifier)' == 'android'" /> | ||
| <Import Project="Platforms\iOS\Sentry.iOS.props" Condition="'$(TargetPlatformIdentifier)' == 'ios' Or '$(TargetPlatformIdentifier)' == 'maccatalyst'" /> | ||
|
|
||
| <!-- | ||
| Ben.Demystifier is compiled directly into Sentry. | ||
| Note: It uses Microsoft.Bcl.AsyncInterfaces, which we get transitively from System.Text.Json. | ||
| --> | ||
| <ItemGroup> | ||
| <Compile Include="..\..\modules\Ben.Demystifier\src\**\*.cs"> | ||
| <Link>%(RecursiveDir)\%(Filename)%(Extension)</Link> | ||
| </Compile> | ||
| <Compile Remove="..\..\modules\Ben.Demystifier\**\obj\**" /> | ||
| </ItemGroup> | ||
| <Target Name="IncludeBenDemystifier" Condition="'$(IsTrimmable)' != 'true'"> | ||
| <!-- | ||
| Ben.Demystifier is compiled directly into Sentry. | ||
| Note: It uses Microsoft.Bcl.AsyncInterfaces, which we get transitively from System.Text.Json. | ||
| --> | ||
| <ItemGroup> | ||
| <Compile Include="..\..\modules\Ben.Demystifier\src\**\*.cs"> | ||
| <Link>%(RecursiveDir)\%(Filename)%(Extension)</Link> | ||
| </Compile> | ||
| <Compile Remove="..\..\modules\Ben.Demystifier\**\obj\**" /> | ||
| </ItemGroup> | ||
|
|
||
| <!-- Ben.Demystifier also needs System.Reflection.Metadata 5.0.0 or higher on all platforms. --> | ||
| <ItemGroup Condition="$(TargetFramework.StartsWith('netstandard')) or $(TargetFramework.StartsWith('net4')) or $(TargetFramework.StartsWith('netcoreapp'))"> | ||
| <PackageReference Include="System.Reflection.Metadata" Version="5.0.0" /> | ||
| </ItemGroup> | ||
| <!-- Ben.Demystifier also needs System.Reflection.Metadata 5.0.0 or higher on all platforms. --> | ||
| <ItemGroup Condition="$(TargetFramework.StartsWith('netstandard')) or $(TargetFramework.StartsWith('net4')) or $(TargetFramework.StartsWith('netcoreapp'))"> | ||
| <PackageReference Include="System.Reflection.Metadata" Version="5.0.0" /> | ||
| </ItemGroup> | ||
| </Target> | ||
|
|
||
| <!-- Sentry.DiagnosticSource is compiled directly into Sentry for .NET Core and .NET targets only. --> | ||
| <PropertyGroup Condition="!$(TargetFramework.StartsWith('netstandard')) and !$(TargetFramework.StartsWith('net4'))"> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.