Cleaning up unused TargetsBrowser conditions (#41062)
authorAnirudh Agnihotry <anirudhagnihotry098@gmail.com>
Thu, 20 Aug 2020 02:35:23 +0000 (19:35 -0700)
committerGitHub <noreply@github.com>
Thu, 20 Aug 2020 02:35:23 +0000 (19:35 -0700)
* minor cleanup

* remove unused string

src/libraries/System.IO.Pipes/src/System.IO.Pipes.csproj
src/libraries/System.Security.Cryptography.Primitives/src/Resources/Strings.resx
src/libraries/System.Security.Cryptography.Primitives/src/System.Security.Cryptography.Primitives.csproj
src/libraries/System.Security.Cryptography.Xml/src/Resources/Strings.resx
src/libraries/System.Security.Cryptography.Xml/src/System.Security.Cryptography.Xml.csproj

index 2016c93..324ce07 100644 (file)
     <Reference Include="System.Collections.NonGeneric" />
     <Reference Include="System.Security.Claims" />
   </ItemGroup>
-  <ItemGroup Condition="'$(TargetsUnix)' == 'true' or '$(TargetsBrowser)' == 'true'">
+  <ItemGroup Condition="'$(TargetsUnix)' == 'true'">
     <Reference Include="Microsoft.Win32.Primitives" />
     <Reference Include="System.IO.FileSystem" />
     <Reference Include="System.Net.Primitives" />
index 1307030..a1b8604 100644 (file)
   <data name="InvalidOperation_IncorrectImplementation" xml:space="preserve">
     <value>The algorithm's implementation is incorrect.</value>
   </data>
-  <data name="SystemSecurityCryptographyPrimitives_PlatformNotSupported" xml:space="preserve">
-    <value>System.Security.Cryptography.Primitives is not supported on this platform.</value>
-  </data>
 </root>
index a75db12..681bb08 100644 (file)
@@ -5,9 +5,6 @@
     <TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
     <Nullable>enable</Nullable>
   </PropertyGroup>
-  <PropertyGroup>
-    <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetsBrowser)' == 'true'">SR.SystemSecurityCryptographyPrimitives_PlatformNotSupported</GeneratePlatformNotSupportedAssemblyMessage>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="System\Security\Cryptography\AsymmetricAlgorithm.cs" />
     <Compile Include="System\Security\Cryptography\CipherMode.cs" />
index 83c6829..f575153 100644 (file)
   <data name="Log_UnsafeTransformMethod" xml:space="preserve">
     <value>Transform method "{0}" is not on the safe list. Safe transform methods are: {1}.</value>
   </data>
-  <data name="SystemSecurityCryptographyXml_PlatformNotSupported" xml:space="preserve">
-    <value>System.Security.Cryptography.Xml is not supported on this platform.</value>
-  </data>
 </root>
index 5f39ed5..557d18e 100644 (file)
@@ -7,9 +7,6 @@
   <PropertyGroup>
     <IsPartialFacadeAssembly Condition="$(TargetFramework.StartsWith('net4'))">true</IsPartialFacadeAssembly>
   </PropertyGroup>
-  <PropertyGroup>
-    <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetsBrowser)' == 'true'">SR.SystemSecurityCryptographyXml_PlatformNotSupported</GeneratePlatformNotSupportedAssemblyMessage>
-  </PropertyGroup>
   <ItemGroup Condition="'$(IsPartialFacadeAssembly)' != 'true'">
     <Compile Include="System\Security\Cryptography\Xml\AncestralNamespaceContextManager.cs" />
     <Compile Include="System\Security\Cryptography\Xml\AttributeSortOrder.cs" />