Commit Graph

43822 Commits

Author SHA1 Message Date
Andrew Stanton-Nurse 8f18ff4423 react to corefxlabs changes (#464) (#465) 2017-05-19 15:06:46 -07:00
John Luo 62cd07d0a6 Target NETStandard2.0 and add WindowsServices back 2017-05-19 14:17:02 -07:00
Kiran Challa e3114dc6a4 Temporarily change tfm to netstandard1.3
Ideally we want to target netstandard2.0 but this conversion is blocked on the issue: https://github.com/dotnet/sdk/issues/1219
2017-05-19 14:00:08 -07:00
N. Taylor Mullen ebe8ab4612 Rename TagHelperBoundAttributeDescriptorBuilder => BoundAttributeDescriptorBuilder.
#1369
2017-05-19 12:44:07 -07:00
N. Taylor Mullen 9bc9f0ef05 Rename HtmlCase => HtmlConventions.
- Moved the invalid non-whitespace html character entries from the various builders into the new HtmlConventions class.
- Updated test file name.
2017-05-19 12:36:55 -07:00
Jass Bagga 9d38e2523c Add methods to TagBuilder (#6287)
Addresses #5689
2017-05-19 12:23:16 -07:00
Ryan Nowak 6b1117caa9 Make this type internal 2017-05-19 11:34:51 -07:00
N. Taylor Mullen 30231979e8 React to rel/15.3 display name changes. 2017-05-19 11:29:48 -07:00
N. Taylor Mullen 2eb443acb6 Merge branch 'rel/15.3' into dev
# Conflicts:
#	src/Microsoft.AspNetCore.Razor.Language/Legacy/CSharpCodeParser.cs
#	src/Microsoft.AspNetCore.Razor.Language/TagHelperDescriptorBuilder.cs
#	src/Microsoft.CodeAnalysis.Razor/ViewComponentTagHelperDescriptorFactory.cs
#	test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpDirectivesTest.cs
#	test/Microsoft.CodeAnalysis.Razor.Test/ViewComponentTagHelperDescriptorFactoryTest.cs
2017-05-19 11:23:00 -07:00
N. Taylor Mullen 5aababce6e Remove magic string keys from TH builders.
- Replaced the magic strings with extension methods that produce the same behavior as the string keys did.
- Added tests to validate new extension methods.

#1307
2017-05-19 11:15:38 -07:00
Jass Bagga 9aff0a67c1 Range support for FileResult(#6150)
Addresses #3702
2017-05-19 10:51:46 -07:00
Pavel Krymets 1c55ef5469 Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-19 10:28:23 -07:00
Ryan Nowak 315221c758 Re-enable some skipped tests
The underlying bug in this area has been fixed.
2017-05-19 10:18:17 -07:00
Ryan Nowak f4f291a7f2 PR feedback 2017-05-19 09:47:55 -07:00
Pawel Kadluczka 4bb9721d39 Adding strongly typed Invoke and On overloads
See: #311
2017-05-19 09:47:16 -07:00
Ryan Nowak 2a88d6efcf Fix aspnet/Mvc#6296 sanitize class and namespace
The new @namespace directive isn't sanitizing class and namespace names
when generating them. This means that a file-system-legal character like
'-' will show up in a class name, and that's not good.

Note that the old code paths (document classifiers) already had tests for
this and did it properly. It was only missing from @namespace.
2017-05-19 08:54:24 -07:00
Steve Sanderson ad645cbfe9 Remove build reference cycle caused by samples 2017-05-19 15:35:24 +01:00
Steve Sanderson d5483f3b64 Add workaround for 'publish' tests failing since 2.0 update 2017-05-19 15:16:49 +01:00
Steve Sanderson e1a0931ca0 Add reference to NodeServices and SpaServices 2017-05-19 15:07:04 +01:00
Steve Sanderson a4512873f9 Update templates' SpaServices dependency to 2.0.0-* 2017-05-19 14:57:13 +01:00
Steve Sanderson 9e59ed4bc8 Put back <IsPackable>false</IsPackable> on template csproj files 2017-05-19 12:12:52 +01:00
Steve Sanderson b091932e10 Temporarily remove templates from .sln to avoid dependency cycle 2017-05-19 12:00:22 +01:00
Steve Sanderson ac3ab36b3d Add JavaScriptServices to Universe 2017-05-19 11:38:50 +01:00
Steve Sanderson 42b88c15f2 Make all templates as consistent as possible with stock MVC Core 2.0 one 2017-05-19 11:36:17 +01:00
Steve Sanderson 3ee16a5ba5 Update templates to .NET Core 2.0 (but not yet own package refs until they are built in CI) 2017-05-19 09:28:33 +01:00
Chris R f258be61fd React to parser StringSegment changes 2017-05-18 21:57:13 -07:00
Nate McMaster 74239f08c0 Update TFM to netstandard2.0 2017-05-18 16:09:19 -07:00
Chris R 8580226a4b #51 Add AzureSiteExtension tag and package type 2017-05-18 15:28:56 -07:00
Pavel Krymets 34ab089e7b React to scheduler changes (#1846) 2017-05-18 14:49:48 -07:00
N. Taylor Mullen 4c98b7f8f3 Make ViewComponentTagHelper's display name nicer.
- Went from `__Generated__SomeViewComponentTagHelper` to `SomeViewComponentTagHelper`.
- Updated `TagHelperDescriptorBuilder` to allow setting of `DisplayName`.
- Added `TagHelperDescriptorBuilderTest` class to verify new `DisplayName` additions.
- Updated `ViewComponentTagHelperDescriptorFactoryTest` expectations.

#1251
2017-05-18 14:48:59 -07:00
John Luo 6e87b0f5eb Target netstandard2.0 TFM 2017-05-18 14:38:26 -07:00
John Luo 9313a02aa8 Remove duplication of parsing helper 2017-05-18 11:49:03 -07:00
Mardoxx ece5e748ad Minor documentation fix for SerializableError
ModelStateEntry -> ModelStateDictionary
2017-05-18 11:02:23 -07:00
Ryan Nowak c8614e9aa8 Fix build break due to Razor changes 2017-05-18 10:58:43 -07:00
N. Taylor Mullen 03f3975360 Allow directive string tokens to be colorized.
- Without a directive string token having a `SpanKind.Code` it cannot have any sort of C# coloring associated with it.
- Updated tests to reflect new `SpanKind` expectations.

#1269
2017-05-18 10:36:54 -07:00
Ryan Nowak e391ac7a3c Split options into ParserOptions and CodeGenerationOptions 2017-05-18 10:22:39 -07:00
Steve Sanderson 33cc640942 Remove obsolete 1.x APIs 2017-05-18 14:17:29 +01:00
Steve Sanderson baae62132b Remove projects and packages obsoleted in v2 2017-05-18 13:52:58 +01:00
Steve Sanderson 58fa07d4dc Build fixes following .NET Core 2.0 update 2017-05-18 13:45:13 +01:00
Steve Sanderson deaaa43e02 Fix SDK download URL for AppVeyor 2017-05-18 13:45:13 +01:00
Steve Sanderson 58fd9150b9 Update AppVeyor build to use .NET Core 2.0 Preview 1 2017-05-18 13:45:13 +01:00
Steve Sanderson 244deca019 Update libraries and samples to .NET Core 2.0 2017-05-18 13:45:13 +01:00
Steve Sanderson e081d5e091 Make build.sh consistent with other ASP.NET repos 2017-05-18 13:44:15 +01:00
Steve Sanderson 85e59efa21 Rename Angular2Spa to AngularSpa, plus rephrase "Angular 2" as "Angular" in many places 2017-05-18 13:40:58 +01:00
Steve Sanderson a74b7aea6b Bump template package versions to 0.9.3 for release 2017-05-18 12:10:15 +01:00
Ryan Nowak 5a1090f324 Api Cleanup for language services
Created internal + public versions of
- BlockKind
- SpanKind
- AcceptedCharacters

That way these types are only exposed through the VS apis and not
through the runtime API surface.

Also deleted RazorEditorParser. Yep. It's going to take significant work
to just port it to the language services assembly. Let's reevaluate this
when we get closer to the next foundational update.
2017-05-17 22:09:01 -07:00
Ryan Nowak 94aaa3db9e Configure xunit for better display 2017-05-17 20:31:37 -07:00
Ryan Nowak 811ea019a5 Fixes #1245 - Make TemplateCodeExtension public
This removes the hardcoding of an MVC type from Razor.
2017-05-17 20:25:06 -07:00
Smit Patel 09468daaef Revert "Disable SqlServer specific tests on netcoreapp2.0 on win7/2008"
This reverts commit 775847a1fa.
2017-05-17 18:08:46 -07:00
Cesar Blum Silveira f8a6433cd5 Fix flaky ResponseTests.FailedWritesResultInAbortedRequest. 2017-05-17 17:01:34 -07:00