diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/ProjectSystem/RemoteDocumentSnapshot.cs b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/ProjectSystem/RemoteDocumentSnapshot.cs index 520416671d1..e63492972d4 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/ProjectSystem/RemoteDocumentSnapshot.cs +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/ProjectSystem/RemoteDocumentSnapshot.cs @@ -69,10 +69,7 @@ public async ValueTask GetGeneratedOutputAsync(CancellationTo return _codeDocument; } - // TODO: What happens if we can't get the document? (https://github.com/dotnet/razor/issues/11522) - var document = await ProjectSnapshot.GetCodeDocumentAsync(this, cancellationToken).ConfigureAwait(false) - ?? throw new InvalidOperationException("Could not get the code document"); - + var document = await ProjectSnapshot.GetRequiredCodeDocumentAsync(this, cancellationToken).ConfigureAwait(false); return InterlockedOperations.Initialize(ref _codeDocument, document); } @@ -95,9 +92,7 @@ public async ValueTask GetGeneratedDocumentAsync(Cancel return _generatedDocument; } - var generatedDocument = await ProjectSnapshot.GetGeneratedDocumentAsync(this, cancellationToken).ConfigureAwait(false) - ?? throw new InvalidOperationException("Could not get the generated document"); // TODO: what happens if we can't get the generated document? - + var generatedDocument = await ProjectSnapshot.GetRequiredGeneratedDocumentAsync(this, cancellationToken).ConfigureAwait(false); return InterlockedOperations.Initialize(ref _generatedDocument, generatedDocument); } diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/ProjectSystem/RemoteProjectSnapshot.cs b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/ProjectSystem/RemoteProjectSnapshot.cs index 1cede2ff218..f7412bcff57 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/ProjectSystem/RemoteProjectSnapshot.cs +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/ProjectSystem/RemoteProjectSnapshot.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Collections.Immutable; -using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Threading; @@ -61,7 +60,7 @@ public IEnumerable DocumentFilePaths public async ValueTask> GetTagHelpersAsync(CancellationToken cancellationToken) { - var generatorResult = await GetRazorGeneratorResultAsync(cancellationToken).ConfigureAwait(false); + var generatorResult = await GetRazorGeneratorResultAsync(throwIfNotFound: false, cancellationToken).ConfigureAwait(false); if (generatorResult is null) return []; @@ -141,30 +140,24 @@ public bool TryGetDocument(string filePath, [NotNullWhen(true)] out IDocumentSna return false; } - internal async Task GetCodeDocumentAsync(IDocumentSnapshot documentSnapshot, CancellationToken cancellationToken) + internal async Task GetRequiredCodeDocumentAsync(IDocumentSnapshot documentSnapshot, CancellationToken cancellationToken) { - var generatorResult = await GetRazorGeneratorResultAsync(cancellationToken).ConfigureAwait(false); - if (generatorResult is null) - { - return null; - } + var generatorResult = await GetRazorGeneratorResultAsync(throwIfNotFound: true, cancellationToken).ConfigureAwait(false); - return generatorResult.GetCodeDocument(documentSnapshot.FilePath); + return generatorResult.AssumeNotNull().GetCodeDocument(documentSnapshot.FilePath) + ?? throw new InvalidOperationException(SR.FormatGenerator_run_result_did_not_contain_a_code_document(documentSnapshot.FilePath)); } - internal async Task GetGeneratedDocumentAsync(IDocumentSnapshot documentSnapshot, CancellationToken cancellationToken) + internal async Task GetRequiredGeneratedDocumentAsync(IDocumentSnapshot documentSnapshot, CancellationToken cancellationToken) { - var generatorResult = await GetRazorGeneratorResultAsync(cancellationToken).ConfigureAwait(false); - if (generatorResult is null) - { - return null; - } + var generatorResult = await GetRazorGeneratorResultAsync(throwIfNotFound: true, cancellationToken).ConfigureAwait(false); - var hintName = generatorResult.GetHintName(documentSnapshot.FilePath); + var hintName = generatorResult.AssumeNotNull().GetHintName(documentSnapshot.FilePath); var generatedDocument = await _project.TryGetSourceGeneratedDocumentFromHintNameAsync(hintName, cancellationToken).ConfigureAwait(false); - return generatedDocument ?? throw new InvalidOperationException("Couldn't get the source generated document for a hint name that we got from the generator?"); + return generatedDocument + ?? throw new InvalidOperationException(SR.FormatCouldnt_get_the_source_generated_document_for_hint_name(hintName)); } public async Task TryGetCodeDocumentFromGeneratedDocumentUriAsync(Uri generatedDocumentUri, CancellationToken cancellationToken) @@ -179,7 +172,7 @@ public bool TryGetDocument(string filePath, [NotNullWhen(true)] out IDocumentSna public async Task TryGetCodeDocumentFromGeneratedHintNameAsync(string generatedDocumentHintName, CancellationToken cancellationToken) { - var runResult = await GetRazorGeneratorResultAsync(cancellationToken).ConfigureAwait(false); + var runResult = await GetRazorGeneratorResultAsync(throwIfNotFound: false, cancellationToken).ConfigureAwait(false); if (runResult is null) { return null; @@ -192,7 +185,7 @@ public bool TryGetDocument(string filePath, [NotNullWhen(true)] out IDocumentSna public async Task TryGetRazorDocumentFromGeneratedHintNameAsync(string generatedDocumentHintName, CancellationToken cancellationToken) { - var runResult = await GetRazorGeneratorResultAsync(cancellationToken).ConfigureAwait(false); + var runResult = await GetRazorGeneratorResultAsync(throwIfNotFound: false, cancellationToken).ConfigureAwait(false); if (runResult is null) { return null; @@ -204,31 +197,60 @@ public bool TryGetDocument(string filePath, [NotNullWhen(true)] out IDocumentSna : null; } - private async Task GetRazorGeneratorResultAsync(CancellationToken cancellationToken) + private async Task GetRazorGeneratorResultAsync(bool throwIfNotFound, CancellationToken cancellationToken) { var result = await _project.GetSourceGeneratorRunResultAsync(cancellationToken).ConfigureAwait(false); if (result is null) { + if (throwIfNotFound) + { + throw new InvalidOperationException(SR.FormatCouldnt_get_a_source_generator_run_result(_project.Name)); + } + return null; } var runResult = result.Results.SingleOrDefault(r => r.Generator.GetGeneratorType().Assembly.Location == typeof(RazorSourceGenerator).Assembly.Location); if (runResult.Generator is null) { + if (throwIfNotFound) + { + if (result.Results.SingleOrDefault(r => r.Generator.GetGeneratorType().Name == "Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator").Generator is { } wrongGenerator) + { + // Wrong ALC? + throw new InvalidOperationException(SR.FormatRazor_source_generator_reference_incorrect(wrongGenerator.GetGeneratorType().Assembly.Location, typeof(RazorSourceGenerator).Assembly.Location, _project.Name)); + } + else + { + throw new InvalidOperationException(SR.FormatRazor_source_generator_is_not_referenced(_project.Name)); + } + } + return null; } #pragma warning disable RSEXPERIMENTAL004 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. - if (!runResult.HostOutputs.TryGetValue(nameof(RazorGeneratorResult), out var objectResult) || objectResult is not RazorGeneratorResult generatorResult) + if (!runResult.HostOutputs.TryGetValue(nameof(RazorGeneratorResult), out var objectResult)) +#pragma warning restore RSEXPERIMENTAL004 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. { - Debug.Fail($""" - No RazorGeneratorResult found in host outputs for project '{_project.Name}': - {string.Join(Environment.NewLine, runResult.Diagnostics)} - """); + if (throwIfNotFound) + { + throw new InvalidOperationException(SR.FormatRazor_source_generator_did_not_produce_a_host_output(_project.Name, string.Join(Environment.NewLine, runResult.Diagnostics))); + } + + return null; + } + + if (objectResult is not RazorGeneratorResult generatorResult) + { + if (throwIfNotFound) + { + // Wrong ALC? + throw new InvalidOperationException(SR.FormatRazor_source_generator_host_output_is_not_RazorGeneratorResult(_project.Name, string.Join(Environment.NewLine, runResult.Diagnostics))); + } return null; } -#pragma warning restore RSEXPERIMENTAL004 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. return generatorResult; } diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/SR.resx b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/SR.resx index 28206cc067c..b74b7a249ef 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/SR.resx +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/SR.resx @@ -132,4 +132,25 @@ Project does not belong to this solution. + + Generator run result did not contain a code document for '{0}'. + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + + Couldn't get a source generator run result for project '{0}'. + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + + Razor source generator is not referenced or no run result found for project '{0}'. + + + Razor source generator did not produce a host output for project '{0}': {1} + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + \ No newline at end of file diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.cs.xlf b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.cs.xlf index b7ae0b4f7af..78b34a086ee 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.cs.xlf +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.cs.xlf @@ -7,6 +7,16 @@ {0} není cesta k souboru Razor. + + Couldn't get a source generator run result for project '{0}'. + Couldn't get a source generator run result for project '{0}'. + + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + Document does not belong to this project. Dokument nepatří do tohoto projektu. @@ -17,6 +27,11 @@ Dokument není dokument Razor. + + Generator run result did not contain a code document for '{0}'. + Generator run result did not contain a code document for '{0}'. + + Project does not belong to this solution. Projekt nepatří do tohoto řešení. @@ -27,6 +42,26 @@ Projekt neobsahuje žádné dokumenty Razor. + + Razor source generator did not produce a host output for project '{0}': {1} + Razor source generator did not produce a host output for project '{0}': {1} + + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + + + + Razor source generator is not referenced or no run result found for project '{0}'. + Razor source generator is not referenced or no run result found for project '{0}'. + + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + \ No newline at end of file diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.de.xlf b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.de.xlf index ad93751bd32..e02b00a4595 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.de.xlf +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.de.xlf @@ -7,6 +7,16 @@ "{0}" ist kein Razor-Dateipfad. + + Couldn't get a source generator run result for project '{0}'. + Couldn't get a source generator run result for project '{0}'. + + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + Document does not belong to this project. Das Dokument gehört nicht zu diesem Projekt. @@ -17,6 +27,11 @@ Das Dokument ist kein Razor-Dokument. + + Generator run result did not contain a code document for '{0}'. + Generator run result did not contain a code document for '{0}'. + + Project does not belong to this solution. Das Projekt gehört nicht zu dieser Projektmappe. @@ -27,6 +42,26 @@ Das Projekt enthält keine Razor-Dokumente. + + Razor source generator did not produce a host output for project '{0}': {1} + Razor source generator did not produce a host output for project '{0}': {1} + + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + + + + Razor source generator is not referenced or no run result found for project '{0}'. + Razor source generator is not referenced or no run result found for project '{0}'. + + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + \ No newline at end of file diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.es.xlf b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.es.xlf index a0ea7e69dfa..77357db6dd8 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.es.xlf +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.es.xlf @@ -7,6 +7,16 @@ "{0}" no es una ruta de acceso de archivo de Razor. + + Couldn't get a source generator run result for project '{0}'. + Couldn't get a source generator run result for project '{0}'. + + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + Document does not belong to this project. El documento no pertenece a este proyecto. @@ -17,6 +27,11 @@ El documento no es un documento de Razor. + + Generator run result did not contain a code document for '{0}'. + Generator run result did not contain a code document for '{0}'. + + Project does not belong to this solution. El proyecto no pertenece a esta solución. @@ -27,6 +42,26 @@ El proyecto no contiene ningún documento de Razor. + + Razor source generator did not produce a host output for project '{0}': {1} + Razor source generator did not produce a host output for project '{0}': {1} + + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + + + + Razor source generator is not referenced or no run result found for project '{0}'. + Razor source generator is not referenced or no run result found for project '{0}'. + + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + \ No newline at end of file diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.fr.xlf b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.fr.xlf index 5e93271768e..2f39587a9a6 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.fr.xlf +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.fr.xlf @@ -7,6 +7,16 @@ « {0} » n’est pas un chemin d’accès de fichier Razor. + + Couldn't get a source generator run result for project '{0}'. + Couldn't get a source generator run result for project '{0}'. + + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + Document does not belong to this project. Le document n’appartient pas à ce projet. @@ -17,6 +27,11 @@ Le document n’est pas un document Razor. + + Generator run result did not contain a code document for '{0}'. + Generator run result did not contain a code document for '{0}'. + + Project does not belong to this solution. Le projet n’appartient pas à cette solution. @@ -27,6 +42,26 @@ Le projet ne contient aucun document Razor. + + Razor source generator did not produce a host output for project '{0}': {1} + Razor source generator did not produce a host output for project '{0}': {1} + + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + + + + Razor source generator is not referenced or no run result found for project '{0}'. + Razor source generator is not referenced or no run result found for project '{0}'. + + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + \ No newline at end of file diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.it.xlf b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.it.xlf index ffd600ad16e..c1a76fafc46 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.it.xlf +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.it.xlf @@ -7,6 +7,16 @@ '{0}' non è un percorso di file Razor. + + Couldn't get a source generator run result for project '{0}'. + Couldn't get a source generator run result for project '{0}'. + + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + Document does not belong to this project. Il documento non appartiene a questo progetto. @@ -17,6 +27,11 @@ Il documento non è un documento Razor. + + Generator run result did not contain a code document for '{0}'. + Generator run result did not contain a code document for '{0}'. + + Project does not belong to this solution. Il progetto non appartiene a questa soluzione. @@ -27,6 +42,26 @@ Il progetto non contiene documenti Razor. + + Razor source generator did not produce a host output for project '{0}': {1} + Razor source generator did not produce a host output for project '{0}': {1} + + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + + + + Razor source generator is not referenced or no run result found for project '{0}'. + Razor source generator is not referenced or no run result found for project '{0}'. + + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + \ No newline at end of file diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.ja.xlf b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.ja.xlf index ab91af7431c..0d14732266f 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.ja.xlf +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.ja.xlf @@ -7,6 +7,16 @@ '{0}' は Razor ファイル パスではありません。 + + Couldn't get a source generator run result for project '{0}'. + Couldn't get a source generator run result for project '{0}'. + + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + Document does not belong to this project. ドキュメントはこのプロジェクトに属していません。 @@ -17,6 +27,11 @@ ドキュメントは Razor ドキュメントではありません。 + + Generator run result did not contain a code document for '{0}'. + Generator run result did not contain a code document for '{0}'. + + Project does not belong to this solution. プロジェクトはこのソリューションに属していません。 @@ -27,6 +42,26 @@ プロジェクトには Razor ドキュメントが含まれていません。 + + Razor source generator did not produce a host output for project '{0}': {1} + Razor source generator did not produce a host output for project '{0}': {1} + + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + + + + Razor source generator is not referenced or no run result found for project '{0}'. + Razor source generator is not referenced or no run result found for project '{0}'. + + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + \ No newline at end of file diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.ko.xlf b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.ko.xlf index b25b69ceaf2..f7e25e88167 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.ko.xlf +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.ko.xlf @@ -7,6 +7,16 @@ '{0}’은(는) Razor 파일 경로가 아닙니다. + + Couldn't get a source generator run result for project '{0}'. + Couldn't get a source generator run result for project '{0}'. + + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + Document does not belong to this project. 문서가 이 프로젝트에 속하지 않습니다. @@ -17,6 +27,11 @@ 문서가 Razor 문서가 아닙니다. + + Generator run result did not contain a code document for '{0}'. + Generator run result did not contain a code document for '{0}'. + + Project does not belong to this solution. 프로젝트가 이 솔루션에 속하지 않습니다. @@ -27,6 +42,26 @@ 프로젝트에 Razor 문서가 없습니다. + + Razor source generator did not produce a host output for project '{0}': {1} + Razor source generator did not produce a host output for project '{0}': {1} + + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + + + + Razor source generator is not referenced or no run result found for project '{0}'. + Razor source generator is not referenced or no run result found for project '{0}'. + + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + \ No newline at end of file diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.pl.xlf b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.pl.xlf index dedcf6f2962..26d037c28c1 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.pl.xlf +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.pl.xlf @@ -7,6 +7,16 @@ „{0}” nie jest ścieżką pliku Razor. + + Couldn't get a source generator run result for project '{0}'. + Couldn't get a source generator run result for project '{0}'. + + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + Document does not belong to this project. Dokument nie należy do tego projektu. @@ -17,6 +27,11 @@ Dokument nie jest dokumentem Razor. + + Generator run result did not contain a code document for '{0}'. + Generator run result did not contain a code document for '{0}'. + + Project does not belong to this solution. Projekt nie należy do tego rozwiązania. @@ -27,6 +42,26 @@ Projekt nie zawiera żadnych dokumentów Razor. + + Razor source generator did not produce a host output for project '{0}': {1} + Razor source generator did not produce a host output for project '{0}': {1} + + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + + + + Razor source generator is not referenced or no run result found for project '{0}'. + Razor source generator is not referenced or no run result found for project '{0}'. + + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + \ No newline at end of file diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.pt-BR.xlf b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.pt-BR.xlf index c6f8c22e372..edb2e3bd689 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.pt-BR.xlf +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.pt-BR.xlf @@ -7,6 +7,16 @@ '{0}' não é um caminho de arquivo Razor. + + Couldn't get a source generator run result for project '{0}'. + Couldn't get a source generator run result for project '{0}'. + + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + Document does not belong to this project. O documento não pertence a esse projeto. @@ -17,6 +27,11 @@ O documento não é um documento Razor. + + Generator run result did not contain a code document for '{0}'. + Generator run result did not contain a code document for '{0}'. + + Project does not belong to this solution. O projeto não pertence a essa solução. @@ -27,6 +42,26 @@ O projeto não contém documentos Razor. + + Razor source generator did not produce a host output for project '{0}': {1} + Razor source generator did not produce a host output for project '{0}': {1} + + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + + + + Razor source generator is not referenced or no run result found for project '{0}'. + Razor source generator is not referenced or no run result found for project '{0}'. + + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + \ No newline at end of file diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.ru.xlf b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.ru.xlf index faaf320afc3..df3d3a0f2a9 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.ru.xlf +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.ru.xlf @@ -7,6 +7,16 @@ "{0}" не является путем к файлу Razor. + + Couldn't get a source generator run result for project '{0}'. + Couldn't get a source generator run result for project '{0}'. + + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + Document does not belong to this project. Документ не принадлежит этому проекту. @@ -17,6 +27,11 @@ Документ не является документом Razor. + + Generator run result did not contain a code document for '{0}'. + Generator run result did not contain a code document for '{0}'. + + Project does not belong to this solution. Проект не принадлежит этому решению. @@ -27,6 +42,26 @@ Проект не содержит документов Razor. + + Razor source generator did not produce a host output for project '{0}': {1} + Razor source generator did not produce a host output for project '{0}': {1} + + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + + + + Razor source generator is not referenced or no run result found for project '{0}'. + Razor source generator is not referenced or no run result found for project '{0}'. + + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + \ No newline at end of file diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.tr.xlf b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.tr.xlf index d29d035f837..a31861f12fb 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.tr.xlf +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.tr.xlf @@ -7,6 +7,16 @@ '{0}', bir Razor dosyası yolu değil. + + Couldn't get a source generator run result for project '{0}'. + Couldn't get a source generator run result for project '{0}'. + + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + Document does not belong to this project. Belge bu projeye ait değil. @@ -17,6 +27,11 @@ Belge Razor belgesi değil. + + Generator run result did not contain a code document for '{0}'. + Generator run result did not contain a code document for '{0}'. + + Project does not belong to this solution. Proje bu çözüme ait değil. @@ -27,6 +42,26 @@ Projede Razor belgesi yok. + + Razor source generator did not produce a host output for project '{0}': {1} + Razor source generator did not produce a host output for project '{0}': {1} + + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + + + + Razor source generator is not referenced or no run result found for project '{0}'. + Razor source generator is not referenced or no run result found for project '{0}'. + + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + \ No newline at end of file diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.zh-Hans.xlf b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.zh-Hans.xlf index d4c5e7dd7fc..9d3d48058f4 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.zh-Hans.xlf +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.zh-Hans.xlf @@ -7,6 +7,16 @@ “{0}”不是 Razor 文件路径。 + + Couldn't get a source generator run result for project '{0}'. + Couldn't get a source generator run result for project '{0}'. + + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + Document does not belong to this project. 文档不属于此项目。 @@ -17,6 +27,11 @@ 文档不是 Razor 文档。 + + Generator run result did not contain a code document for '{0}'. + Generator run result did not contain a code document for '{0}'. + + Project does not belong to this solution. 项目不属于此解决方案。 @@ -27,6 +42,26 @@ 项目不包含任何 Razor 文档。 + + Razor source generator did not produce a host output for project '{0}': {1} + Razor source generator did not produce a host output for project '{0}': {1} + + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + + + + Razor source generator is not referenced or no run result found for project '{0}'. + Razor source generator is not referenced or no run result found for project '{0}'. + + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + \ No newline at end of file diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.zh-Hant.xlf b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.zh-Hant.xlf index f40e1c187ae..91480c9c208 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.zh-Hant.xlf +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Resources/xlf/SR.zh-Hant.xlf @@ -7,6 +7,16 @@ '{0}' 並非 Razor 檔案路徑。 + + Couldn't get a source generator run result for project '{0}'. + Couldn't get a source generator run result for project '{0}'. + + + + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + Couldn't get the source generated document for hint name '{0}' that we got from the generator run result. + + Document does not belong to this project. 文件不屬於此專案。 @@ -17,6 +27,11 @@ 文件並非 Razor 文件。 + + Generator run result did not contain a code document for '{0}'. + Generator run result did not contain a code document for '{0}'. + + Project does not belong to this solution. 專案不屬於此解決方案。 @@ -27,6 +42,26 @@ 專案不包含任何 Razor 文件。 + + Razor source generator did not produce a host output for project '{0}': {1} + Razor source generator did not produce a host output for project '{0}': {1} + + + + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + Razor source generator host output is not of type RazorGeneratorResult for project '{0}': {1} + + + + Razor source generator is not referenced or no run result found for project '{0}'. + Razor source generator is not referenced or no run result found for project '{0}'. + + + + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + Razor source generator is referenced from '{0}' but we are expecting '{1}', for project '{2}'. + + \ No newline at end of file