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.
<Link>Common\System\Runtime\Serialization\Formatters\BinaryFormatterHelpers.cs</Link>
</Compile>
</ItemGroup>
- <ItemGroup>
- <PackageReference Include="System.Data.SqlClient" Version="$(SystemDataSqlClientVersion)" />
- </ItemGroup>
</Project>
<ItemGroup Condition="'$(TargetsNetCoreApp)' == 'true'">
<Reference Include="System.Text.Json" />
</ItemGroup>
- <ItemGroup>
- <PackageReference Include="System.Data.SqlClient" Version="$(SystemDataSqlClientVersion)" />
- </ItemGroup>
</Project>
<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>
-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