Doug Bunting
19e6fb5719
MVC functional test cleanup part 1
...
- #3612 (subpart 1 of 2)
- delete six sites and associated tests entirely
- `ActionResultsWebSite`
- `ActivatorWebSite`
- `ControllerDiscoveryConventionsWebSite`
- `LoggingWebSite`
- `LowercaseUrlsWebSite`
- `ModelBindingWebSite`, now covered in integration tests
- remove now-unused `FilteredDefaultAssemblyProviderFixture`, `LoggingAssert` and `LoggingExtensions`
- move six test web sites into `./samples`
- `CustomRouteWebSite` -> `CustomRouteSample.Web`
- `FormatFilterWebSite` -> `FormatFilterSample.Web`
- `InlineConstraintsWebSite` -> `InlineConstraintSample.Web` (now singular)
- `JsonPatchWebSite` -> `JsonPatchSample.Web`
- `LocalizationWebSite` -> `LocalizationSample.Web`
- `RazorEmbeddedViewsWebSite` -> `EmbeddedViewSample.Web` (no longer "Razor" and now singular)
- do some cleanup: remove test dependencies, shorten sample controller names, use more attribute routing
- correct "license" spelling in `ApplicationModelWebSite`
2015-12-11 13:13:41 -08:00
Kiran Challa
57b88baad0
[ Fixes #3624 ] MVC functional test cleanup (part 2)
2015-12-10 16:26:39 -08:00
Kiran Challa
31e42ee312
[ Fixes #3433 ] Invalid media type 'text/plain; charset=utf-8'
2015-11-25 10:50:40 -08:00
Doug Bunting
d84587a99d
Quiet `initialization` target in `MvcSandbox` folder
2015-11-25 09:48:54 -08:00
ryanbrandenburg
b6f8c523a8
* Remove MvcSample and replace with MvcSandbox
2015-11-23 11:53:48 -08:00
Sébastien Ros
a420af67b7
Fix French translation
2015-11-20 16:07:30 -08:00
Ryan Nowak
8682fe0cfd
Replace ActionBindingContext with ControllerContext
...
This change introduces ControllerContext for inside of Controllers, and
controller-specific extensibility points. ControllerContext carries with
it the model binding infrastructure needed to do all of the things that
controllers need to do.
2015-11-20 15:32:37 -08:00
Pranav K
b520b0cb22
Limit [FromServices] to apply only to parameters
...
Fixes #3507
2015-11-17 16:41:04 -08:00
N. Taylor Mullen
d564a4a96b
React to aspnet/Razor#561 .
...
- `TagHelper` directives no longer have quotes.
- Regenerated test output.
2015-11-06 12:31:55 -08:00
Scott Addie
3c46662d91
Delete unused config.json file from MvcSample.Web
2015-10-30 10:25:12 -07:00
N. Taylor Mullen
d361c3a716
Update `TagHelperSample` conditionalcomment page.
2015-10-29 14:36:20 -07:00
N. Taylor Mullen
33b37d6554
React to aspnet/Razor#196 .
...
- Razor `TagHelper`s now special case `enum` values so you don't need to provide the entire `enum` prefix.
2015-10-29 10:06:43 -07:00
Scott Addie
92afcaa9f7
Fix small issues in Mvc.js
2015-10-26 10:52:43 -07:00
あまみや ゆうこ
b5bfdde194
remove Microsoft.AspNet.Server.IIS from sample
2015-10-25 01:17:57 +08:00
あまみや ゆうこ
38818a1033
Remove Microsoft.AspNet.Server.IIS from test Websites
2015-10-24 08:04:00 -07:00
Ryan Nowak
cea8d019f1
Add logging and scope for ViewComponent
2015-10-23 15:25:00 -07:00
Kirthi Krishnamraju
9658060019
React to aspnet/Localization#111
2015-10-23 01:47:29 -07:00
N. Taylor Mullen
0e25470660
React to aspnet/Razor#578 .
2015-10-22 14:41:40 -07:00
Ajay Bhargav Baaskaran
6bd97c7c30
Moving AllowAnonymous attribute to Authorization
2015-10-19 11:01:15 -07:00
Pranav K
0309a5216c
Add an option to RazorPrecompileModule to allow conditional compilation
...
based on Configuration.
Fixes #3276
2015-10-12 11:59:55 -07:00
Pranav K
f57e180971
Renaming Microsoft.Framework.* -> Microsoft.Extensions.*
2015-10-03 15:44:53 -07:00
Pranav K
8d7b95655d
Removing Autofac dependency
2015-10-03 12:18:19 -07:00
Stefán Jökull Sigurðarson
c713aa92ca
Making the HtmlHelper.GetEnumSelectList take DisplayAttribute.GroupName into account to create select groups.
2015-09-29 09:53:48 -07:00
Pranav K
18c80d156c
Replace NotNullAttribute with thrown exceptions
2015-09-26 23:48:43 -07:00
Ajay Bhargav Baaskaran
9c81b95d1b
Renamed Controller.Context to Controller.HttpContext
...
- #3165
2015-09-25 11:01:30 -07:00
Pranav K
9eb2c5b810
Reacting to IExpirationTrigger -> IChangeToken rename
2015-09-22 08:14:34 -07:00
Ryan Nowak
046cb976b3
Move ActionResult classes back to main namespace
2015-09-16 21:42:31 -07:00
N. Taylor Mullen
93735a5be6
React to Razor `TargetElementAttribute` rename.
...
aspnet/Razor#516
2015-09-13 19:14:30 -07:00
Kiran Challa
62c0eb3f02
React to errorhandler and errorpage extension name changes
2015-09-10 12:30:16 -07:00
Ryan Nowak
229724c4ea
Reorganize MVC namespaces
2015-09-01 22:28:33 -07:00
Ajay Bhargav Baaskaran
3519c375fc
Minor cleanup - removed unwanted @
2015-08-21 14:40:35 -07:00
Ajay Bhargav Baaskaran
774219b2ef
[ Fixes #2788 ] Added a sample taghelper that handles IE conditional comments
2015-08-21 11:19:49 -07:00
Ryan Nowak
9d89a8cac3
Homogenize MVC startup code patterns
...
Use builder APIS for both AddMvc() and AddMvcCore()
Change various API patterns to all use .AddXyz(...) off of one or both of
these builders.
2015-08-16 18:48:24 -07:00
Kirthi Krishnamraju
18c3ad25fb
fix build break due to aspnet/configuration #246
2015-08-13 23:19:56 -07:00
Stephen Halter
43064ef8b6
React to Kestrel rename
...
aspnet/KestrelHttpServer#11
2015-08-11 16:30:03 -07:00
Pranav K
9d467810b5
Switching to Autofac from NuGet.org
2015-08-07 15:53:53 -07:00
Pranav K
43e4870fa2
Switching to the official Autofac package.
2015-08-04 15:12:19 -07:00
Victor Hurdugaci
e96b4d7b94
React to DNX renames
2015-07-29 04:49:49 -07:00
Tugberk Ugurlu
81f8b3edfb
removed packExclude from unnecessary places, replaced it with
...
publishExclude and removed kproj and xproj excludes
2015-07-20 16:49:59 -07:00
Doug Bunting
6033679193
Cleanup .xproj files to avoid future churn
...
- mostly remove useless `<RootNamespace>` elements
2015-07-17 09:07:23 -07:00
Mugdha Kulkarni
8cb2aae4f5
fixing 2704 -- Rename LanguageViewLocationExpanderOption to LanguageViewLocationExpanderFormat
2015-07-09 15:38:11 -07:00
Ryan Nowak
48bfdceea6
Add basic startup experience for MVC.Core
2015-07-08 17:16:07 -07:00
Ryan Nowak
e985fa5d42
Split up MVC.Extensions into smaller packages
...
Startup.cs API experience to follow in a separate change. This change just
gets the bulk of the code churn out of the way.
2015-07-06 23:41:22 -07:00
Ryan Nowak
950b8b41a8
Rename IFilter -> IFilterMetadata
2015-07-06 23:40:43 -07:00
Doug Bunting
4d5604690d
Add or update sample `readme.md` files
...
- #2731
2015-06-26 21:15:18 -07:00
Ryan Nowak
2f554c4b29
Use new antiforgery package
2015-06-25 14:45:00 -07:00
Ryan Nowak
faaba481e8
Adding an 'AddMinimalMvc()' for Mvc.Core and sample
...
This adds the ability to configure Mvc.Core for a project; MVC with
minimal services and dependencies.
2015-06-12 11:29:47 -07:00
Kirthi Krishnamraju
74b193b15d
Added configurable option for LanguageViewLocationExpander to use subfolder or suffix
2015-06-08 12:07:49 -07:00
Kiran Challa
0469103683
React to Session api review changes
2015-06-08 09:44:05 -07:00
Kirthi Krishnamraju
30d11a8227
Added LanguageViewLocationExpander into framework and removed it from samples
2015-06-04 14:06:08 -07:00
Kirthi Krishnamraju
d19b265a7f
React to aspnet/Configuration #194
2015-05-22 05:54:03 -07:00
Ryan Nowak
144c1d3cf4
Fix #2151 - Part 4 remove [Activate] support from controllers.
...
This change completely removes [Activate]. In a controller, you should
constructor injection or [FromServices] to access services.
To access context items (ActionContext, ActionBindingContext, root
ViewDataDictionary) you should use the respected attribute class.
We'd like to consider streamlining this further in the future by getting
down to a single injectable context for controllers, but for now this will
have to do.
2015-05-21 22:57:56 -07:00
Kiran Challa
2a321fd622
React to Caching api review changes
2015-05-21 14:44:27 -07:00
Doug Bunting
8a701726b3
Rename _GlobalImport.cshtml files to _ViewImports.cshtml
...
- also rename files and directories with "GlobalImport" in name
- nearly blind but avoid "ViewImportss" in new names
- public API change: `ViewHierarchyUtility.GetGlobalImportLocations()` -> `GetViewImportsLocations()`
- primary source updates were comments, tests, and implementation details
nit:
- rename NestedGlobalImports.cs file to NestedViewImportsController.cs, matching class
2015-05-21 12:27:08 -07:00
Kirthi Krishnamraju
78033fda1f
fix build break
2015-05-21 11:25:03 -07:00
Kirthi Krishnamraju
337bbad51d
React to aspnet/Configuration #195,#198 and fix few minor build break issues
2015-05-20 20:01:23 -07:00
Henk Mollema
8b1f8b9748
Added new ValidationSummary overloads to sample
...
Overview now shows every possible overload.
#1743
2015-05-12 20:20:34 +02:00
Doug Bunting
3fbead0ce8
Get builds working better within VS (temporary fix?); disable pre-compilation
...
- remove `RazorPreCompilation.cs` files from all but the PrecompilationWebSite
- related to #2498 but not addressing that issue since pre-compilation is what that site is about
2015-05-11 16:14:04 -07:00
Troy Dai
ea717729c1
React to common package name change
2015-05-07 09:39:08 -07:00
Kiran Challa
c0ca6214c2
React to Caching api changes
2015-05-05 10:08:50 -07:00
Kiran Challa
7e623258c0
Use strongly typed MediaTypeHeaderValue for content type in action results.
2015-05-04 14:06:58 -07:00
N. Taylor Mullen
64e726d2b2
Update LICENSE.txt and license header on files.
2015-05-01 13:55:25 -07:00
Kirthi Krishnamraju
30e54609cc
Fix #1911 : Create a separate package for ApiExplorer
2015-04-28 13:13:20 -07:00
Ajay Bhargav Baaskaran
3ca018375a
Issue #1885 - Updated startup code in few websites
2015-04-28 10:42:01 -07:00
Kirthi Krishnamraju
e48565dcd8
Adding errors in ModelState
2015-04-22 13:44:09 -07:00
Ryan Nowak
8bae02928d
Fix build break
2015-04-20 12:44:30 -07:00
Henk Mollema
3ac6acdab4
Removed clear-text password from sample
...
Removed unused clear-text password as it encourages risky coding.
#1764
2015-04-17 13:58:48 +02:00
Doug Bunting
f3ec6f33ae
Merge remote-tracking branch 'origin/release' into dev
2015-04-03 12:08:11 -07:00
Doug Bunting
393aa54545
Update .xproj files for Microsoft.Web.AspNet.* -> Microsoft.DNX.* rename
2015-04-02 13:49:27 -07:00
Victor Hurdugaci
38eff2ddbc
Change casing of the "compiler" folder
2015-03-26 16:39:35 -07:00
N. Taylor Mullen
99d9b9d511
Add Razor TagHelper tooling reference to TagHelperSample.Web.
2015-03-24 16:57:18 -07:00
Doug Bunting
28ca45e077
Quick fix: Correct invalid HTML in some of our tag helper-related views
...
- few end tags for void elements e.g. `</input>`
- fair number of self-closing flow elements e.g. `<label .../>`
- most-visible change is correction of `<textarea>` in tag helper sample
- no product code changes
2015-03-23 22:13:03 -07:00
Kirthi Krishnamraju
a5da5b3acd
Removed reflection code; used JsonContract instead and added new JsonPatchInputFormatter
2015-03-23 14:46:54 -07:00
Hao Kung
4b5dd199ca
React to hosting changes
2015-03-19 11:07:25 -07:00
Ajay Bhargav Baaskaran
1c00cfe7aa
React to aspnet/Razor#281 changes
2015-03-17 14:16:50 -07:00
sornaks
d2bdd4f1d4
Removing 'Options' from ConfigureMvcOptions and ConfigureRazorViewEngineOptions.
2015-03-17 13:35:26 -07:00
Praburaj
00feaaac29
React to AddSessionServices rename to AddSession
2015-03-13 11:52:50 -07:00
Praburaj
dfe397612c
Reacting to Caching Extension rename
2015-03-12 16:59:49 -07:00
Praburaj
2b92f7772d
React to Caching package rename
...
dependent on https://github.com/aspnet/Caching/pull/49/files
2015-03-11 17:24:09 -07:00
N. Taylor Mullen
c1a026cbf7
Update .kproj => .xproj.
2015-03-11 14:01:43 -07:00
Doug Bunting
cc7b319cb7
Remove use of `ServiceDescriber` in MVC and cleanup related hacks
...
- see issues aspnet/DependencyInjection#193 and #1612
- use `TryAdd()` in `MvcServices` for the `IAssemblyProvider`
Move `ApplicationBasePath` handling into `RazorPreCompileModule`
- restores view precompilation in functional tests of sample sites
- if we need this, others will as well
- override `IApplicationEnvironment` but get folder from `ProjectContext`
- also remove remaining `IServiceProvider` implementations in this code
test fixes:
- simplify `IApplicationEnvironment` override
- move override logic into `TestHelper.CreateServer()` methods
- remove `LoggerFactory` setup
- does not seem to require special-casing
- remove unused `ITestConfigurationProvider` / `TestConfigurationProvider`
- remove `TestAssemblyProvider` classes
- no longer required
- remove `ReplaceCallContextServiceLocationService` test helper
- change MVC sample to fully-qualify config.json path
- avoids `ReplaceCallContextServiceLocationService` need in `MvcSampleTests`
- no longer required for other tests
nit: remove unused `_serviceProvider` and constructor overload in `RazorPreCompiler`
2015-03-10 22:25:42 -07:00
Ajay Bhargav Baaskaran
db728cd386
Introducing TempData
...
- Issue #455
- Updated MVC sample
- Added relevant tests
2015-03-10 12:04:05 -07:00
N. Taylor Mullen
1d578ca2fd
Remove BOM from project.json, *.cmd, *.sh and *.shade files.
2015-03-09 12:56:42 -07:00
N. Taylor Mullen
e829ba7646
Update aspnet50/aspnetcore50 => dnx451/dnxcore50.
2015-03-08 12:52:24 -07:00
sornaks
eeabe27606
Including Mvc.js script which enables Mvc.stringify(data) used in JQuery.Post() to send data understandable by MVC.
...
Adding Bower and Grunt components to pull JQuery from an appropriate source. Addressing PR Comments.
2015-03-05 08:07:01 -08:00
Hao Kung
46aaf790c4
React to AuthN changes
2015-03-02 16:14:38 -08:00
Praburaj
698af6d1d3
Reacting to hosting API changes
2015-02-27 16:18:05 -08:00
Kiran Challa
c276ddaa39
Added support for validation of Required attributes in case of XmlDataContractSerializerInputFormatter
2015-02-23 23:15:48 -08:00
Ryan Nowak
9d5364cf9b
Removing ModelMetadata.Model
2015-02-23 19:56:59 -08:00
Yishai Galatzer
ed8e5716ea
Remove INestedProviderXXX
...
React to aspnet/DependencyInjection#179
2015-02-23 15:18:39 -08:00
N. Taylor Mullen
df4b92b1c1
Update MVC projects to utilize Common repo classes.
...
- Had to add extra dependencies to work around aspnet/XRE#1237 .
- Updated src and test projects.
2015-02-22 18:23:28 -08:00
Pranav K
57f5b19f25
* Move precompiled assemblies into a resource in the primary assembly.
...
* Emit the primary assembly if a tag helper requires it.
* Make TagHelperSample.Web use precompilation.
Fixes #1693
2015-02-19 17:50:54 -08:00
Pranav K
eb7b0d6ae3
* Introduce _GlobalImports to inherit directives.
...
* Remove inheritance from _ViewStarts
Fixes #825
2015-02-18 10:02:37 -08:00
Doug Bunting
8eb63271b5
Make HTML helper parameter names consistent
...
- #944
- name `string` expression name and `Expression<Func<TModel, TResult>>`
parameters "expression"
- single special case is `GenerateIdFromName(string fullName)` since every
other expression name is relative to the current
`ViewData,TemplateInfo.HtmlFieldPrefix` value
- applied from `IHtmlHelper` and `IHtmlGenerator` on up
- name `IHtmlHelper` and `IHtmlHelper<TModel>` parameters "htmlHelper"
- rename `TProperty` and `TValue` type parameters to `TResult`
nits:
- clean up abbreviated names in `CachedExpressionCompiler`
- change `ObjectToDictionary()`'s parameter name to `value`
- use `nameof` more to make renaming (and refactoring) easier in the future
- rewrap parameters and arguments to avoid long lines and orphans
2015-02-17 17:53:53 -08:00
damianedwards
6e845f0171
Add globbing support to the LinkTagHelper:
...
- #1581
2015-02-16 18:29:59 -08:00
Hao Kung
94ef6cf8fa
React to Authorize changes
2015-02-16 15:40:57 -08:00
Praburaj
3fc61eeac9
Introducing SkipStatusCodePagesAttribute attribute to disable StatusCodepages
2015-02-13 16:03:59 -08:00
Doug Bunting
451db6fb16
React to aspnet/Razor#164 : Camel-case tag helper directives
2015-02-13 12:07:21 -08:00
Ajay Bhargav Baaskaran
088bb18eed
Added support for binding FormCollection
...
- Added FormCollectionModelBinder
- Added relevant unit and functional tests
2015-02-13 11:14:50 -08:00
Pranav K
e1e43e1e8c
ControllerActivator should be able to use controllers registered as
...
services
* Added WithControllersFromServiceProvider that replaces the default
controller activator with a service based one.
* Move activation to DefaultControllerFactory
* Modify [Activate] behavior so that it no longer activates services. Use
[FromService] attribute to hydrate services
Fixes #1707
2015-02-11 16:41:59 -08:00