-
Notifications
You must be signed in to change notification settings - Fork 4
Changelog
Andrew Bullock edited this page Jan 22, 2019
·
6 revisions
- Updated core libs to netstandard2.0
- split out Less, Sass and YUI into separate assemblies, you'll need to register your
ICssPreprocessor
andIJavascriptCompressor
of choice into your container yourself
- Removed
HtmlHelper
andUrlHelper
, extension methods should move from these toRazorViewPage
, soHtml.Lol()
andUrl.Lol()
becomethis.Lol()
.
Useful things that were on Html/UrlHelper were/are, and have moved to:
this.Html.ContextItems -> this.PipelineContext.Items
this.Url.RequestUrl -> this.PipelineContext.Request.Url
this.Html.RequestUrl -> this.PipelineContext.Request.Url
this.Html.ViewData -> this.ViewData
this.Html.ViewResult -> this.ViewResult
this.Html.Raw -> this.Raw
this.Html.HtmlEncode -> this.HtmlEncoder.Encode
this.Url.Encode -> System.Net.WebUtility.UrlEncode
- Updated to .NET 4.7.2
- Updated from
System.Web.Razor
toMicrosoft.AspNetCore.Razor
- Updated to Serilog 2.x
- Updated to Newtonsoft.Json 11.x
-
IRequest.ContentType
changed from a string to a parsedContentType
type -
ViewRenderingException
now contains the Razor source and the generated CSharp for easier debugging - Compiled views now have a better/more accurate namespace and type name
Potential breaking changes to be aware of
-
IHtmlString
replaced withIHtmlContent
- Html encoding - especially inside HTML attributes
- Added AreaStaticAssetHandler
- Fixed #1
- Fixed #4
- Fixed #6
- Renamed IPreHandlerExecutionPipelineOperator to IPreResultPipelineOperator
- Renamed IPostHandlerExecutionPipelineOperator to IPostResultPipelineOperator
- Initial import from UNiDAYS codebase
TODO