зеркало из https://github.com/dotnet/razor.git
Make rootNamespace non-nullable
This commit is contained in:
Родитель
473b6d40fb
Коммит
9e66c0ccd5
|
@ -80,11 +80,7 @@ internal static class RazorProjectInfoFactory
|
||||||
fileSystem,
|
fileSystem,
|
||||||
configure: builder =>
|
configure: builder =>
|
||||||
{
|
{
|
||||||
if (rootNamespace is not null)
|
builder.SetRootNamespace(rootNamespace);
|
||||||
{
|
|
||||||
builder.SetRootNamespace(rootNamespace);
|
|
||||||
}
|
|
||||||
|
|
||||||
builder.SetCSharpLanguageVersion(csharpLanguageVersion);
|
builder.SetCSharpLanguageVersion(csharpLanguageVersion);
|
||||||
builder.SetSupportLocalizedComponentNames(); // ProjectState in MS.CA.Razor.Workspaces does this, so I'm doing it too
|
builder.SetSupportLocalizedComponentNames(); // ProjectState in MS.CA.Razor.Workspaces does this, so I'm doing it too
|
||||||
});
|
});
|
||||||
|
@ -101,7 +97,7 @@ internal static class RazorProjectInfoFactory
|
||||||
documents: documents);
|
documents: documents);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static (RazorConfiguration configuration, string? rootNamespace) ComputeRazorConfigurationOptions(AnalyzerConfigOptionsProvider options, Compilation compilation)
|
private static (RazorConfiguration configuration, string rootNamespace) ComputeRazorConfigurationOptions(AnalyzerConfigOptionsProvider options, Compilation compilation)
|
||||||
{
|
{
|
||||||
// See RazorSourceGenerator.RazorProviders.cs
|
// See RazorSourceGenerator.RazorProviders.cs
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче