Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Releases: aspnet/Mvc

1.1.0-preview1

25 Oct 15:51
Compare
Choose a tag to compare
1.1.0-preview1 Pre-release
Pre-release

Features

  • Unable to utilize ModelExpression with [HtmlAttributeName(DictionaryAttributePrefix = "myprefix-")] Dictionary (#5310)
  • Add support for DisplayNameAttribute (#5296)
  • Make AuthorizeFilter (or something like it) constructable (#5253)
  • ProducesResponseTypeAttribute is the only direct concrete implementation of IFilterMetadata (#5251)
  • NonViewComponentAttribute (#5226)
  • Add a cookie based ITempDataProvider (#5212)
  • Remove the need for the anonymous wrapper when a View Component has one parameter and the passed in argument is assignable to that parameter (#5166)
  • Support running middleware pipeline as part of a resource filter (#5161)
  • Stream should be suppressed from model metadata validation (#5154)
  • Support binding text/plain request body to action string args (#5137)
  • asp-format is not respected on input[type=hidden] fields (#5094)
  • replacement for html.GetUnobtrusiveValidationAttributes html.GetClientValidationRules (#5028)
  • Add IMvcCoreBuilder.AddJsonOptions extension method (#4967)
  • BUG: [Display(Prompt="...")] not working on textarea elements. (#4903)
  • ApplicationPart should be a feature collection (#4760)
  • Create an option for RequireHttpsAttribute.Permanent (#4650)
  • Easy access to Enum Display(Name) (#4215)
  • Razor Precompilation (#3917)
  • Support localizing [DisplayAttribute] via IStringLocalizer (#3518)
  • DisplayFor doesn't retrieve enum values (#2430)
  • Allow hiding ValidationSummary content when there are no errors (#2372)
  • Button TagHelper for formaction (#1668)
  • Automatically convert ViewComponents to tag helpers (#1051)

Bugs Fixed

  • ViewComponent tag helpers does not work if nested inside elements targeted by tag helpers (#5421)
  • Don't generate TagHelperDescriptors for ViewComponents containing generic parameters (#5379)
  • PagedCharBuffer, Append(string value), never ending loop (#5347)
  • Editor template assumes all IHtmlContent implementations override ToString() (#5317)
  • Tag helpers lose user's case for class attribute when merging a TagBuilder (#5313)
  • Display Attribute localization does not work on shared resource (#5275)
  • Replacing IViewComponentHelper can unexpectedly break ViewComponent TagHelpers (#5254)
  • Putting a null value in TempData results in ArgumentNullException on subsequent requests (#5243)
  • PagedBufferedTextWriter does not flush synchronous data prior to writing data asynchronously to the underlying stream (#5241)
  • ValidationSummary tag helper should not render the tag if there are not items to render (#5209)
  • Enum values don't change based on changed Culture (#5198)
  • Async resource filters' short circuited result getting executed more than once. (#5175)
  • UrlHelperFactory.GetUrlHelper may throw an exception (#5170)
  • Does ControllerActionInvoker need to use LogLevel.Warning when an authorize filter fails? (#5124)
  • File input no longer posting (#5076)
  • Mark ViewEngine property of ViewComponentResult as Obsolete (#5066)
  • column attribute for <textarea> is incorrect (#5039)
  • DataAnnotationsClientModelValidatorProvider not always using IValidationAttributeAdapterProvider (#5009)
  • Html.AntiForgeryToken() writes nothing on second call (#5005)
  • Misleading MissingMethodException message for incorrect routes (#4991)
  • Html.ValidationSummary(ValidationSummary.All) throws NullReferenceException (#4989)
  • ConvertEmptyStringToNull stopped being honored after upgrading from RC1 (#4988)
  • Change access modifier for InputTagHelper.GetInputType (#4979)
  • ActionResults returned from controller actions rendered as JSON, instead of executed (#4960)
  • Move IActionInvokerFactory out of .Internal (#4929)
  • Error message when preserveCompilationContext is not set is not helpful (#4911)
  • OptimizationLevel specified in the dependency context \ primary assembly's project.json is never used when compiling views (#4902)
  • No parameterless Constructor defined (#4895)
  • BUG: ViewComponents model inconsistency with MVC Views. (#4882)
  • ContentResult forcing chunked encoding (#4876)
  • asp.net core rc2 stringlengh attribute with localization (#4864)
  • MapAreaRoute override existing area constraint (#4847)
  • MapAreaRoute constraint not escaped (#4846)
  • Provide consistent experience of status code in api description when an action returns a DTO vs void (#4838)
  • ViewResult and PartialViewResult classes are inconsistent (#4813)
  • Remove disable buffering feature from our action result classes (#4766)
  • Consider switching to IConfigureOptions instead of ConfigureOptions in OptionsSetup (#4736)
  • TempData within a ViewComponent (#4728)
  • TagBuilder fail with NPE if attribute have null value (#4710)
  • Fail more gracefully when option collections cleared (#4690)
  • Can we prune conversion code in ModelBindingHelper (#4521)
  • Url.RouteUrl XML Documentation is incorrect. (#4507)
  • Potential clarity problems with IUrlHelper (#4245)
  • Link tag helper should include original element's attributes in fallbacks (#4084)

1.1.0

16 Nov 16:26
Compare
Choose a tag to compare

Features

  • Add MVC services builder for CookieTempDataProvider (#5515)
  • Add logging to help diagnose precompiled view scenarios (#5462)
  • ViewComponent => User as ClaimsPrincipal (#4964)
  • Adding AcceptedResult and .Accepted() responses (#4937)
  • FormTagHelper is missing asp-fragment. (#4917)
  • Adding ProducesResponseTypeAttribute(int statusCode) constructor (#4863)
  • Any Plans to Implement VaryByParam? (#2894)

Bugs Fixed

  • CookieTempDataProvider shouldn't set cookie path if PathBase is empty (#5512)
  • CookieTempDataProvider hard codes cookie to be secure-only, thus requiring HTTPS to function (#5511)
  • Treat an invalid charset identically to one a TextInputFormatter does not support (#5501)
  • ViewsFeatureProvider and dynamic assemblies (#5487)
  • JsonPatchDocument.ApplyTo With ModelState Throws Exceptions (#5463)
  • MiddlewareFilter: Using a ConfigureType without a parameterless constructor should print a better exception message (#5431)
  • CookieTempDataProvider chunking broken (#5430)
  • Component.InvokeAsync(string) throws null ref (#5423)
  • Add log messages to input formatters at Debug level (#5367)
  • When replacing Controller.Dispose with an explicit implementation the base Dispose is an action (#5352)
  • Charset wrapped with "" in Content-Type header rises issue in model binding (#5349)
  • Move HttpContext property from OutputFormatterWriteContext to OutputFormatterCanWriteContext (#5272)
  • View component tag helpers don't allow generic parameters (#5216)
  • Support IsIndexer for ViewComponentTagHelpers (#5207)
  • parsing issue on asp.net when request quality factor is specified. (#5150)

1.0.0

27 Jun 14:53
Compare
Choose a tag to compare

Features

  • ObjectResultExecutor should hold the Accept header in higher regard (#4612)
  • Add an Option to set the Razor view location formats (#4550)
  • Consider unifying the list of assemblies included in the razor compilation with the of assembly parts of the application. (#4498)
  • Make JsonOutputFormatter use camel case by default (#4283)

Bugs Fixed

  • Fix Travis failure for test Microsoft.AspNetCore.Mvc.FunctionalTests.TagHelpersTest.ReregisteringAntiforgeryTokenInsideFormTagHelper_DoesNotAddDuplicateAntiforgeryTokenFields (#4824)
  • How to override the default (200) status code with ProducesResponseType (#4823)
  • Move IAuthorizationPolicy.CombineAsync calls into AuthorizeFilter (#4757)
  • Modify ICompilationLibrariesProvider to return a sequence of reference path strings (#4738)
  • Where did IControllerTypeProvider go in RC2? (#4730)
  • Design problem: MvcRazorHost.Dispose (#4709)
  • Add ExceptionHandled to ExceptionContext (#4700)
  • Rename environment variable used to enable polling (#4696)
  • HttpPost with entity as parameter stuck in an infinite loop? (rc2-final) (#4666)
  • RC2 Mvc not discovering controller in netcoreapp (#4655)
  • ModelBinder attribute attached to a class has no effect (broken in rc2-final) (#4652)
  • Some public Attributes lack doc comments (#4641)
  • Critical bug(?). Problem with Date from Model to View. Not using ISO international format. (#4633)
  • Move ModelBindingHelper to .Internal (#4615)
  • Update IModelBinder documentation (#4614)
  • CORS filter should throw when policy is not found (#4606)
  • Fix FormTagHelper to make redudant Antiforgery token registration a no-op (#4595)
  • RequireHttps - should it be redirect 302 by default? (#4561)
  • Depend on HtmlString from Microsoft.AspNetCore.Html. (#4558)
  • Assemblies with a transitive dependency to MVC are not included as part of the list of discovered assemblies (#4555)
  • Do we need Name and DisplayName on ActionDescriptor (#4506)
  • Possible double-execution of filter providers (#4504)
  • Using taghelpers in razor views using a model type which is loaded runtime (#4497)
  • Update the namespace for Razor generated code to AspNetCore (#4476)
  • Form Tag Helper Breaks with atypical html comments (#4465)
  • Make SerializerSetings properties get-only and protected (#4409)
  • Remove DefaultAssemblyPartDiscoveryProvider.GetAssemblyName (#4366)
  • Cleanup assembly discovery in ApplicationParts (#4353)
  • Remove extra constructors in JsonInputFormatter and JsonPatchInputFormatter (#4339)
  • Simplify assembly load on CoreCLR (#4328)
  • Create a separate handler for each attribute route (#4293)
  • Make IActionInvoker signature compatible with middleware (#4291)
  • AuthorizeFilter prevents unauthenticated requests to be handled by IAuthorizationService (#4287)
  • Review IActionResult classes and add facades as necessary (#4207)
  • Improve handling of custom ValidationAttributes and their ValidationResults (#3595)

1.0.1

13 Sep 17:11
Compare
Choose a tag to compare

Bugs Fixed

  • MVC doesn't work on FIPS-compliant machines (#5103)
  • HTTP Verbs mapping error GET and DELETE (#5038)
  • ViewComponentResult does not await the executor.ExecuteAsync method. (#4998)

1.0.0-rc2

16 May 17:19
Compare
Choose a tag to compare
1.0.0-rc2 Pre-release
Pre-release

Features

  • Consider adding SignInResult/SignOutResult and SignIn/SignOut (#4258)
  • HttpOptionsAttribute (#4152)
  • Add Controller helper methods for StatusCode(int)/StatusCode(int,object) (#4149)
  • DefaultHtmlGenerator should attempt to properly format values for <input type="date"> and <input type="time"> (#4102)
  • StatusCode Metadata (#4101)
  • Don't expose ServiceProvider on ControllerBase (#4097)
  • RequireHttpsAttribute needs some devmode love (#4093)
  • System.Buffers + Json.NET everywhere (#4092)
  • MVC Assets from DI + Multiproject MVC Design Notes (#4089)
  • No equivalent of AddControllersAsServices() for VC's and TagHelpers (#4087)
  • Controller helper inconsistency: HttpNotFound(), Ok() (#4085)
  • Rename ICanHasViewContext to IViewContextAware (#4073)
  • SelectTagHelpers: asp-items shouldn't require/depend on asp-for. (#4047)
  • Add overload to AddControllerAsServices that uses the default controller discovery logic (#4014)
  • Add caching for Validators (#3972)
  • CacheTagHelper should not depend on IMemoryCache (#3867)
  • Add support for [Consumes] to ApiDescription (#3818)
  • Make RazorViewEngineOptions.FileProvider a list instead of a single item (#3806)
  • Make IViewComponentActivator abstraction responsible for creation of view components (#3752)
  • Allow IValidatableObject implementors and ValidationAttribute derivatives to access the IServiceProvider (#3746)
  • Revisit Controller discovery conventions (#3732)
  • Remove the IControllerFactory.ReleaseController (#3727)
  • Render placeholder tag with Display data annotation (#3723)
  • ViewLocalizer should look for resource name with the application name prefix when LocalizationOptions.ResourcesPath is not set (#3718)
  • Improve usability of HtmlLocalizer (#3716)
  • Html Helper missing RenderPartial (#3705)
  • ASP.NET MVC returns Content-Type text/plain even if application/xml was requested in case of return type is string (#3692)
  • Add extension methods for easily mapping area routes (#3636)
  • Compilation big rocks moving to dotnet CLI (#3633)
  • Limit [FromServices] to apply only to parameters (#3507)
  • Consider NoContent action result method on Controller (#3334)
  • Support relative Layout values and view paths (#3307)
  • Allow to define section or/and body without the need to render it (#3293)
  • Make ActionDescriptor accessible in IModelBinder.BindModelAsync (#3257)
  • Add a new ForbiddenResult (#3242)
  • Add more diagnostic logging in MVC (#3193)
  • Consider making IExcludeTypeValidationFilter a ModelMetadata setting (#3168)
  • Improve controller authoring experience for AddMvcCore (#3094)
  • Need support for specifying custom error message for client validation (#2969)
  • [Localization]: Fix ViewLocalizer so it works for layouts too (#2767)
  • Consider flowing IServiceProvider through the ValidationContext created in DataAnnotationsModelValidatorProvider (#1682)
  • Loosen ViewComponent invoke restrictions (#612)

Bugs Fixed

  • Filter caching is too aggressive (#4616)
  • RequireHttps should be redirect 302 (not 301) (#4578)
  • Logging ArgumentOutOfRangeException (#4575)
  • Stop registering disposable objects in our controller helper methods (#4509)
  • Model Binding goes into an infinite loop when the view model has a Func<> (#4505)
  • MVC not honoring attribute route default values for URL matching (#4447)
  • DefaultAssemblyProvider.IsCandidateLibrary should not look at types in Mvc assemblies (#4363)
  • @Html.Raw(null) stops rendering the view (#4350)
  • Redundant DependencyContext instance (#4335)
  • Fix Microsoft.AspNetCore.Mvc.Dnx to avoid referencing System.IO/Reflection/Runtime (#4334)
  • Modify RoslynCompilationService to generate portable pdbs (#4330)
  • IFormFile model binder suppressing validation for any non-null result. (#4329)
  • CandidateAssemblies should always include the entry assembly? (#4318)
  • UrlResolutionTagHelper doesn't work with TagHelpers that run before and supress output. (#4317)
  • Move AuthorizeFilter and CORS filters into a user friendly namespace (#4310)
  • Remove properties from ResourceExecutingContext (#4290)
  • JsonInputFormatter fails to use custom SerializerSettings (#4270)
  • Attribute route wildcard does not work (#4256)
  • CacheKey equatable object in CacheTagHelper (#4246)
  • Include Assembly-Qualified Type Name in ActionDescriptor.DisplayName (#4237)
  • Remove AuthorizationFilterAttribute (#4233)
  • Move IUrlHelper to an abstractions assembly (#4214)
  • RazorCompilationService should throw a meaningful error when a user produces an application without preserveCompilationContext (#4202)
  • Stop burying activation errors in CollectionModelBinder (#4193)
  • Consider storing a Task<> in cache tag (#4147)
  • DependencyContextAssemblyProvider assumes the entry assembly has a .deps.json file (#4136)
  • Changes to property ModelMetadata provided by a ModelMetadataDetailsProvider are lost for Nullable in Display/Edit templates when DataType is used to change the template (#4116)
  • RequireHttpsAttribute doesn't change the port (#4112)
  • AddControllersAsServices should add controller types to the existing ControllerTypeProvider instead of replacing (#4086)
  • <link> and <script> tag helpers do not encode correctly (#4083)
  • Should we throw in our formatters if the list of SupportedMediaTypes is empty? (#4050)
  • Figure out ControllerModel.AttributeRoutes (#4043)
  • Remove Html.JavaScriptEncoder property (#4033)
  • Add a TagHelper for areas in links (#4013)
  • Controllers do not pass arguments to ViewViewComponentResults. (#4004)
  • Remove JsonViewComponentResult (#3992)
  • AuthorizationContext conflicts with type in Microsoft.AspNet.Authorization (#3979)
  • ModelExpression equivalent of m => m: Better support asp-for="@Model" (#3978)
  • Consider InputFormatter behavior when we can't read the charset (#3961)
  • ViewComponentDescriptor.Type should be a TypeInfo instance instead of a Type instance (#3952)
  • Add dependency on System.Runtime.Serialization.Primitives to make up for JSON.NET not including it (#3946)
  • Suggestion: error message indicates layout instead of current view. (#3930)
  • Improve MVC error when MVC services aren't registered (#3907)
  • Null passed as arguments to controller m...
Read more

6.0.0-rc1

18 Nov 15:28
Compare
Choose a tag to compare
6.0.0-rc1 Pre-release
Pre-release

Features

  • Razor compilation uses a custom load context on CoreCLR and regular Assembly.Load on .NET Framework (#3365)
  • Add LocalRedirectResult class and helper method (#3346)
  • Diagnostics Source events for Filters (#3279)
  • Diagnostics Source events for View Components (#3274)
  • Move AllowAnonymous to Microsoft.AspNet.Authorization (#3246)
  • Rename AppendEncoded() to AppendHtml() and SetContentEncoded() to SetHtmlContent() (#3225)
  • Telemetry Source Before/After events feedback/thoughts (#3204)
  • TempData support for Enum types (#3141)
  • Make removing a formatter a 1-liner (#2945)
  • Consider using DisplayAttribute.GroupName to determine SelectListItem's Group (#2292)

Bugs Fixed

  • Add compilation services to container in MvcRazorMvcCoreBuilderExtensions (#3383)
  • TagHelper and non-TagHelper select tags in a form don't work well together. (#3347)
  • Rename ViewComponent.Context to HttpContext (#3332)
  • Rename ModelState (the type) -> ModelStateEntry (#3326)
  • PhysicalFileResult should not throw FileNotFoundExceptions for non-rooted paths (#3295)
  • Modify ViewStartUtility to generate always view paths with forward slashes (#3294)
  • ArgumentNullException when returning empty ViewResult (#3284)
  • Exception while encoding/writing view using pooled buffer (#3252)
  • Routes values are being added in duplicate (#3250)
  • Using @inherits and @model together gives intellisense errors (#3243)
  • Rename PhysicalFileProviderResult to PhysicalFileResult? (#3236)
  • Unable to read big json file from Request.Body (#3235)
  • ModelState error for FormatException should show DisplayName of the problematic property if available (#3227)
  • Can not pass nullable to ViewComponent Invoke method (#3211)
  • Fix content negotiation content-type check for InputFormatter (#3138)
  • TempData fails silently without sessions middleware (#3068)
  • ValidationSummary does not showcase all errors. (#3043)
  • Change order of generated input elements in asp-for checkbox helper (#2994)

6.0.0-beta8

27 Jun 15:04
Compare
Choose a tag to compare
6.0.0-beta8 Pre-release
Pre-release

Features

  • ModelState Generic Remove (#3164)
  • Create a common abstraction for Application/Action/Controller -Models (#3158)
  • Make RazorViewEngine.GetNormalizedRouteValue easier to use outside of Mvc (#3108)
  • Add IMvcBuilder extension method for 'just options' (#3102)
  • MVC API review - clean up namespaces (#3075)
  • Rename ModelMetadata.IsCollectionType; perhaps provide real IsCollectionType as well?? (#3022)
  • ImageTagHelper doesn't work well with other TagHelpers. (#2902)
  • [Localization]: Add localizers for validation attributes (#2766)
  • Expand InputFormatterContext or IInputFormatter.ReadAsync() to make errors explicit (#2722)
  • EventNotification support for MVC (#2651)
  • Modify TagHelperOutput.CopyHtmlAttribute to maintain attribute order. (#2639)
  • Allow validators to customize the behavior when a 'required' property has no value in the request (#2303)

Bugs Fixed

  • Rename Controller.Context back to Controller.HttpContext (#3165)
  • Specifying @model in a page ignores value specified by @inherit from a _ViewImport (#3144)
  • ViewComponents should respect the global @inherits declaration in _ViewImports (#3121)
  • Circular layout reference leads to OutOfMemoryException (#3100)
  • Switch InnerAttributeRoute to log at Debug level, or make it configurable (#2996)
  • Collections with different type parameters than expected interface do not bind correctly (#2993)
  • Unable to disable Url Resolution logic from _ViewImports.cshtml. (#2989)
  • DefaultModelMetadata.PropertyGetter is not null-safe (#2986)
  • asp-append-version not working on Linux (#2979)
  • Response.ContentType doesn't work in MVC controller (#2947)
  • Validation incorrect for dynamic collections when using TryUpdateModelAsync() (#2941)
  • Default for catchall segment doesn't work (#2931)
  • Issue with arrays in expression when using DotNetCompilerPlatform (#2890)
  • Logs from routing (#2860)
  • Validation ignores ValidationNode.Model when the node represents a model property (#2784)
  • RazorViewEngine does not use the right view expander when invalid culture is passed in mono. (#2759)
  • Should FilePathResult support *nix file systems? (#2727)
  • Changes to ModelMetadata provided by a ModelMetadataDetailsProvider are sometimes lost if the model property is a Nullable (#2539)
  • Form Collection Model Binder should not fall back to copying the form values from FormCollection (#2527)
  • Precompilation + TagHelpers in different project do not recompile changed TagHelpers. (#2305)
  • Loading assembly specified in addTagHelper fails when project has razor precompile module (#2298)
  • _ViewImport.cshtml changes do not immediately show in affected Razor files (#2256)

6.0.0-beta7

02 Sep 17:18
Compare
Choose a tag to compare
6.0.0-beta7 Pre-release
Pre-release

Features

  • Add IMvcBuilder overloads for localization and XML formatters (#2874)
  • Missing Ok() in Controller (#2825)
  • Need support for client side validation of float and double types (#2817)
  • Add URL resolving TagHelper to replace Razor ~/ functionality. (#2807)
  • Change Razor attribute behavior to not special case boolean values in middle of complex attribute values. (#2769)
  • Should be able to return ViewComponents from controller actions (aka ViewComponent ActionResult helper) (#2338)
  • Some Dictionaries do not get model bound (#1418)
  • Make HTML rendering deferred (IHtmlContent) (#830)

Bugs Fixed

  • srcset missing from ~ tag helper. (#2964)
  • CompositeValueProvider does not match IBindingSourceValueProvider contract (#2907)
  • ImageTagHelper showcases view-context as available HTML attribute. (#2901)
  • Inconsistency with Url.Content("~") (#2896)
  • asp-append-version ignored when href/src URL contains a fragment but no query string (#2862)
  • Unexpected Url.Action output (#2859)
  • ModelMetadata.EnumDisplayNamesAndValues explicitly skips Display(Name = string.Empty)
  • Link tag helper does not expand comma-separated list (#2841)
  • TryUpdateModelAsync Out of Memory error (#2799)
  • Concrete Collection types don't work with GenericModelBinder (#2793)
  • Discuss adding server side validation to value type model properties by default. (#2776)
  • InvalidOperationException: Incorrect Content-Type: application/json (#2749)
  • ViewHierarchyUtility.GetHierarchicalPath does not handle root paths *nix file systems. (#2745)
  • Fix registration of MVC services (#2648)

6.0.0-beta6

28 Jul 19:50
Compare
Choose a tag to compare
6.0.0-beta6 Pre-release
Pre-release

Features

  • [Localization]: Enable localization support in MVC (#2824)
  • Revisit IJsonOutputFormatter (#2715)
  • Microsoft.AspNet.Mvc.HttpHeadAttribute missing? (#2700)
  • Change the tag helpers FileVersion property to something clearer (#2540)
  • JsonInputFormatter and JsonOutputFormatter consistancy (#2538)
  • Compatibility with MVC 5 auth code (#2409)
  • Test + improve performance of creating serializers in formatters (#1144)
  • Consider making Anti Forgery internal classes public. (#1137)

Bugs Fixed

  • Repeatedly loading a view causes out of memeory exception (#2790)
  • Label Inside EditorTemplate Disappears During Validation (#2778)
  • OutputFormatter provides no way to disable text encoding (#2739)
  • When submitting empty value types, ModelState has a NullRef exception (#2720)
  • Append file version does not work when href/src contains a url with query string (#2719)
  • In chrome generating type=number without step attribute does not allow decimal values. (#2712)
  • Rename LanguageViewLocationExpanderOption to LanguageViewLocationExpanderFormat (#2704)
  • RadioButton(string.Empty) ignores Model value (#2662)
  • ModelMetadataType chain followed further in MVC 6 than MetadataType chain in MVC 5 (#2610)
  • Integers from JSON don't bind to enums (#2609)
  • BindAttribute is easy to get wrong, leading to a model with no bindable properties (#2564)
  • Protect against null IContractResolver on JsonPatchDocumentOfT (#2560)
  • Remove use of RequiredValidator from Mutable Model Binder (#2526)
  • Dictionary ModelBinding with an empty prefix has unvalidated keys (#2470)
  • byte[] model binder should prevent falling back to other binders when the type matches. (#2456)
  • Model State should have values for greedy model binders as well. (#2445)
  • Is @Html.Raw(...) working? ... or am I just a nOOb? (#2392)
  • Type excluded from validation triggers validation for Required members (#2314)
  • Activate activates non-public Controller properties, but [From*] do not (#2278)
  • Some Unit Test for Razor Templating are failing, when global .gitgnore config has core.autocrlf = false (#1514)
  • Most string-based HTML helpers use unprefixed ViewDataDictionary entries if called from templates (#1487)
  • Some string-based HTML helpers can't get Model values if called from templates (#1485)

6.0.0-beta5

30 Jun 21:07
Compare
Choose a tag to compare
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 for IFormFile 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 its attributes 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 a value 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 unknown attributeName (#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)