Pranav K
62fdf3a472
Fix issues with RazorCompileOnBuild=true being default
2018-03-09 14:39:18 -08:00
Ryan Brandenburg
9b4b373014
Remove IErrorDescriptionFactory
2018-03-07 13:09:13 -08:00
Pranav K
5af246b554
Ignore constructors when discovering actions
2018-03-06 17:42:53 -08:00
Jass Bagga
f3ffdada95
Remove problem+json Content-Type ( #7440 )
...
Addresses #7344
2018-03-06 13:46:40 -08:00
Pranav K
3517ecda2f
Ensure DebugType = embedded and DebugType = none work
...
Fixes #7406
2018-03-05 09:21:13 -08:00
Doug Bunting
f061d328d9
Do not use `FormattedModelValue` in password editor template
...
- #7418
- add quirk switch to reverse this if necessary
2018-03-05 08:33:16 -08:00
Jass Bagga
8d1c85ab74
Add overload for AddModelError without ModelMetadata ( #7407 )
...
Addresses #6102
2018-03-02 11:03:46 -08:00
Doug Bunting
daf341df35
Add more tests of #7033 scenarios
2018-02-21 15:11:52 -08:00
Charlie Daly
4f3e044928
HtmlHelper.DisplayTextFor should use DisplayAttribute of enums
...
- #7033
2018-02-21 15:11:51 -08:00
N. Taylor Mullen
43106f688a
Re-enable "Move to RazorProjectEngine."
...
- This was initially reverted due to insufficient packages for local builds.
This reverts commit 5ac6fa77f8 .
2018-02-16 16:13:54 -08:00
Ryan Nowak
9df6ba8c4f
Add MVC Razor msbuild files
2018-02-16 07:54:37 -08:00
N. Taylor Mullen
5ac6fa77f8
Revert "Move to RazorProjectEngine."
...
- Waiting for packages to be available from Razor.
This reverts commit 608330dc86 .
2018-02-15 17:01:07 -08:00
N. Taylor Mullen
608330dc86
Move to RazorProjectEngine.
...
- Updated our consumption of `RazorEngine` and `RazorTemplateEngine` to use `RazorProjectEngine` and its features.
- Updated service registrations to maintain existing services but to also register new ones.
- When moving `RazorViewEngine` to use `RazorProjectFileSystem` I had to add an unused constructor item in order to disambiguate the constructors.
- Updated tests to use `RazorProjectEngine` and `RazorProjectFileSystem`.
#7377
2018-02-15 16:34:26 -08:00
Pranav K
06e40252a0
Add support for top level validation to Razor Pages
2018-02-14 14:39:25 -08:00
Artak Mkrtchyan
e308c0fe5f
Merge pull request #7290 from FabienLavocat/dev
...
Add constructor for the SelectListItem class
2018-02-06 16:29:57 -08:00
Jass Bagga
d27e66a8fc
Initialize ViewContext for TagHelperComponentTagHelper ( #7326 )
...
Addresses #7017
2018-02-06 16:07:38 -08:00
Fabien Lavocat
c062d637fe
Add new contructor in SelectListItem.cs
2018-02-06 11:01:24 -08:00
Artak Mkrtchyan
7a13eb8b21
Addressed review feedback
2018-02-01 14:44:06 -08:00
Artak Mkrtchyan
dea3eb7856
Not instantiating the RequestHeaders and not relying on TypedHeaders to parse AcceptCharset
2018-01-31 17:20:29 -08:00
Kiran Challa
0215740183
[ Fixes #5859 ] Consider allowing binding header values to types other than string and string collections
2018-01-30 11:47:16 -08:00
Pranav K
dbff416be6
Add support for running conventions on controller properties, Razor Page parameter and properties
...
Fixes #6935
2018-01-29 11:43:25 -08:00
Javier Calvarro Nelson
7127bb5dbb
Add DeclaredModelType to Razor pages
...
* This allows razor pages to override their model type with a model that
extends the declared model type through the page application model.
2018-01-25 16:00:54 -08:00
Pranav K
b30020a655
PartialTagHelper should not fallback to the current page's model if asp-for expression exists
...
Fixes #7295
2018-01-25 11:06:40 -08:00
Pranav K
a74ef9dfd9
Error message for [ApiController] without attribute route needs to be better
...
Fixes #7277
2018-01-25 10:25:52 -08:00
Artak Mkrtchyan
4f3e0966d9
Enabling antiforgery tests, which were disabled because of the #7040 issue
2018-01-23 19:16:24 -08:00
Javier Calvarro Nelson
17a407bba2
[ Fixes #7271 ] Support covariant casting of ViewDataDictionary<T>
...
On HtmlHelper<T> we now support contextualizing an instance of
HtmlHelper<TBase> with a ViewDataDictionary<TDerived> in
ViewContext.ViewData.
This can happen in some situations when the model for a RazorPage has
been changed using a page application model convention.
In these cases we just build a new ViewDataDictionary<TBase> and pass in
the TDerived model as an instance.
2018-01-23 17:31:03 -08:00
Ryan Brandenburg
ea14942525
React to Options change
2018-01-23 08:07:45 -08:00
Pranav K
ebdb3c650a
Smooth rough ApiBehavior edges
...
Fixes #7262
2018-01-22 09:53:21 -08:00
Ajay Bhargav Baaskaran
2c6ba372c1
Some cleanup around FileProviderRazorProject with tests
2018-01-21 21:38:25 -08:00
Javier Calvarro Nelson
1d6b02c1f5
[ Fixes #7239 ] Add support for loading additional parts.
...
* Support loading parts through an assembly metadata attribute with a
key of Microsoft.AspNetCore.Mvc.AdditionalReference and a value that
describes the additional assembly to add to the list of parts and
whether or not it should be added by default. The additional reference
can only contain the file name of the assembly and it must be located
side by side with the assembly where the additional reference is
defined.
* Add an AdditionalAssemblyPart application parts to represent parts
that are not part of the original application per se, like precompiled
views.
* Update the ViewsFeatureProvider to search for razor views in the
application part directly instead of trying to load the precompiled
views assembly part.
2018-01-21 08:02:20 -08:00
Pranav K
c6c77dd4d3
Introduce Mvc analyzers
2018-01-19 16:02:50 -08:00
Ryan Nowak
f2d6cfa821
Update checksums
...
These are generated based on an incorrect version of the file. This code
is now testing the right thing.
2018-01-18 10:54:15 -08:00
Pranav K
f0ae0ce528
Add PageConvention overloads for areas
...
Fixes #7246
2018-01-18 08:21:21 -08:00
John Luo
6751e3b7ca
Discover assembly parts for Microsoft.AspnetCore.All
2018-01-17 13:20:09 -08:00
Pranav K
ab3134e373
Support conflict resolution when multiple precompiled views have the same path
...
Fixes #7223
2018-01-16 08:04:39 -08:00
Pranav K
946b64143e
Allow override routes on Pages
...
Fixes #6605
2018-01-12 15:57:13 -08:00
Pranav K
094b61dfc6
Refactor PageRouteModel generation
2018-01-12 15:44:23 -08:00
Jass Bagga
66c13ae5e5
Use weak comparison for If-None-Match header ( #7237 )
2018-01-12 12:40:51 -08:00
Ryan Nowak
d342ebf8c8
Use compatibility switch for auth filters
2018-01-11 17:42:32 -08:00
Kiran Challa
c922b0b90d
Improving logging - model binding
...
Related to issue #6498 : When enabling "Trace" logging for MVC loggers, I should be buried in log messages
2018-01-11 14:51:53 -08:00
Ajay Bhargav Baaskaran
b20e35e76a
Set RelativePhysicalPath in FileProviderRazorProjectItem
2018-01-11 13:20:17 -08:00
Jass Bagga
9438a453b0
Do not serve response body for HEAD requests ( #7230 )
...
Addresses #7208
2018-01-11 12:19:43 -08:00
Kiran Challa
2aae8774f6
[Fixes 7139] Add format filter mapping for xml formatters
2018-01-10 15:18:37 -08:00
Kiran Challa
00c6b53b06
[ Fixes #7115 ] Update property type check in SaveTempDataPropertyFilterBase to match TempDataSerializer requirements
2018-01-10 15:08:01 -08:00
Pranav K
b196708a3e
Merge tag '2.0.2' into dev
2018-01-10 10:02:54 -08:00
Ryan Nowak
95d743e2c6
Renable compatibility switch functional tests
2018-01-09 22:24:19 -08:00
Doug Bunting
58026eacbd
Correct a few model binding typos
...
- worst cases were incorrect references in doc comments
- also a few doc comments ended with `..` or `/`
- otherwise, address nits and take VS suggestions
2018-01-09 12:49:40 -08:00
Ryan Nowak
913cefdea2
Fix a bug blocking recompilation
2018-01-09 12:25:11 -08:00
Nick Mayne
6bd421d197
Fixing BackSlashExpander class name
2018-01-09 11:30:27 -08:00
Doug Bunting
afc75a8296
Move `IHttpRequestStreamReaderFactory` from `.Internal` to `.Infrastructure`
...
- #7044
- move `IHttpResponseStreamWriterFactory` too
- add breaking change records e.g. for changes to `BodyModelBinder[Provider]` constructors
- these changes relate to previously-"internal" constructors and one property
nits: take VS suggestions for changed files
2018-01-09 10:51:09 -08:00