diff options
author | Maxim Lipnin <v-maxlip@microsoft.com> | 2020-08-13 19:55:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-13 19:55:30 +0300 |
commit | 196fd1804dcc36fc6a398bcc318e07a171a0fc9c (patch) | |
tree | f5f7c780d571ceefb2eb8e8bef3de6038a88bbbe /eng/versioning.targets | |
parent | 7a7c9e0739bb98b0816a3fc47e1532ab2fb5bb59 (diff) |
[browser] Mark APIs as unsupported on browser (#40612)
* Mark System.Security.Cryptography.OpenSsl as unsupported on browser
* Mark other System.Security.Cryptography APIs as unsupported on browser
* Mark System.Data.Odbc.* as unsupported on browser
* Mark System.DirectoryServices.Protocols APIs as unsupported on browser
* Mark System.Drawing.Common APIs as unsupported on browser
* Mark System.IO.Ports as unsupported on browser
Diffstat (limited to 'eng/versioning.targets')
-rw-r--r-- | eng/versioning.targets | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/eng/versioning.targets b/eng/versioning.targets index 2a2f10dbcaf..efb7af48b76 100644 --- a/eng/versioning.targets +++ b/eng/versioning.targets @@ -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'"> |