This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
6.0.0-beta5
Pre-release
Pre-release
Features
- Remove dependency of @Inject on Activate
- Restrict Anchor and Form TagHelpers to apply only to form and anchor elements with server side attributes (#2581)
- Remove XML input formatter behavior for RequiredAttribute (#2528)
- Simplify writing JSON in a Razor view (#2514)
- Add a Controller.Json(object, JsonSerializerSettings) overload (#2506)
- Rename _GlobalImport.cshtml to _ViewImports.cshtml (#2489)
- Should we standardize on the use MediaTypeHeaderValue in ActionResults? (#2411)
- Need a way to specify ContentType in ViewResult \ PartialViewResult (#2408)
- Fully Expand Models in ApiExplorer (#2378)
- Automatically chose
type="file"
when generating<input/>
elements forIFormFile
expressions (#2337) - Can InputFormatterContext be replaced by ModelBindingContext (#2330)
- Consider decoupling Client Validation from
IModelValidator
and the rest of model binding (#2304) - Remove dependency on Microsoft.AspNet.DataProtection in Mvc.Core (#2287)
- Remove dependency on Hosting (#2286)
- [JsonPatch]: Replace exceptions with ModelState errors (#2270)
- Simplify MvcOptions (#2269)
- Remove facades for accessing Options and pass options to the invoker (#2266)
- Make output formatters available to ResourceExecutingContext (#2264)
- Add default editor templates for all numeric types, including short, ushort, and double, etc. (#2261)
- Create an ImageTagHelper that supports globbed src paths and cache-busting file version URL hash (#2249)
- Consider adding a UseMvcWithDefaultRoute extension on BuilderExtensions that adds default routes to the route collection (#1885)
- logging: Tag Helpers: MVC Tag Helpers should log warnings (#1686)
- Provide a property on Form tag helper which accepts route name (#1489)
- Attribute Routing: Resolve Name + Token Replacement (#819)
- Support app-wide defaults for more MVC settings, especially for HTML helpers (#448)
- Improve Mock support for Viewcontexts (#268)
Bugs Fixed
- Fix registration of MVC services (#2648)
- Whitespace at the start of attribute value with dynamic content is ignored (#2547)
- RedirectToRouteResult doesn't use RouteName property when calculating destination URL (#2545)
- Use custom stream writer for Xml output formatters (#2541)
- AuthorizeFilter sets null Identity (#2534)
- MVC is broken on CoreCLR (#2507)
TagHelperOutputExtensions.RemoveRange()
does not handle itsattributes
parameter safely (#2491)- For successfully bound models there should be no entry with empty key in the model state dictionary. (#2466)
- Models not bound from request (like services) should not show up in Modelstate. (#2464)
- Model state has spurious entries when binding to a collection where element type has no validators. (#2446)
- Remove DefaultValue support from model binding and do it only in the invoker for action parameters (#2414)
- Add back the implicit [Required] for value types (#2407)
- Value type controller properties with [From*] fail with NullRef exception when no value is available (#2357)
- Support generating
<input/>
elements without avalue
attribute (#2336) - ModelBinderAttribute should not throw from BinderType property setter (#2326)
- Give accurate location of syntax error in _GlobalImport.cshtml (#2321)
- [Perf] Change MutableObjectModelBinder.CanBindType to use ModelMetadata.IsComplex (#2307)
- Invalid dynamic collection binding and validation (#2294)
- Storing objects (non-string things) in TempDataDictionary does not round trip correctly (#2276)
- MutableObjectModelBinder should avoid using PropertyInfo.SetValue to set property values (#2259)
- Unrendered sections does not throw when redefined and rendered in nested layout. (#2252)
- Attribute routing throws ambiguous exception for base controller (#2248)
- Validation error is not thrown when a complex type property with required and from body attributes has null value (#2219)
- RenderBody must be called from a Layout Page" provides no file information (#1919)
- MutableObjectModelBinder.GetPropertyValidationInfo should not reflect over
ModelType.Properties
(#1712) - Better error when
TagHelperOutputExtensions.CopyHtmlAttribute()
called with unknownattributeName
(#1586) - Action argument of IList will be bound as Null instead of an empty List (#1579)
- DefaultControllerFactory should throw if the controller is a value type (#662)