Fix System.Data.SqlClient tests on Alpine (#31850)
authorJan Kotas <jkotas@microsoft.com>
Thu, 6 Feb 2020 15:18:46 +0000 (07:18 -0800)
committerGitHub <noreply@github.com>
Thu, 6 Feb 2020 15:18:46 +0000 (07:18 -0800)
System.Data.SqlClient package reference in tests is restoring wrong flavor of System.Data.SqlClient in some cases (Alpine, Mono). Switch back to copying System.Data.SqlClient to testhost.

src/libraries/System.Data.Common/tests/System.Data.Common.Tests.csproj
src/libraries/System.Runtime.Serialization.Formatters/tests/System.Runtime.Serialization.Formatters.Tests.csproj
src/libraries/restore/runtime/runtime.depproj
src/mono/netcore/CoreFX.issues.rsp

index 3549769da009d1d1034e511f3d0450e3964da98a..f82cb624c9c7d4c4702b5490efc524cc8d1cf7fe 100644 (file)
       <Link>Common\System\Runtime\Serialization\Formatters\BinaryFormatterHelpers.cs</Link>
     </Compile>
   </ItemGroup>
-  <ItemGroup>
-    <PackageReference Include="System.Data.SqlClient" Version="$(SystemDataSqlClientVersion)" />
-  </ItemGroup>
 </Project>
index 35872a145c6d6b7eaab35c5ac5b0d4342a0ef79f..909ade149b079057e84424d95f9e8218e1d7c674 100644 (file)
@@ -32,7 +32,4 @@
   <ItemGroup Condition="'$(TargetsNetCoreApp)' == 'true'">
     <Reference Include="System.Text.Json" />
   </ItemGroup>
-  <ItemGroup>
-    <PackageReference Include="System.Data.SqlClient" Version="$(SystemDataSqlClientVersion)" />
-  </ItemGroup>
 </Project>
index ead42b14dd3febc14034fcac2a88beb1c41cad20..1ffa46fc7891b2a87d657b22f4ee0d0ec509382f 100644 (file)
     <FileToExclude Include="apphost" />
   </ItemGroup>
 
+  <ItemGroup>
+    <!-- System.Data.SqlClient is not live-built anymore -->
+    <PackageReference Include="System.Data.SqlClient" Version="$(SystemDataSqlClientVersion)" />
+    <!-- Exclude live-built dependencies -->
+    <FileToExclude Include="Microsoft.Win32.Registry" />
+    <FileToExclude Include="System.Security.AccessControl" />
+    <FileToExclude Include="System.Security.Principal.Windows" />
+  </ItemGroup>
+
   <ItemGroup>
     <PackageReference Condition="'$(TargetFramework)' == 'netcoreapp3.0'" Include="Microsoft.Private.Corefx.NETCoreApp" Version="4.6.0-rc2.19462.14" />
   </ItemGroup>
index 21ace5da93fb8943f22b5303da1a13f3aff32bff..7d4cf244d47a6b62b5cd296d98d8907d34de31cb 100644 (file)
 -nomethod System.Security.Cryptography.Encoding.Tests.OidTests.LookupOidByFriendlyName_Ctor
 
 -nomethod System.Tests.StringComparerTests.CreateCultureOptions_InvalidArguments_Throws
-
-####################################################################
-##  System.Data.SqlClient
-####################################################################
-
-# The tests are loading wrong System.Data.SqlClient - https://github.com/dotnet/runtime/issues/31799
--nomethod System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests.RoundtripManyObjectsInOneStream
--nomethod System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests.ValidateBasicObjectsRoundtrip
--noclass System.Data.Common.DbProviderFactoriesTests