diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-09-03 02:56:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-03 02:56:46 +0300 |
commit | d2e3961cffdab15659f54f431bef6e96c38e384c (patch) | |
tree | d253b7e416da248d4962485ffab57833e37160ce | |
parent | f6947268b7a29473aea9d445caf6449604ca1a0f (diff) |
Make System.Transactions.Local trimmable (#75004)
On other target platforms than windows.
This fixes https://github.com/dotnet/runtime/issues/74506
The reason to make it non-trimmable is that it uses COM interop
on windows. So we can make it trimmable again on other target platforms.
https://github.com/dotnet/runtime/issues/74506#issuecomment-1231917923
Co-authored-by: Radek Doulik <radekdoulik@gmail.com>
-rw-r--r-- | src/libraries/System.Transactions.Local/src/System.Transactions.Local.csproj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libraries/System.Transactions.Local/src/System.Transactions.Local.csproj b/src/libraries/System.Transactions.Local/src/System.Transactions.Local.csproj index 86a68905ab6..034f32afcf5 100644 --- a/src/libraries/System.Transactions.Local/src/System.Transactions.Local.csproj +++ b/src/libraries/System.Transactions.Local/src/System.Transactions.Local.csproj @@ -5,7 +5,7 @@ <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)</TargetFrameworks> <NoWarn>CA1805;IDE0059;CS1591</NoWarn> <TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatformIdentifier> - <IsTrimmable>false</IsTrimmable> + <IsTrimmable Condition="'$(TargetPlatformIdentifier)' == 'windows'">false</IsTrimmable> </PropertyGroup> <ItemGroup> <Compile Include="System\Transactions\CommittableTransaction.cs" /> |