Add Support for SupportLocalizedComponentNames (#4255)

* Add SetSupportLocalizedComponentNames

* Update ASPNetCore-Debugging.md
This commit is contained in:
Tanay Parikh 2021-09-24 17:15:57 -07:00 коммит произвёл GitHub
Родитель 42ebd0462a
Коммит 814419a179
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -13,6 +13,11 @@ Sometimes it may be necessary to make changes in [`dotnet/aspnetcore`](https://g
7. Open `aspnetcore-tooling/eng/Versions.props` and note the version for `MicrosoftCodeAnalysisRazorPackageVersion`. Ex. `5.0.0-rc.1.20380.7`.
8. Do a find in `Versions.props` for the version in step 7 and replace with `x.0.0-dev`.
9. Get the assembly version of the `aspnetcore` packages.
1. Assembly version can be found by openning the `.dll` in `ILSpy`
1. Ex. `~/.nuget\packages\microsoft.aspnetcore.razor.language\6.0.0-dev\lib\netstandard2.0.nuget\packages\microsoft.aspnetcore.razor.language\{VERSION}.0.0-dev\lib\netstandard2.0\Microsoft.AspNetCore.Razor.Language.dll`
2. This is likely going to be the dev version `42.42.42.42`
10. Update the `OldVersionUpperBound` and `NewVersion`, of the Razor assemblies in `src\Razor\src\Microsoft.VisualStudio.RazorExtension\AssemblyBindingRedirects.cs` with the assembly version from the step above.
## Notes:
- ⚠️ Ensure you do not commit the changes to `aspnetcore-tooling/NuGet.config` & `aspnetcore-tooling/eng/Versions.props`!

Просмотреть файл

@ -419,6 +419,7 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem
{
builder.SetRootNamespace(HostProject.RootNamespace);
builder.SetCSharpLanguageVersion(CSharpLanguageVersion);
builder.SetSupportLocalizedComponentNames();
});
}