Commit Graph

27752 Commits

Author SHA1 Message Date
Pranav K 6644b5beba Move System.Resources.ReaderWriter to dnxcore50 node 2015-06-03 22:41:05 -07:00
Kiran Challa 6407a1672d Session API review changes. 2015-06-03 21:51:17 -07:00
Kiran Challa dab08ba7e9 Session api review changes 2015-06-03 21:19:18 -07:00
Troy Dai a759bc5529 Merge branch 'release' into dev 2015-06-03 11:58:40 -07:00
Troy Dai 5c0521df63 Fix build break 2015-06-03 11:58:27 -07:00
Troy Dai 39fa2782d2 Merge branch 'release' into dev 2015-06-03 11:52:58 -07:00
Troy Dai 499de6536b Fix Diagnostics build break 2015-06-03 11:50:51 -07:00
Pranav K 6f935f8e28 Updating to dev Azure AD feed 2015-06-02 16:39:55 -07:00
Pranav K 847894f317 Merge branch 'release' into dev 2015-06-02 16:25:59 -07:00
Pranav K 0b214a0e77 * Changing IdentityModel package versions to beta5
* Updating NuGet.config to pick up packages from AzureAD feed.
2015-06-02 16:17:49 -07:00
Chris R 532698abd3 React to CoreCLR Overlapped changes. 2015-06-02 10:16:15 -07:00
Doug Bunting 664d718398 Add `Quiet` default to enable conditionalizing `Log.Info()` calls
- use in new `_copy.shade` which overrides the Sake default
2015-06-01 14:46:58 -07:00
Doug Bunting ffd1dc1fb0 Add support for generating baseline output files while testing
- baselines include both expected output and design-time line mappings
- controlled by GENERATE_BASELINES
 - assertions related to file content are not checked in this mode
- add design-time test of Basic.cshtml to `MvcRazorHostTest`
- regenerate all files to avoid BOM and blank line noise in future PRs
 - update out-of-date design-time Basic.cs file

nits:
- make a few variable names more consistent
- make `Assembly` fields `static`
- remove unused `_resourcesAssembly` field from `ErrorPageTests`
- remove `ResourceHelpers` which was specific to functional tests
2015-06-01 13:13:39 -07:00
Harsh Gupta 386562c269 Enabling test for 2447, CancellationToken does not gets validated. 2015-06-01 12:41:34 -07:00
Doug Bunting e31eab0391 `ByteArrayModelBinder` should return `null` only when type is not matched
- #2456
- visible behaviours now match MVC 5
- prevent `CollectionModelBinder` from converting no value to `byte[0]`
- prevent `TypeConverterModelBinder` from converting empty value to `byte[] { '\0' }`

nit:
- remove additional delegates `ModelBindingTestHelper.GetOperationBindingContext()` calls
 - a few left despite #2625 cleanup
2015-06-01 12:20:17 -07:00
Doug Bunting 26795bd4b5 Correct test expectations
- use valid `multipart/form-data` content type; include a `boundary`
- correct expectations of `FormCollection` model binder's operation
 - restore tests actually skipped for either of the above reasons
- add more tests with `ModelBindingResult.Model==null` and both `IsModelSet` values

#### Remove test references to Won't Fix bug #2473
- restore #2473 tests; update test expectations
- expect `null` composite results whenever binding fails

#### Restore test skipped due to "#2646"
- that issue does not exist; was likely #2466 or similar fixed bug

#### Rename model binding tests that still mention ReturnsFalse or ReturnsTrue

#### Minor src changes
- remove unused variable and unnecessary nesting in `DefaultControllerActionArgumentBinder`
- remove dangling mention of `[DefaultValue]` in `ComplexModelDtoModelBinder`

#### nits:
- remove empty delegates from some `GetOperationBindingContext` calls; `null` fine
- do some `using` cleanup
- combine two test methods in `KeyValuePairModelBinderTest`
- name a few more arguments
2015-06-01 12:15:39 -07:00
Doug Bunting 113d80c6f5 Ensure `CodeVisitor`s consistenctly find tag helpers
- #412
- fix `CSharpTagHelperRunnerInitializationVisitor` and `CSharpUsingVisitor`
- fix existing test of the tag helper in a section scenario
2015-06-01 09:03:09 -07:00
Doug Bunting d545f47fe4 Avoid errors when generating baselines
- ignore missing expected output resources in this mode
- update `BaselineWriter` to avoid `IOException`s (file access issues)
 - serialize file operations
 - one file handle per file
