Skip to content

Commit

Permalink
Mark System.Security.Cryptography.OpenSsl as unsupported on browser
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximLipnin committed Aug 11, 2020
1 parent 0d6d73a commit d9fe14b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions eng/versioning.targets
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,18 @@
</AssemblyAttribute>
</ItemGroup>

<!-- Adds UnsupportedOSPlatform attribute for requested libraries -->
<ItemGroup Condition="'$(UnsupportedOSPlatform)' != '' and '$(IsTestProject)' != 'true'">
<AssemblyAttribute Include="System.Runtime.Versioning.UnsupportedOSPlatform">
<_Parameter1>$(UnsupportedOSPlatform)</_Parameter1>
</AssemblyAttribute>
<ItemGroup>
<_unsupportedOSPlatforms Include="$(UnsupportedOSPlatforms)" />
</ItemGroup>

<Target Name="AddUnsupportedOSPlatformAttribute" BeforeTargets="GenerateAssemblyInfo" AfterTargets="PrepareForBuild">
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.Versioning.UnsupportedOSPlatform" Condition="'@(_unsupportedOSPlatforms)' != ''">
<_Parameter1>%(_unsupportedOSPlatforms.Identity)</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Target>

<Target Name="DecideIfWeNeedToIncludeDllSafeSearchPathAttribute"
Condition="'$(IsDotNetFrameworkProductAssembly)' == 'true' and '$(IsTestProject)' != 'true' and '$(IsTestSupportProject)' != 'true'">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<PropertyGroup>
<StrongNameKeyId>Microsoft</StrongNameKeyId>
<IncludePlatformAttributes>true</IncludePlatformAttributes>
<UnsupportedOSPlatform>windows</UnsupportedOSPlatform>
<UnsupportedOSPlatforms>windows;browser</UnsupportedOSPlatforms>
</PropertyGroup>
</Project>

0 comments on commit d9fe14b

Please sign in to comment.