Commit Graph

1485 Commits

Author SHA1 Message Date
Harsh Gupta ac908d405e Removing ModelMetadataProvider.GetModelMetadataForParameters 2015-03-19 16:42:54 -07:00
Ajay Bhargav Baaskaran d166517dd6 React to aspnet/Razor#169 changes 2015-03-19 15:58:00 -07:00
Ajay Bhargav Baaskaran 9c1e2f54a5 [Fixes #2157] Added additional functional tests for TempData 2015-03-19 15:55:23 -07:00
Kiran Challa ab31be20ed Fix tests to work on CoreClr (this does not fix the Xml tests failures) 2015-03-19 11:52:29 -07:00
Hao Kung 4b5dd199ca React to hosting changes 2015-03-19 11:07:25 -07:00
Harsh Gupta 015edefa96 Cors Support in MVC. 2015-03-18 19:37:00 -07:00
Kiran Challa ee4ffea294 [Fixes #2190] Remove GetSupportedContentTypes method from IOutputFormatter and move to a separate metadata interface 2015-03-18 16:13:14 -07:00
N. Taylor Mullen 52c1c20967 React to HtmlElementName rename to TargetElement.
aspnet/Razor#311
2015-03-17 22:03:11 -07:00
Ajay Bhargav Baaskaran fc9e1caf43 [Fixes #1331] Register object for dispose in ObjectResult and
FileStreamResult
2015-03-17 17:04:05 -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
sornaks c1338a0542 Reacting to Razor changes for removing Generate*() method. 2015-03-17 13:12:38 -07:00
Kiran Challa 489fc52df8 [Fixes #2108] StringOutputFormatter fails when HttpNotAcceptableOutputFormatter is used 2015-03-17 11:04:46 -07:00
ianhong ee49ab727f RazorPage.User should be ClaimsPrincipal 2015-03-17 10:41:22 -07:00
N. Taylor Mullen 2a28e6f4ce Add tests to validate @tagHelperPrefix inheritance.
- Updated some naming bits that were still using the ViewStart name.
- Updated MvcRazorParserTests to test more cases of the parser, especially with @tagHelperPrefix.

#2110
2015-03-16 17:30:11 -07:00
N. Taylor Mullen f49d52b5fc Add @tagHelperPrefix inheritance support.
- Updated some naming bits that were outdated (referring to ViewStart).
- Added a TagHelperDirective merging mechanic to ensure user file descriptors and inherited descriptors come together correctly.

#2110
2015-03-16 17:30:05 -07:00
Hao Kung f05520602f React to Authenticate(schemes) being removed 2015-03-16 16:57:16 -07:00
Ryan Nowak e16d263cd5 Reduce use of TypeActivation for ModelBinders
These model binders don't have any per-request state so there is no need
for them to be type activated. In one case the model binder actually does
its own caching which is being defeated by the fact that we register it as
type activated.

More changes to come in this area.
2015-03-16 15:10:32 -07:00
Praburaj b485b60014 Updating the version of System.Runtime.Serialization.Primitives 2015-03-16 14:02:28 -07:00
Ryan Nowak fc00aff7c5 Add TestCommon project 2015-03-16 13:49:29 -07:00
Kiran Challa 3d247ec028 [Fixes #2086] FilePathResult WriteFileAsync uses SendFile feature incorrectly 2015-03-16 13:05:12 -07:00
Kiran Challa f06007d428 [Fixes #2156] Remove IConfiguration from AddMvc 2015-03-14 00:02:53 -07:00
Kiran Challa 9a44e3e08b [Fixes #2095] Mark IControllerFactory methods in DefaultControllerFactory as virtual 2015-03-13 12:50:29 -07:00
damianedwards 7d1c1ed8eb Enable Tag Helper initializers:
- Any Action<ITagHelper, ViewContext> can be registered in DI to allow setting of tag helper properties after any [Activate] properties are set but before their bound from the source document and the tag helper is executed
- Removed previous tag helper options as initializers is the way to do this now
- #1689
- #2162
2015-03-13 12:31:02 -07:00
Praburaj 00feaaac29 React to AddSessionServices rename to AddSession 2015-03-13 11:52:50 -07:00
N. Taylor Mullen 800bcde501 Fix build. 2015-03-13 00:09:29 -07:00
N. Taylor Mullen 385fa29407 Update xunit.runner.kre => xunit.runner.aspnet. 2015-03-12 18:01:41 -07:00
Doug Bunting 7e3acd9506 Quick fix: Shut `npm install` up a bit
- remove `npm WARN package.json ValidationWebSite@0.0.0 No repository field.`
2015-03-12 17:26:01 -07:00
Praburaj dfe397612c Reacting to Caching Extension rename 2015-03-12 16:59:49 -07:00
Doug Bunting e8091b76ce Correct .xproj files that were recently added .kproj files 2015-03-11 22:55:59 -07:00
Doug Bunting e2ae1496ec Do not use deprecated `dnvm -x86` switch 2015-03-11 19:29:10 -07:00
Praburaj 38076269e1 React to Caching package rename - Fixing a missed cshtml 2015-03-11 18:03:05 -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
Hao Kung f3a9ce1ec1 Welcome home ScopedInstance 2015-03-11 15:03:29 -07:00
N. Taylor Mullen c1a026cbf7 Update .kproj => .xproj. 2015-03-11 14:01:43 -07:00
Kirthi Krishnamraju 7b18d1d3f1 Clear ModelState errors of model before TryValidateModel or TryUpdateModel 2015-03-11 10:14:28 -07:00
Doug Bunting e9f56055eb Need `[NotNull]` for all `TextWriter parameters in `RazorPage`
- #2102
- `PositionTagged<string>` and `RenderAsyncDelegate` parameters too
- and a few `string` parameters dereferenced or used as `Dictionary` keys
2015-03-10 23:26:41 -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
Praburaj 4e9e33fc07 Renaming Nuget.org feed key name to Nuget.
fixes https://github.com/aspnet/Universe/issues/174
2015-03-10 11:37:28 -07:00
Doug Bunting e7ee4278a5 Correct case of web site folder and project names
- work around aspnet/DNX#1361 and inconsistent dev boxes (from previous fix attempts)
 - had inconsistent case in test/WebSites and test/WebSites/ConnegWebSite
- ConnegWebsite -> ContentNegotiationWebSite
- RazorInstrumentationWebsite -> RazorPageExecutionInstrumentationWebSite
- RazorViewEngineOptionsWebsite -> RazorEmbeddedViewsWebSite

nits:
- sort dependencies in functional test project.json
- correct a few readme.md files
2015-03-10 09:34:06 -07:00
Doug Bunting a4e01bfe35 Correct setup of three tests added in prior commit
- compiler given `ApplicationName`, not `ApplicationBasePath`
- @pranavkm wrote the tests prior to 64ddbe0160

nit: rewrap long line introduced in prior commit
2015-03-10 09:28:17 -07:00
Pranav K 717c2bfd39 * Redesign CompilationResult so that it does not throw when CompiledType is
accessed.
* Update to use ICompilationException interface from
  Microsoft.Framework.Runtime
* Update to use RoslynCompilationException

Fixes #955
2015-03-09 14:39:10 -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 35fc8279dd Updated missed dnx name changes. 2015-03-09 02:17:58 -07:00
N. Taylor Mullen 39db3ffc2b Update build.sh to use dnvm correctly. 2015-03-08 12:52:51 -07:00
N. Taylor Mullen 2f5cc19e2d Update kvm/KVM/Kvm => dnvm/DNVM/Dnvm. 2015-03-08 12:52:50 -07:00
N. Taylor Mullen 9f3955ee55 Update K_BUILD_VERSION/kre/KRE/.k => DNX_BUILD_VERSION/dnx/DNX/.dnx. 2015-03-08 12:52:38 -07:00
N. Taylor Mullen e829ba7646 Update aspnet50/aspnetcore50 => dnx451/dnxcore50. 2015-03-08 12:52:24 -07:00
Praburaj c483b846e4 Fixing the test to expect characters produced by new IHtmlEncoder
Diagnostics packages are now using the new IHtmlEncoder.
2015-03-06 14:35:47 -08:00