N. Taylor Mullen
cfd58f1747
React to aspnet/Razor#705
...
- Updated `ScriptTagHelper` and `LinkTagHelper` to maintain their quotes on generated script tags.
- Removed `TagHelperOutputExtensions`. It's no longer needed.
- We no longer string replace quotes directly. We rely on encoding and the initial representation of an attribute to ensure quotes don't break generated attributes.
- Updated tests.
2016-05-27 12:00:01 -07:00
John Luo
5eed7b9b88
React to updated CoreCLR packages
...
https://github.com/aspnet/Coherence/issues/97
2016-05-26 18:31:05 -07:00
Pranav K
bb226aef6b
Update Mvc.Core and dependencies to netstandard1.6
2016-05-26 16:52:04 -07:00
Michiel Post
b6794ab1b7
Fixed null reference on ModelStateDictionary.ChildNodes when calling Clear
2016-05-26 16:12:49 -07:00
Pranav K
abf9319e6c
Modify test to look for assembly names rather than absolute paths
...
This workaround an issue \ bug with the results returned by DependencyContext where
the path uses a mix of forward and back slashes which causes comparison with Assembly.Location that only
uses forward slashes to fail.
2016-05-26 14:49:37 -07:00
Shahriar Gholami
42dd4499e0
Fixed a bug in TagBuilder when attribute value is null
...
#4710
2016-05-26 11:04:32 -07:00
Pranav K
5d72a7f747
Modify ICompilationLibrariesProvider to return a sequence of reference path
...
Fixes #4738
2016-05-25 16:20:23 -07:00
Pranav K
9acd0f578c
Remove IDisposable contract from IMvcRazorHost
...
Fixes #4709
2016-05-25 14:43:12 -07:00
Ajay Bhargav Baaskaran
3d0f436a06
[ Fixes #4294 ] TypeActivate MvcRouteHandler
2016-05-25 12:57:16 -07:00
mnltejaswini
b96851ec20
[Perf] Avoid ViewBuffers for writing bound TagHelper attribute values. Fixes aspnet/Razor#717
2016-05-25 12:14:26 -07:00
Hao Kung
f54a964815
AuthZFilter should call into Service more
2016-05-24 14:42:54 -07:00
Pranav K
15f113ddb1
Remove IControllerTypeProvider
2016-05-24 14:36:02 -07:00
Pranav K
90f0e29923
Inject the IRazorViewEngine directory instead of using GetRequiredService
2016-05-24 10:40:33 -07:00
Pranav K
ab76f743f4
Use dependency context from all application parts when compiling views
...
Fixes #4498
2016-05-24 10:28:51 -07:00
Ryan Nowak
27565c4e8d
Fix broken query string binding test
...
This test was relying on the parsing behavior of QueryString, that it
would omit the key and value when the value is empty. The expectations
weren't consistent with other tests for 'empty' values.
2016-05-24 10:17:30 -07:00
Pranav K
69e029fc79
Update the namespace for Razor generated code to AspNetCore
...
Fixes #4476
2016-05-23 16:25:59 -07:00
Pranav K
8ab66ab5ce
Fix resource generation to work with dotnet test
2016-05-23 15:55:14 -07:00
John Luo
ff534da70f
React to adding IsAvailable to ISession
2016-05-23 15:17:30 -07:00
Ryan Nowak
d92b3ba2c6
Make ModelBindingContext.Result non-nullable
...
This change simplifies a bunch of code and fits more in line with the
current design of model binding.
Now, a model binder only has to do anything if it was successful.
'return' is enough to indicate failure.
2016-05-23 14:18:34 -07:00
Ryan Nowak
88c9ae6588
Remove Key from ModelBindingResult
2016-05-23 13:17:19 -07:00
Ryan Nowak
ef29749e72
Remove usage of `async void` in unit tests
...
Yes I know xUnit supports it, but it's non-standard and it shouldn't show
up anywhere in our codebase.
2016-05-20 15:07:48 -07:00
jacalvar
230a13d0e1
[ Fixes #4633 ] Datetime? and DateTimeOffset? values on InputTagHelper are not rendered correctly.
2016-05-20 11:29:29 -07:00
jacalvar
ee2a591d2c
[ Fixes #4655 ] Make comparisons in DefaultAssemblyPartDiscoveryProvider case insensitive
2016-05-20 11:22:55 -07:00
jacalvar
a490cf13a6
[ Fixes #4555 ] Assemblies with a transitive dependency to MVC are not included as part of the list of discovered assemblies
2016-05-20 11:18:34 -07:00
jacalvar
b1054a28c7
[ Fixes #4353 ] Cleanup application part discovery
2016-05-20 10:56:03 -07:00
Kiran Challa
93be3dee6e
Fix FormTagHelper to set flag indicating generation of AntiforgeryToken
...
[Fixes #4595 ] Better error message with extraneous @Html.AntiforgeryToken
2016-05-20 04:29:01 -07:00
Kiran Challa
20a2e748ec
Added ValueProviderFactories to ResourceFilterExecutingContext
...
This enables removing value provider factories from model binding(which is needed in some scenarios like large file uploads)
2016-05-20 04:15:07 -07:00
mnltejaswini
df4eb283b2
[Perf] UrlHelper shares a single RouteValueDictionary across several calls to Action and RouteUrl methods
2016-05-19 16:15:46 -07:00
mnltejaswini
d7ccea17ce
[Perf] Refactoring ControllerActionInvoker to avoid coercing action method's return type to Task<object> for simple cases. Fixes #4539
2016-05-19 14:21:29 -07:00
Kiran Challa
f7b2ee80fd
[ Fixes #4550 ] Add an Option to set the Razor view location formats
2016-05-19 14:04:33 -07:00
Pranav K
1de268d6a7
Remove DNX references from Microsoft.AspNetCore.Mvc.FunctionalTests
...
Fixes #4677
2016-05-19 12:09:19 -07:00
Pranav K
43c75c922e
Allow functional tests with content to run from VS
...
Fixes #4543
2016-05-19 09:04:15 -07:00
Pranav K
61883b5101
Fix more schema warnings in Mvc
2016-05-18 18:25:45 -07:00
mnltejaswini
74357b3ed8
[Perf] Fast Generate Url for specific cases to avoid string allocations
2016-05-18 18:08:25 -07:00
Kristian Hellang
0f8542e4b2
Throw a more descriptive exception for missing CORS policies
2016-05-18 17:54:17 -07:00
Ryan Brandenburg
941da9264b
Move ModelBindingHelper to Internal ( #4664 )
2016-05-18 16:52:43 -07:00
Pranav K
78be3ad135
Revert "Update Minor versions ( #4657 )"
...
This reverts commit e731a327cf .
2016-05-18 09:11:20 -07:00
Ryan Brandenburg
e731a327cf
Update Minor versions ( #4657 )
2016-05-17 12:40:20 -07:00
N. Taylor Mullen
55922d68d4
React to `HtmlEncodedString` rename to `HtmlString`.
...
- Removed the Mvc instance of `HtmlString` since it now exists in `HtmlAbstractions`.
#4558
aspnet/HtmlAbstractions#25
2016-05-17 11:02:10 -07:00
Kristian Hellang
230776f4b0
Added Permanent property to configure RequireHttpsAttribute
...
Fixes #4561
2016-05-16 16:18:53 -07:00
mnltejaswini
61a176e478
[Perf] Cache the default values for action arguments to avoid Activator.CreateInstance per argument.
...
Fixes #4470
2016-05-16 11:43:34 -07:00
mnltejaswini
5fb36ae406
[Perf] Replace Activator.CreateInstance with cached delegate in RazorPageFactoryProvider
...
Fixes #4470
2016-05-16 11:26:33 -07:00
mnltejaswini
0e4b838864
[Perf] Replace Activator.CreateInstance with cached delegate in Model Binders
...
Fixes Part1 of #4470
2016-05-16 11:26:33 -07:00
N. Taylor Mullen
fa29396141
Revert "Add Visual Studio specific RC1 binaries."
...
This reverts commit 687fd72efd , a140440196 , 698980943a and 3ebb14ee4b .
#4405
2016-05-16 11:12:24 -07:00
BrennanConroy
aeb5eb440c
React to AuthorizationContext rename
2016-05-16 09:36:24 -07:00
Ryan Nowak
1e02fd2e6b
Merge invoker back into one class
...
This will help future generations maintain this class. Notice that the
protected methods that are going away all just call into another
extensibility point (other than the executor). If we need to we could make
that extensible in the future and then we have the same support with fewer
hooks and less complexity.
2016-05-13 17:43:59 -07:00
Ryan Nowak
51e133ab9f
Add asserts to DiagnosticSource
2016-05-13 15:05:35 -07:00
Ryan Nowak
6dbc808fde
Clean up .sln files
...
Remove reference to deleted DNX project
Prevent sources packages from building
2016-05-13 15:03:52 -07:00
Ryan Nowak
652e330875
Fix #4631 and avoid Task<T> creation in invoker
...
This change corrects and ordering bug between the creation of the
'context' and the diagnostic source event that occurs before a synchronous
filter's 'after' stage.
Also made some simple changes to avoid allocating Task<T> in many common
cases. Now we'll only create the Task<T> when we really need it (async
filters).
2016-05-13 08:53:56 -07:00
Ryan Nowak
128d74e2a0
Refactor Argument Binder
...
This change just rearranges some code in the argument binder with a mind
towards performance and clarity. We're removing a few Task<T>'s here as
well in certain cases, but not yet all of them. We additionally save a
dictionary in the case where you have bound properties.
Hopefully these changes break the code into more discrete and sensible
units without multiple levels of indirection without abstraction.
- Main 'driver' code
- BindModel
- ActivateProperty
2016-05-13 08:12:14 -07:00