- repeatedly `rm TestFiles/CodeGenerator/Output/*; `dnx . test`; no errors

also
- add generation of design-time line mappings
- fix ChunkGenerator -> CodeGenerator typo in path names
- update files only if they have changed
 - new `TestFiles.Exists()` method to support this check
- do not check results in `CSharpCodeBuilderTests` if `GENERATE_BASELINES` set

nits:
- update BOM in CodeBlockWithTextElement.cs to avoid future `git diff`s
- use more `var` and improve variable names in `TestFile`
- wrap long lines
2015-06-01 08:42:23 -07:00
N. Taylor Mullen e0b8532735 Update names and spacing of some missed ChunkTree renames. 2015-05-29 23:07:55 -07:00
N. Taylor Mullen 1e5ad1154d Updated comment. 2015-05-29 23:01:21 -07:00
N. Taylor Mullen 3ba92523ff Remove special casing of '*' in TagHelperDescriptorProvider.
- Requesting a '*' tagName from the TagHelperDescriptorProvider could only happen if a user was directly calling into it (extremely unlikely). Therefore I've removed the special casing to make the logic more simple.
- Removed tests that expected this behavior.

#324
2015-05-29 15:06:14 -07:00
N. Taylor Mullen 951a1d0879 Addressed code review comments. 2015-05-29 14:59:07 -07:00
N. Taylor Mullen 3fa5dee2d7 React to aspnet/Razor#140 2015-05-29 14:52:23 -07:00
N. Taylor Mullen 94553703a2 React to aspnet/Razor#140
- ICodeTreeCache => IChunkTreeCache
- ModelCodeGenerator => ModelChunkGenerator
- MvcCSharpCodeBuilder => MvcCSharpCodeGenerator
- Updated files that used Razor resources that are now in different namespaces.
- Updated variable names to account for Razor renames.

aspnet/Razor#140
2015-05-29 14:21:35 -07:00
David Fowler ed339a35d2 Made container verison volatile 2015-05-29 14:14:36 -07:00
N. Taylor Mullen ed92b6992d Addressed code review comments. 2015-05-29 12:50:01 -07:00
CodingGorilla 70b56f157c Updated the ResponseCacheFilter class to store a reference to the CacheProfile passed into the contructor
Updated the ResponseCacheFilter Duration, Location, NoStore, and VaryByHeader properties to return one of 3 values: the specific setting applied to the instance, the setting supplied by the CachePolicy (from the constructor), or a default value.  The emphasis being not to change the outward function of these properties to consumers, but to defer the evaluation of these properties until the OnActionExecuting method.
Updated the ResponseCacheFilter to check whether a cache duration has been supplied when the NoStore property is false and throw an InvalidOperationException when a duration has not been provided.
Updated ResponseCacheFilterTest to reflect the changes in behavior in the ResponseCacheFilter
Updated the ResponseCacheFilterAttributeTest to reflect the change in the behavior of the ResponseCacheFilter

Added unit tests to ResponseCacheFilterTest.cs to verify that the CachePolicy properties are properly overriden with the properties set directly on the ResponseCacheFilter.

Added functional tests to test the ability to override CacheProfile settings with properties on the ResponseCacheAttribute
2015-05-29 12:28:14 -07:00
Brice Lambson 62e5349773 Make webHostBuilder.UseStartup(startupAssemblyName) work 2015-05-29 12:11:34 -07:00
damianedwards e02db6ef62 Merge branch 'release' into dev 2015-05-29 11:46:42 -07:00
damianedwards 39f40d2c5f Fix references to include beta-* 2015-05-29 11:46:24 -07:00
Harsh Gupta 4f419eee55 Removing creating ModelValidationNode by default in CompositeModelBinder.
This moves the responsibility of of MVN creation to individual model binders if they want the individual models to be validated.
2015-05-29 09:21:11 -07:00
David Fowler d9839bcc43 Removed bookeeping for duck typing feature interfaces
- Removed interlocked increment since the version was
being incremented within the lock

#317
2015-05-29 01:12:54 -07:00
David Paquette 3fe0490b99 Renamed FileVersion to AppendVersion in tag helpers that support cache busting
FileVersion property renamed to AppendVersion in ImageTagHelper,
LinkTagHelper and ScriptTagHelper.

asp-file-version attribute renamed to asp-append-version.

Resolves issue #2540
2015-05-28 17:56:19 -07:00
Kiran Challa 568c8b6bc4 Fix build break. 2015-05-28 16:34:58 -07:00
Ryan Nowak 6e1226bfe4 Enable tests for #2470
This was very likely fixed as part of
22f1881cc6
2015-05-28 14:57:50 -07:00
damianedwards 07c7fff301 Merge branch 'release' into dev 2015-05-28 12:46:08 -07:00
damianedwards 5eda65f336 Fix default path in CultureInfoGenerator:
- #26
2015-05-28 12:45:52 -07:00
damianedwards 7fb51d4535 Merge branch 'release' into dev 2015-05-28 12:31:39 -07:00
damianedwards 1a47d19bb3 Introduces IStringLocalizer.GetAllStrings to replace direct IEnumerable impl:
- #18

Support not loading ancestor culture strings on IStringLocalizer.GetAllStrings:
- #23
2015-05-28 12:25:03 -07:00
damianedwards b583c46372 Merge branch 'release' into dev 2015-05-28 12:16:51 -07:00
damianedwards 90ca64c3dd Statics be gone!
- Cleaned up ctors of ResourceManagerStringLocalizer and ResourceManagerWithCultureStringLocalizer too
2015-05-28 12:14:03 -07:00
Pranav K 189d1037f2 Merge branch 'release' into dev 2015-05-27 18:09:07 -07:00
Pranav K 59033fed80 Updating release NuGet.config 2015-05-27 18:08:52 -07:00
Pranav K df9e8c1491 Merge branch 'release' into dev 2015-05-27 18:01:55 -07:00
Pranav K 34223d892c Adding xunit feed to release 2015-05-27 18:01:44 -07:00
N. Taylor Mullen 6df8bc23f1 Renamed CodeBuilder related classes to CodeGenerator
- Now that what used to be CodeGenerators are now ChunkGenerators we can rename the CodeBuilder into its correct structure: a CodeGenerator.
- Moved the TagHelperAttributeValueCodeRenderer from the TagHelpers namespace into the CodeGeneration namespace.
- Went through several classes and remove and sorted usings.
- Updated test files to abide by the new naming convention of Builders => CodeGenerators.

#140
2015-05-27 17:00:41 -07:00
N. Taylor Mullen 5df9b52afe Renamed and moved several Razor classes for clarity.
- Renamed CodeGenerators to ChunkGenerators.
- Updated location of TestFiles from TestFiles/CodeGenerator/CS/{Output|Source} => TestFiles/CodeGenerator/{Output|Source}.
- Removed ChunkTree test; it was a legacy test used to experiment with Razor rendering (not a real test).
- Removed CSharpRazorCodeGenerator; it's now replaced with RazorCodeGenerator. It was an empty class that did nothing.
- Updated ChunkBlock => ParentChunk. Also updated several patterns throughout the code base that referenced these blocks as blocks and not parents.
- Moved Chunks and ChunkGenerators into the Chunks/Chunks.Generators namespace/folder structure. Updated test project to reflect the same.
- Moved CodeBuilders and CodeVisitors to the CodeGeneration/CodeGeneration.Visitors namespace/folder structure. Updated test project to reflect the same.
- Moved several TagHelper assets outside of their own namespaces and into Razors more general structures; such as CodeGeneration and Chunks/Chunks.Generators.

#140
2015-05-27 17:00:25 -07:00
Pranav K 6d6acf0056 Updating to release NuGet.config 2015-05-27 16:56:53 -07:00
Pranav K 313251a065 Merge branch 'release' into dev 2015-05-27 16:36:14 -07:00
Pranav K 12bf8f28e0 Updating release NuGet.Config 2015-05-27 16:35:43 -07:00