Commit Graph

2608 Commits

Author SHA1 Message Date
Doug Bunting b35922e373 Remove project name from output path
- aspnet/Coherence-Signed#187
- remove `<RootNamespace>` settings but maintain other unique aspects e.g. `<DnxInvisibleContent ... />`
- in a few cases, standardize on VS version `14.0` and not something more specific
2016-03-02 14:39:12 -08:00
jacalvar 63e818b2fe [Fixes #4204] React to changes in Localization. 2016-03-02 14:36:54 -08:00
Pranav K e9b766fe80 Updated missed ifdefs in netstandard conversion 2016-03-01 16:03:05 -08:00
N. Taylor Mullen 33d1aea8ea Transition to Netstandard.
- dotnet5.X => netstandard1.y (where y = x-1).
- DNXCore50 => netstandardapp1.5.
- Applied the same changes to ifdefs.
2016-03-01 13:39:31 -08:00
jacalvar 12f33de92c Make ServiceCollectionExtensions consistent 2016-03-01 12:03:54 -08:00
Kiran Challa b7cde3e58f [Fixes #4043] Figure out ControllerModel.AttributeRoutes 2016-03-01 10:28:24 -08:00
jacalvar 5423dc8c34 [Fixes #4099] Add a functional test for creating a form with a file upload field 2016-02-29 18:13:52 -08:00
Pranav K abafceab52 Revert "Updating to Roslyn beta1 packages"
This reverts commit 5ac7691f2e.
2016-02-29 09:41:16 -08:00
Pranav K 5ac7691f2e Updating to Roslyn beta1 packages 2016-02-29 06:59:03 -08:00
Pranav K 54bc9a7327 Update Microsoft.AspNetCore.Mvc.Dnx to target net451 2016-02-28 20:23:29 -08:00
Victor Hurdugaci a2565838c5 Return the correct error code from the build script 2016-02-28 11:10:35 -08:00
Victor Hurdugaci 39d9bafb45 Update the build scripts 2016-02-27 12:51:16 -08:00
Doug Bunting f889965929 Simplify `IsAssignableFrom()` use
- standardize on the `Type` extension method; less verbiage
- `ModelMetadata` had a redundant `IsAssignableFrom()` call
- `ModelBindingHelper.ValidateBindingContext()` over-engineered and used just once
 - do useful bit inline in `KeyValuePairModelBinder` but now a silent "does not apply" case
2016-02-26 21:30:00 -08:00
Shahriar Gholami 1e5b0b9bec Allow to define section or/and body without the need to render it 2016-02-26 18:02:19 -08:00
Doug Bunting 49ffeb16d2 Test fix: Change `CollectionModelBinderTest` to update `ModelMetadata.IsReadOnly`
- unrelated to #3482 except that I discovered the issue while investigating that issue
- tests previously set `BindingDetails.IsReadOnly` for a `Type` and that was ignored
 - same for `DictionaryModelBinderTest`
2016-02-26 15:58:09 -08:00
Pranav K 385c21fbe2 Add Microsoft.AspNetCore.Mvc.Dnx to allow using Mvc with DNX 2016-02-26 15:14:32 -08:00
ryanbrandenburg 00bab92257 * Linux FS is case sensitive 2016-02-26 11:59:23 -08:00
Ajay Bhargav Baaskaran b8e77e91d1 Updating samples to work with latest dotnet 2016-02-25 10:46:15 -08:00
Pranav K 756953fd50 Use the entry assembly when DependencyContext is null
Fixes #4136
2016-02-25 06:23:06 -08:00
Doug Bunting 140c8686b5 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:55:37 -08:00
Ajay Bhargav Baaskaran 028c0fb131 Enabled xml doc generation 2016-02-24 12:19:46 -08:00
Pranav K 0bf650a789 Use a fixed version of Roslyn to allow Coherence to succeed 2016-02-24 10:48:18 -08:00
Doug Bunting d1695ea6d6 Update `build.sh` to match other repos
- currently attempts to `source KoreBuild.sh`
2016-02-24 09:38:40 -08:00
Caleb Nelton 5b0b0b95a7 Small Refactorings
Use nameof
Replace with single call to SingleOrDefault
Replace with single call to FirstOrDefault
Simplify conditionals
2016-02-23 19:01:09 -08:00
Pranav K 80b6996701 * Moving DNX dependencies to test only
* Updating Mvc tests to use dotnet test to run on dnxcore50
2016-02-23 18:58:42 -08:00
Sebastien Ros c259f82615 [Fixes #4112 #4093] Adding support for custom SSL port
New optional MvcOptions.SslPort. If not defined the redirection uses an empty port (default),
otherwise the custom port is used.
2016-02-23 10:21:11 -08:00
Pranav K 5b805bb12d Updating to use cli
Fixes #3908
2016-02-22 17:49:51 -08:00
Kiran Challa 779edb6fe1 React to Routing service collection extension changes 2016-02-22 11:43:08 -08:00
Ajay Bhargav Baaskaran df5eb0a15c [Fixes #4092] Using System.Buffers in JsonResultExecutor 2016-02-19 16:45:26 -08:00
N. Taylor Mullen b39f4dfe29 React to razor tooling rename. 2016-02-19 15:05:37 -08:00
Kiran Challa 4123d83d26 [Fixes #4047] SelectTagHelpers: asp-items shouldn't require/depend on asp-for. 2016-02-19 10:03:45 -08:00
Kiran Challa fd3ee49987 [Fixes #4085] Controller helper inconsistency: HttpNotFound(), Ok() 2016-02-19 09:25:04 -08:00
matt kocaj 75c05be2f7 removing redundant 'http' prefixes from helper methods. 2016-02-19 09:25:03 -08:00
Ryan Nowak b557ca55d9 Fix behavior of StartsWithPrefix
This undoes a behavior change introduced in
7b18d1d3f1.

The intent was to have ClearValidationState do the right thing for a case
where a collection was bound to the empty prefix, and then used again with
TryUpdateModel.

This change was implemented by saying that a key like "[0].Foo" is a match
for the prefix of "Foo". This isn't really right, and it's only
interesting for the ClearValidationState case.

The problem is that we don't know what the keys look like for a
collection. We can assume that they start with [0] but that's not really a
guarantee, it's a guess.

This change fixes the behavior of StartsWithModel, and move the
responsibility for this case back into ClearValidationState.

This change also removes the call to ClearValidationState from
TryUpdateModel. If you need this behavior, then call ClearValidationState
manually. Trying to bind and then re-bind a model object isn't really what
we intend.
2016-02-17 11:16:16 -08:00
Ajay Bhargav Baaskaran fd6d28d9eb Make AddControllersAsServices not overwrite existing IControllerTypeProvider 2016-02-17 10:14:31 -08:00
jacalvar 910f0139f9 [Fixes #4050] Throw an exception on CanRead/Write and GetSupportedContentTypes when the list of media types is empty 2016-02-16 17:16:16 -08:00
Kiran Challa 7337f50112 [Fixes #3774] DataAnnotation validation ignored 2016-02-16 08:52:50 -08:00
jacalvar ac23e5aec6 [Fixes #4013] Added support for areas in 'a' and 'form' tag helpers 2016-02-12 17:08:17 -08:00
jacalvar 65858b8d8b [Fixes #4051] Split OutputFormatter into OutputFormatter and TextOutputFormatter 2016-02-12 12:04:18 -08:00
jacalvar 63354e25a8 Make GetSupportedContentTypes on InputFormatter vitual 2016-02-12 10:57:36 -08:00
Ben Adams a33369acd8 Fast-path PrefixEnumerator 2016-02-12 09:06:14 -08:00
Ben Adams a493a9756e Simplify IsWhitespace 2016-02-10 17:34:20 -08:00
Ben Adams fd11d70fcd Less work on non-relative strings in UrlResolutionTagHelper 2016-02-10 17:34:19 -08:00
N. Taylor Mullen dca15c0a60 React to https://github.com/aspnet/Razor/pull/683 2016-02-10 16:53:33 -08:00
Ben Adams 6c2c777bdc Optimize StartsWithPrefix
-Remove double "equality" test in StartsWithPrefix
-Further StartsWithPrefix efficiencies
-Remove subkey allocation in StartsWithPrefix
2016-02-10 10:12:35 -08:00
Ryan Nowak dacebacb90 Optimize PrefixContainer
There's really no need for us to sanitize null. This code handles null
correctly. Additionally, CopyTo should be able to do better than our
hand-written foreach in the worst case, and avoids an enumerator
allocation.

Removed a custom implementation of IndexOfAny.
2016-02-10 09:48:29 -08:00
Ryan Nowak 698502df8c Rewrite MutableObjectModelBinder
A rewrite focused on simplifying extensibility points and reducing
allocations.
2016-02-10 09:48:05 -08:00
Chris R fa9f13db2d React to MediaTypeHeaderValue.Parse exception message change. 2016-02-08 22:26:55 -08:00
Chris R 4f8d1863d8 React to ISendFileFeature parameter name change. 2016-02-08 11:53:57 -08:00
Ryan Nowak 44834debeb Fix broken code path in antiforgery 2016-02-08 10:51:33 -08:00