Update view compilation error message
Update view compilation error message for csproj instead of project.json.
This commit is contained in:
parent
f3b1f2ca29
commit
9950325269
|
|
@ -151,9 +151,8 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal
|
||||||
string.Equals(CS0246, g.Id, StringComparison.OrdinalIgnoreCase)))
|
string.Equals(CS0246, g.Id, StringComparison.OrdinalIgnoreCase)))
|
||||||
{
|
{
|
||||||
additionalMessage = Resources.FormatCompilation_DependencyContextIsNotSpecified(
|
additionalMessage = Resources.FormatCompilation_DependencyContextIsNotSpecified(
|
||||||
"preserveCompilationContext",
|
"PreserveCompilationContext",
|
||||||
"buildOptions",
|
"csproj");
|
||||||
"project.json");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var compilationFailure = new CompilationFailure(
|
var compilationFailure = new CompilationFailure(
|
||||||
|
|
|
||||||
|
|
@ -447,7 +447,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// One or more compilation references are missing. Possible causes include a missing '{0}' property under '{1}' in the application's {2}.
|
/// One or more compilation references are missing. Possible causes include a missing '{0}' property in the application's '{1}' file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string Compilation_DependencyContextIsNotSpecified
|
internal static string Compilation_DependencyContextIsNotSpecified
|
||||||
{
|
{
|
||||||
|
|
@ -455,11 +455,11 @@ namespace Microsoft.AspNetCore.Mvc.Razor
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// One or more compilation references are missing. Possible causes include a missing '{0}' property under '{1}' in the application's {2}.
|
/// One or more compilation references are missing. Possible causes include a missing '{0}' property in the application's '{1}' file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string FormatCompilation_DependencyContextIsNotSpecified(object p0, object p1, object p2)
|
internal static string FormatCompilation_DependencyContextIsNotSpecified(object p0, object p1)
|
||||||
{
|
{
|
||||||
return string.Format(CultureInfo.CurrentCulture, GetString("Compilation_DependencyContextIsNotSpecified"), p0, p1, p2);
|
return string.Format(CultureInfo.CurrentCulture, GetString("Compilation_DependencyContextIsNotSpecified"), p0, p1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,7 @@
|
||||||
<value>A circular layout reference was detected when rendering '{0}'. The layout page '{1}' has already been rendered.</value>
|
<value>A circular layout reference was detected when rendering '{0}'. The layout page '{1}' has already been rendered.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Compilation_DependencyContextIsNotSpecified" xml:space="preserve">
|
<data name="Compilation_DependencyContextIsNotSpecified" xml:space="preserve">
|
||||||
<value>One or more compilation references are missing. Possible causes include a missing '{0}' property under '{1}' in the application's {2}.</value>
|
<value>One or more compilation references are missing. Possible causes include a missing '{0}' property in the application's '{1}' file.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ViewLocationFormatsIsRequired" xml:space="preserve">
|
<data name="ViewLocationFormatsIsRequired" xml:space="preserve">
|
||||||
<value>'{0}' cannot be empty. These locations are required to locate a view for rendering.</value>
|
<value>'{0}' cannot be empty. These locations are required to locate a view for rendering.</value>
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
||||||
{
|
{
|
||||||
private static readonly string PreserveCompilationContextMessage = HtmlEncoder.Default.Encode(
|
private static readonly string PreserveCompilationContextMessage = HtmlEncoder.Default.Encode(
|
||||||
"One or more compilation references are missing. Possible causes include a missing " +
|
"One or more compilation references are missing. Possible causes include a missing " +
|
||||||
"'preserveCompilationContext' property under 'buildOptions' in the application's project.json.");
|
"'PreserveCompilationContext' property in the application's 'csproj' file.");
|
||||||
public ErrorPageTests(MvcTestFixture<ErrorPageMiddlewareWebSite.Startup> fixture)
|
public ErrorPageTests(MvcTestFixture<ErrorPageMiddlewareWebSite.Startup> fixture)
|
||||||
{
|
{
|
||||||
Client = fixture.Client;
|
Client = fixture.Client;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue