Update error message
Update error message based on PR feedback to less C# specific.
This commit is contained in:
parent
9950325269
commit
498c1c570d
|
|
@ -151,8 +151,8 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal
|
|||
string.Equals(CS0246, g.Id, StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
additionalMessage = Resources.FormatCompilation_DependencyContextIsNotSpecified(
|
||||
"PreserveCompilationContext",
|
||||
"csproj");
|
||||
"Microsoft.NET.Sdk.Web",
|
||||
"PreserveCompilationContext");
|
||||
}
|
||||
|
||||
var compilationFailure = new CompilationFailure(
|
||||
|
|
|
|||
|
|
@ -447,7 +447,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// One or more compilation references are missing. Possible causes include a missing '{0}' property in the application's '{1}' file.
|
||||
/// One or more compilation references are missing. Ensure that your project is referencing '{0}' and the '{1}' property is not set to false.
|
||||
/// </summary>
|
||||
internal static string Compilation_DependencyContextIsNotSpecified
|
||||
{
|
||||
|
|
@ -455,7 +455,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// One or more compilation references are missing. Possible causes include a missing '{0}' property in the application's '{1}' file.
|
||||
/// One or more compilation references are missing. Ensure that your project is referencing '{0}' and the '{1}' property is not set to false.
|
||||
/// </summary>
|
||||
internal static string FormatCompilation_DependencyContextIsNotSpecified(object p0, object p1)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@
|
|||
<value>A circular layout reference was detected when rendering '{0}'. The layout page '{1}' has already been rendered.</value>
|
||||
</data>
|
||||
<data name="Compilation_DependencyContextIsNotSpecified" xml:space="preserve">
|
||||
<value>One or more compilation references are missing. Possible causes include a missing '{0}' property in the application's '{1}' file.</value>
|
||||
<value>One or more compilation references are missing. Ensure that your project is referencing '{0}' and the '{1}' property is not set to false.</value>
|
||||
</data>
|
||||
<data name="ViewLocationFormatsIsRequired" xml:space="preserve">
|
||||
<value>'{0}' cannot be empty. These locations are required to locate a view for rendering.</value>
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
|||
public class ErrorPageTests : IClassFixture<MvcTestFixture<ErrorPageMiddlewareWebSite.Startup>>
|
||||
{
|
||||
private static readonly string PreserveCompilationContextMessage = HtmlEncoder.Default.Encode(
|
||||
"One or more compilation references are missing. Possible causes include a missing " +
|
||||
"'PreserveCompilationContext' property in the application's 'csproj' file.");
|
||||
"One or more compilation references are missing. Ensure that your project is referencing " +
|
||||
"'Microsoft.NET.Sdk.Web' and the 'PreserveCompilationContext' property is not set to false.");
|
||||
public ErrorPageTests(MvcTestFixture<ErrorPageMiddlewareWebSite.Startup> fixture)
|
||||
{
|
||||
Client = fixture.Client;
|
||||
|
|
|
|||
Loading…
Reference in New Issue