-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
10091f1
to
8d636bf
Compare
Bump, I'd like to get this in soon. |
/// <summary> | ||
/// Application model component for RazorPages. | ||
/// </summary> | ||
public class PageModel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filename here is wrong, PageModels.cs
// Act and Assert | ||
var ex = Assert.Throws<InvalidOperationException>(() => provider.OnProvidersExecuting(context)); | ||
Assert.Equal( | ||
"The @page directive for the Razor page at /Test.cshtml cannot override the relative path prefix.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a really jargon-ey error. I'd suggest something like
The route for a page cannot start with
/
or~/
. Pages do not support overriding the file path of the page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
"warningsAsErrors": true, | ||
"compile": { | ||
"include": "../Microsoft.AspNetCore.Mvc.TestCommon/TestFile*.cs" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I had some odd issues referencing TestCommon before we had rebased. I'll see if it's fixed now.
Looks good to me, but get @rynowak sign-off |
I did 😆 |
Fixes #5353