Commit Graph

40898 Commits

Author SHA1 Message Date
Kirthi Krishnamraju 78033fda1f fix build break 2015-05-21 11:25:03 -07:00
Eilon Lipton 186d4cde42 Merge pull request #6 from hishamco/issue#5
ASP.NET vNext -> ASP.NET 5
2015-05-21 09:22:40 -07:00
Doug Bunting 3bdaec5b7e React to aspnet/Mvc#2489 fix
- rename _GlobalImport.cshtml file to _ViewImports.cshtml
2015-05-21 07:59:26 -07:00
David Fowler eb182fdafd Fixed dependencies 2015-05-21 03:46:18 -07:00
Kirthi Krishnamraju 7968239891 React to aspnet/Configuration #195,#198 2015-05-20 23:40:16 -07:00
Doug Bunting 517c013882 React to aspnet/Razor#89 fix
- use `IDictionary<string, TValue>` support in `<a/>` and `<form/>` tag helpers
 - make `RouteValues` dictionaries `IDictionary<string, string>` for ease of use
- remove `TagHelperOutputExtensions.FindPrefixedAttributes()`
- set all `GeneratedTagHelperContext` properties
- add error for tag helper dictionary properties where `TValue` is `ModelExpression`
- add new `RazorPage.InvalidTagHelperIndexerAssignment()` method and resource

tests
- use new `isIndexer` argument when creating `TagHelperAttributeDescriptor`
- arrange `AnchorTagHelper` and `FormTagHelper` correctly
 - also expect `routeValues != null` in calls to `IHtmlGenerator`

