From ae750fa0dfd4bba70c4d3aabc87a30c3246189d2 Mon Sep 17 00:00:00 2001 From: Andriy Svyryd Date: Wed, 10 Sep 2025 16:48:55 -0700 Subject: [PATCH] Revert to stable MSBuild and Roslyn versions --- eng/Version.Details.props | 12 ---------- eng/Version.Details.xml | 24 ------------------- eng/Versions.props | 17 +++++++++++++ .../Design/Internal/DbContextOperations.cs | 8 +++++-- 4 files changed, 23 insertions(+), 38 deletions(-) diff --git a/eng/Version.Details.props b/eng/Version.Details.props index 7cf42476829..f062ca64f9a 100644 --- a/eng/Version.Details.props +++ b/eng/Version.Details.props @@ -6,12 +6,6 @@ This file should be imported by eng/Versions.props - 17.15.0-preview-25459-101 - 17.15.0-preview-25459-101 - 17.15.0-preview-25459-101 - 5.0.0-2.25459.101 - 5.0.0-2.25459.101 - 5.0.0-2.25459.101 10.0.0-beta.25459.101 10.0.0-beta.25459.101 10.0.0-beta.25459.101 @@ -34,12 +28,6 @@ This file should be imported by eng/Versions.props - $(MicrosoftBuildFrameworkPackageVersion) - $(MicrosoftBuildTasksCorePackageVersion) - $(MicrosoftBuildUtilitiesCorePackageVersion) - $(MicrosoftCodeAnalysisCSharpPackageVersion) - $(MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion) - $(MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion) $(MicrosoftDotNetArcadeSdkPackageVersion) $(MicrosoftDotNetBuildTasksTemplatingPackageVersion) $(MicrosoftDotNetHelixSdkPackageVersion) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index c5ada7eda98..88561527231 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -62,30 +62,6 @@ https://github.com/dotnet/dotnet 13a7588dc6e538cc938ea1277a37f756a80c7f03 - - https://github.com/dotnet/dotnet - 13a7588dc6e538cc938ea1277a37f756a80c7f03 - - - https://github.com/dotnet/dotnet - 13a7588dc6e538cc938ea1277a37f756a80c7f03 - - - https://github.com/dotnet/dotnet - 13a7588dc6e538cc938ea1277a37f756a80c7f03 - - - https://github.com/dotnet/dotnet - 13a7588dc6e538cc938ea1277a37f756a80c7f03 - - - https://github.com/dotnet/dotnet - 13a7588dc6e538cc938ea1277a37f756a80c7f03 - - - https://github.com/dotnet/dotnet - 13a7588dc6e538cc938ea1277a37f756a80c7f03 - diff --git a/eng/Versions.props b/eng/Versions.props index ab4f7d976d5..dc41fdad138 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -16,6 +16,23 @@ False + + + 17.14.8 + 17.14.8 + 17.14.8 + 4.14.0 + 4.14.0 + 4.14.0 + + + 17.15.0 + 17.15.0 + 17.15.0 + 5.0.0 + 5.0.0 + 5.0.0 + 1.1.3-beta1.24423.1 1.1.3-beta1.24352.1 diff --git a/src/EFCore.Design/Design/Internal/DbContextOperations.cs b/src/EFCore.Design/Design/Internal/DbContextOperations.cs index 00cf2f787dd..c0a1e9e096c 100644 --- a/src/EFCore.Design/Design/Internal/DbContextOperations.cs +++ b/src/EFCore.Design/Design/Internal/DbContextOperations.cs @@ -305,10 +305,14 @@ private IReadOnlyList PrecompileQueries( { workspace = MSBuildWorkspace.Create(); workspace.LoadMetadataForReferencedProjects = true; - workspace.RegisterWorkspaceFailedHandler(e => +#pragma warning disable CS0612 // Obsolete +#pragma warning disable CS0618 // Obsolete + workspace.WorkspaceFailed += (_, e) => { _reporter.WriteError(DesignStrings.MSBuildWorkspaceFailure(e.Diagnostic.Kind, e.Diagnostic.Message)); - }); + }; +#pragma warning restore CS0618 // Obsolete +#pragma warning restore CS0612 // Obsolete project = workspace.OpenProjectAsync(_project).GetAwaiter().GetResult(); } catch (Exception ex)