From 17eef82e2f97ad7db2c0957232d7114c9f657aa7 Mon Sep 17 00:00:00 2001 From: David Wengier Date: Tue, 20 Oct 2026 11:21:48 +1100 Subject: [PATCH] Address remaining dev18.0 CG alerts Bump the pinned SDK to 9.0.122 (runtime packs 9.0.21) and MessagePack to 2.5.303. Drop the old Microsoft.NET.Sdk.Razor package and keep the six design time assets we actually used as byte-exact copies, with a scoped cgmanifest and attribution. --- Directory.Packages.props | 3 +- NOTICE.txt | 23 +++- eng/Versions.props | 2 - global.json | 4 +- ...VisualStudio.LanguageServices.Razor.csproj | 3 +- ...crosoft.VisualStudio.RazorExtension.csproj | 7 +- src/Razor/src/rzls/Targets/Readme.md | 8 +- .../files/RazorDesignTime/.gitattributes | 3 + ...Microsoft.NET.Sdk.Razor.DesignTime.targets | 117 ++++++++++++++++++ .../Rules/RazorComponentWithTargetPath.xaml | 30 +++++ .../Rules/RazorConfiguration.xaml | 29 +++++ .../RazorDesignTime/Rules/RazorExtension.xaml | 37 ++++++ .../RazorDesignTime/Rules/RazorGeneral.xaml | 36 ++++++ .../Rules/RazorGenerateWithTargetPath.xaml | 30 +++++ .../files/RazorDesignTime/cgmanifest.json | 19 +++ 15 files changed, 337 insertions(+), 14 deletions(-) create mode 100644 src/Shared/files/RazorDesignTime/.gitattributes create mode 100644 src/Shared/files/RazorDesignTime/Microsoft.NET.Sdk.Razor.DesignTime.targets create mode 100644 src/Shared/files/RazorDesignTime/Rules/RazorComponentWithTargetPath.xaml create mode 100644 src/Shared/files/RazorDesignTime/Rules/RazorConfiguration.xaml create mode 100644 src/Shared/files/RazorDesignTime/Rules/RazorExtension.xaml create mode 100644 src/Shared/files/RazorDesignTime/Rules/RazorGeneral.xaml create mode 100644 src/Shared/files/RazorDesignTime/Rules/RazorGenerateWithTargetPath.xaml create mode 100644 src/Shared/files/RazorDesignTime/cgmanifest.json diff --git a/Directory.Packages.props b/Directory.Packages.props index 7a90e6b9fe9..a3800830ae0 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -25,7 +25,7 @@ - + @@ -63,7 +63,6 @@ - diff --git a/NOTICE.txt b/NOTICE.txt index 85b159a2015..c4397236aa9 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -17,6 +17,28 @@ required to debug changes to any libraries licensed under the GNU Lesser General --------------------------------------------------------- +ASP.NET Core Razor design-time assets - Apache-2.0 + +Source: https://github.com/dotnet/aspnetcore/tree/20b6779cf3af2fed6a8fe64a0865cfab50b776bb/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0 +Files: src/Shared/files/RazorDesignTime/Microsoft.NET.Sdk.Razor.DesignTime.targets + src/Shared/files/RazorDesignTime/Rules/*.xaml + +Copyright (c) .NET Foundation. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--------------------------------------------------------- + Castle.Core 4.3.1 - Apache-2.0 @@ -5597,4 +5619,3 @@ CopyrightTableDirectory BoundImportTableDirectory DelayImportTableDirectory CopyrightAttributesNotFound DefaultArgumentAlreadyDefined DescriptionAttributesNotFound --------------------------------------------------------- - diff --git a/eng/Versions.props b/eng/Versions.props index 61d2e2134ec..02f75771b98 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -41,8 +41,6 @@ Versions below this comment are not managed by automation and can be changed as needed. --> - - 6.0.0-alpha.1.21072.5 - + - + true MSBuild Microsoft\VisualStudio\Razor\ - + true MSBuild Microsoft\VisualStudio\Razor\Rules\ @@ -200,7 +200,6 @@ - + + + + + + $(UpToDateReloadFileTypes);$(RazorUpToDateReloadFileTypes) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + File + + + File + + + Project + + + Project + + + Project + + + + + + + + + + + + + + + + diff --git a/src/Shared/files/RazorDesignTime/Rules/RazorComponentWithTargetPath.xaml b/src/Shared/files/RazorDesignTime/Rules/RazorComponentWithTargetPath.xaml new file mode 100644 index 00000000000..5584391594b --- /dev/null +++ b/src/Shared/files/RazorDesignTime/Rules/RazorComponentWithTargetPath.xaml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Shared/files/RazorDesignTime/Rules/RazorConfiguration.xaml b/src/Shared/files/RazorDesignTime/Rules/RazorConfiguration.xaml new file mode 100644 index 00000000000..b52c4638407 --- /dev/null +++ b/src/Shared/files/RazorDesignTime/Rules/RazorConfiguration.xaml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Shared/files/RazorDesignTime/Rules/RazorExtension.xaml b/src/Shared/files/RazorDesignTime/Rules/RazorExtension.xaml new file mode 100644 index 00000000000..75ab7cbc656 --- /dev/null +++ b/src/Shared/files/RazorDesignTime/Rules/RazorExtension.xaml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Shared/files/RazorDesignTime/Rules/RazorGeneral.xaml b/src/Shared/files/RazorDesignTime/Rules/RazorGeneral.xaml new file mode 100644 index 00000000000..310cd6754c9 --- /dev/null +++ b/src/Shared/files/RazorDesignTime/Rules/RazorGeneral.xaml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Shared/files/RazorDesignTime/Rules/RazorGenerateWithTargetPath.xaml b/src/Shared/files/RazorDesignTime/Rules/RazorGenerateWithTargetPath.xaml new file mode 100644 index 00000000000..2540ae6a191 --- /dev/null +++ b/src/Shared/files/RazorDesignTime/Rules/RazorGenerateWithTargetPath.xaml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Shared/files/RazorDesignTime/cgmanifest.json b/src/Shared/files/RazorDesignTime/cgmanifest.json new file mode 100644 index 00000000000..4dcec5b0739 --- /dev/null +++ b/src/Shared/files/RazorDesignTime/cgmanifest.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://json.schemastore.org/component-detection-manifest.json", + "registrations": [ + { + "component": { + "type": "git", + "git": { + "name": "dotnet/aspnetcore", + "repositoryUrl": "https://github.com/dotnet/aspnetcore", + "commitHash": "20b6779cf3af2fed6a8fe64a0865cfab50b776bb" + } + }, + "license": "Apache-2.0", + "description": "Only Microsoft.NET.Sdk.Razor.DesignTime.targets and the five XAML files in Rules are copied from src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0. These preserve the exact bytes from Microsoft.NET.Sdk.Razor 6.0.0-alpha.1.21072.5; upstream source differs only in CRLF/LF line endings. No SDK task assemblies or runtime components are included.", + "version": "https://github.com/dotnet/aspnetcore/tree/20b6779cf3af2fed6a8fe64a0865cfab50b776bb" + } + ], + "version": 1 +}