From 4928eb3de0d80570dad93a143b52a8f5a205dac7 Mon Sep 17 00:00:00 2001 From: Andrew Stanton-Nurse Date: Tue, 23 Jul 2019 14:40:18 -0700 Subject: [PATCH] fix #12445 by migrating dotnet-sql-cache to new SqlClient (#12447) --- eng/Dependencies.props | 2 ++ eng/Signing.props | 6 ++++++ eng/Versions.props | 1 + src/Tools/Tools.sln | 6 ++++++ src/Tools/dotnet-sql-cache/src/Program.cs | 2 +- src/Tools/dotnet-sql-cache/src/dotnet-sql-cache.csproj | 5 ++++- 6 files changed, 20 insertions(+), 2 deletions(-) diff --git a/eng/Dependencies.props b/eng/Dependencies.props index 3f6d8d595c..4d1a3b5c02 100644 --- a/eng/Dependencies.props +++ b/eng/Dependencies.props @@ -185,6 +185,8 @@ and are generated based on the last package release. + + diff --git a/eng/Signing.props b/eng/Signing.props index 0e8b87b4dd..0dc432069d 100644 --- a/eng/Signing.props +++ b/eng/Signing.props @@ -96,6 +96,12 @@ <_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-arm\host\**\*.dll" CertificateName="None" /> <_DotNetFilesToExclude Include="$(RedistNetCorePath)dotnet.exe" CertificateName="None" /> + + + diff --git a/eng/Versions.props b/eng/Versions.props index 2f2fbb85f5..4fbf4b54f9 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -246,6 +246,7 @@ $(XunitVersion) $(XunitVersion) $(XunitVersion) + 1.0.19189.1-Preview diff --git a/src/Tools/Tools.sln b/src/Tools/Tools.sln index 77867dcf59..f69110e6d3 100644 --- a/src/Tools/Tools.sln +++ b/src/Tools/Tools.sln @@ -13,6 +13,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Develo EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests", "FirstRunCertGenerator\test\Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests.csproj", "{1EC6FA27-40A5-433F-8CA1-636E7ED8863E}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-sql-cache", "dotnet-sql-cache\src\dotnet-sql-cache.csproj", "{15FB0E39-1A28-4325-AD3C-76352516C80D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -39,6 +41,10 @@ Global {1EC6FA27-40A5-433F-8CA1-636E7ED8863E}.Debug|Any CPU.Build.0 = Debug|Any CPU {1EC6FA27-40A5-433F-8CA1-636E7ED8863E}.Release|Any CPU.ActiveCfg = Release|Any CPU {1EC6FA27-40A5-433F-8CA1-636E7ED8863E}.Release|Any CPU.Build.0 = Release|Any CPU + {15FB0E39-1A28-4325-AD3C-76352516C80D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {15FB0E39-1A28-4325-AD3C-76352516C80D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {15FB0E39-1A28-4325-AD3C-76352516C80D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {15FB0E39-1A28-4325-AD3C-76352516C80D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/Tools/dotnet-sql-cache/src/Program.cs b/src/Tools/dotnet-sql-cache/src/Program.cs index 874244f603..a2271c4693 100644 --- a/src/Tools/dotnet-sql-cache/src/Program.cs +++ b/src/Tools/dotnet-sql-cache/src/Program.cs @@ -3,8 +3,8 @@ using System; using System.Data; -using System.Data.SqlClient; using System.Reflection; +using Microsoft.Data.SqlClient; using Microsoft.Extensions.CommandLineUtils; using Microsoft.Extensions.Tools.Internal; diff --git a/src/Tools/dotnet-sql-cache/src/dotnet-sql-cache.csproj b/src/Tools/dotnet-sql-cache/src/dotnet-sql-cache.csproj index b40f89eece..83199e9ca0 100644 --- a/src/Tools/dotnet-sql-cache/src/dotnet-sql-cache.csproj +++ b/src/Tools/dotnet-sql-cache/src/dotnet-sql-cache.csproj @@ -15,7 +15,10 @@ - + + + +