nits:
- get rid of some `foo` and `bar` gunk in tests
- remove unused variable to cleanup a test compilation warning
2015-05-20 22:07:19 -07:00
Doug Bunting 60c47c8874 Add `[HtmlAttributeName(..., DictionaryAttributePrefix="prefix")]` part III
- #89 remainder
- support adding attributes (that aren't otherwise bound) to a tag helper dictionary
- use two `TagHelperAttributeDescriptor`s for dictionary and indexer
 - most exising descriptor properties have two meanings depending on new `IsIndexer`
 - add `TagHelperAttributeDescriptor.IsNameMatch()`
- create no `TagHelperAttributeDescriptor`s if property name or `HtmlAttributeNameAttribute`
  is invalid
 - avoid corner case misfeatures where invalidity removes just one descriptor
- extend handling of invalid attribute names to include `[HtmlAttributeName]`
- handle prefix matches in `TagHelperBlockRewriter`
 - add parse error when resolved dictionary key is `string.Empty`
- generate code for indexer property assignments
 - add code generation for runtime error if using indexer when property is `null`
 - use new `GeneratedTagHelperContext.FormatInvalidIndexerAssignmentMethodName` for message
- code generation now handles attributes in source order; thus above errors occur only when
  expected if dictionary is also initialized in the Razor source
 - surprisingly generation order change did not break existing tests!

nits:
- improve `TagHelperDescriptorFactory_InvalidBoundAttributeName` wording
 - rename resource to `TagHelperDescriptorFactory_InvalidAttributeNameOrPrefixStart`
- correct order of arguments to `FormatTagHelperDescriptorFactory_InvalidBoundAttributeName`
- correct `TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed` resource
- correct `TagHelperDescriptorFactoryTest` test names
 - remove a few unnecessary `ToArray()` calls
- update `TagHelperAttributeDescriptorComparer` comments
2015-05-20 22:01:00 -07:00
N. Taylor Mullen 1879ac6427 Add support for static usings.
- Added special cases to the using statement parser to understand `@using static Foo`.
- Added several unit tests to validate the static using structure.
- Modified existing import code generation tests to validate several static usings.

#44
2015-05-20 21:47:23 -07:00
Hisham Abdullah Bin Ateya ef0be7ca75 ASP.NET vNext -> ASP.NET 5 2015-05-21 06:23:44 +03: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
Kirthi Krishnamraju 030459b8ba React to aspnet/Configuration #195,#198 2015-05-20 19:34:27 -07:00
Kirthi Krishnamraju 9ba11ee04a React to aspnet/Configuration #195,#198 2015-05-20 18:43:12 -07:00
Kirthi Krishnamraju a38815de58 React to aspnet/Configuration #195,#198 2015-05-20 18:37:10 -07:00
Kirthi Krishnamraju af2c524352 React to aspnet/Configuration #195,#198 2015-05-20 18:20:35 -07:00
Kirthi Krishnamraju 56e563909d React to aspnet/Configuration #195,#198 2015-05-20 18:10:48 -07:00
Hisham Abdullah Bin Ateya 8382170178 Unnecessary using directives 2015-05-21 03:44:19 +03:00
Kirthi Krishnamraju 7e78374053 React to aspnet/Configuration #195,#198 2015-05-20 17:26:00 -07:00
Kirthi Krishnamraju 7ed0f2e55f React to aspnet\Configuration #195,#198 2015-05-20 17:20:32 -07:00
damianedwards 8deb0b1137 Merge branch 'hishamco-dev' into dev 2015-05-20 16:23:30 -07:00
damianedwards 5c7d811aa6 Fix the merge 2015-05-20 16:22:54 -07:00
damianedwards e5a0918054 Merge branch 'dev' of https://github.com/hishamco/Localization into hishamco-dev
Conflicts:
	src/Microsoft.AspNet.Localization/CustomRequestCultureStrategy.cs
	src/Microsoft.AspNet.Localization/IApplicationBuilderExtensions.cs
	src/Microsoft.Framework.Localization/ResourceManagerStringLocalizer.cs
2015-05-20 16:17:57 -07:00
Chris R 2168176149 #276 #277 Fix ini loading, read location from command line. 2015-05-20 16:10:58 -07:00
Kiran Challa 7ed6802bba Reacting to Caching api review changes 2015-05-20 15:15:12 -07:00
Kirthi Krishnamraju b75a855b98 React to aspnet/Congifuration #195,#198 2015-05-20 14:54:33 -07:00
damianedwards 4ba159afe7 Removed Moq from tests & enabled .NET Core
- Introduced AssemblyWrapper to enable testing
- Cleaned up properties on ResourceManagerStringLocalizer
- #15

Change "Strategy" to "Provider"
- #19
2015-05-20 14:41:52 -07:00
damianedwards 9384848cc7 Cache walk of the culture tree when building resource name list:
- #15
2015-05-20 14:41:36 -07:00
Ajay Bhargav Baaskaran aaa14cd36b More bug fix for #379 2015-05-20 13:55:12 -07:00
Chris R 5694f79af4 React to IRequestCookieFeature API change. 2015-05-20 12:51:38 -07:00
Chris R 69849cc37c #311 Move UseMiddleware to Http.Abstractions. 2015-05-20 12:42:54 -07:00
Troy Dai f6119d4856 Update references
Microsoft.Framework.NotNullAttribute.Internal =>
Microsoft.Framework.NotNullAttribute.Sources
2015-05-20 12:41:17 -07:00
Troy Dai e86f571011 Update dependency, react to Microsoft.Framework.NotNullAttribute.Sources 2015-05-20 12:38:31 -07:00
Troy Dai 1566f72063 Update TestHost's dependencies 2015-05-20 12:24:38 -07:00
Doug Bunting 75c1efeec7 Fix `target-dir-clean` target
- not currently cleaning in most cases
- typo in 16bb0df
2015-05-20 12:02:39 -07:00
Doug Bunting 0e296283f9 Address a round of nits
- clean up trailing curly braces (Java style)
 - affected lots of files touched for #89 fix
- a couple of trailing whitespace removals
2015-05-19 17:39:26 -07:00
Ajay Bhargav Baaskaran 47577fd936 [Fixes #379] Ignoring whitespace at the end of text tag 2015-05-19 17:21:28 -07:00
N. Taylor Mullen 58c0a36200 Add support for null conditional operators in implicit expressions.
- Added case in ImplicitExpression handling to understand question marks.
- text?. is special compared to text. because with text. we currently validate content after text. to determine if it's an expression or if it's a period. Now with ?. we always treat it as an expression because ?. is not a useful sentance of any kind.
- Added unit tests to validate new implicit expression handling
- Added runtime and design time code generation tests to validate null conditional operators.

#44
2015-05-19 16:34:08 -07:00
Ryan Nowak fa56df93c3 Fix #2407 - Part 1 - Make model binding behavior for [Required] compatible
with MVC5.

This change removes the behavior in model binding to validate values 'on
the wire' for requiredness instead of the looking at the model. This
restores the behavior of [Required] for model binding to the MVC5
semantics.
2015-05-19 15:57:56 -07:00
moozzyk 16bb0df055 Replacing `directory delete` with `rimraf` in the `target-dir-clean` target
`directory delete` fails for read-only files
2015-05-19 09:27:16 -07:00
Eilon Lipton 807a467429 Merge pull request #618 from marcusoftnet/osXSourceDnvmShInstructions
Added instructions on how to source dnvm.sh on OsX
2015-05-19 00:00:03 -07:00
Marcus Hammarberg ef07010f41 Added instructions on how to source dnvm.sh on OsX 2015-05-19 13:41:18 +07:00
N. Taylor Mullen b25bf01158 Add TagHelper support for unbound data- attributes.
- Involved updating the HtmlMarkupParser to properly separate data- attributes. Prior to this change `data-foo="abc @DateTime.Now def"` would involve 1 Span for `data-foo="abc` 1 Span for `@DateTime.Now` and 1 Span for `def"`. This was very unique behavior from an attribute standpoint (as far as Razor is concerned) and made it difficult for the TagHelper rewriting system to rewrite attributes. With this change it gets broken out as follows: `|data-foo="|abc| @DateTime.Now| def|"|`.
- Added unit tests to validate the various ways you can write unbound data- attributes.
- Updated the BasicTagHelpers codegeneration test to intermix some unbound data- attributes.

#342
2015-05-18 22:43:03 -07:00
N. Taylor Mullen 407a2ceae6 Remove unneeded NamespaceKeywordLength from AddImportCodeGenerator.
- This was completely unused outside of the AddImportCodeGenerator.
2015-05-18 17:21:50 -07:00
Ajay Bhargav Baaskaran 48e0b3261c [Fixes #2547] Fixed attribute value prefix with dynamic content being ignored 2015-05-18 17:15:38 -07:00
damianedwards b86af22c4d Fix inconsistent terminology name/key 2015-05-18 16:48:59 -07:00
N. Taylor Mullen a0813faa48 React to default hosting environment change.
- Default hosting environment was changed from Development to Production, modified EnvironmentTagHelper functional test.
2015-05-18 16:16:17 -07:00
Eilon Lipton 1af741519f Merge pull request #613 from thekane/typo
lowercase mono-complete package name
2015-05-18 16:14:47 -07:00
Kirthi Krishnamraju d298c9206e React to aspnet/Configuration #197 2015-05-18 15:35:41 -07:00
Suhas Joshi 170bad48c4 Fixed formatting 2015-05-18 15:26:46 -07:00
Suhas Joshi f8fa1eef0f Adding support to pin version and tag prerelease 2015-05-18 15:02:56 -07:00
Eilon Lipton 545af137a0 Merge pull request #484 from henkmollema/patch-1
Update README.md
2015-05-18 14:41:16 -07:00