зеркало из https://github.com/dotnet/razor.git
Add Support for SupportLocalizedComponentNames (#4255)
* Add SetSupportLocalizedComponentNames * Update ASPNetCore-Debugging.md
This commit is contained in:
Родитель
42ebd0462a
Коммит
814419a179
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче