Commit Graph

37701 Commits

Author SHA1 Message Date
David Peden ae7d0b9582 Make condition collection a first class citizen (#198) 2017-02-13 15:35:20 -08:00
Ryan Nowak 0dbf62196c Introduces RuntimeTarget and abstraction for APIs
This is a new abstraction that represents the api surface available for
codegen to target. Every kind of document should have an associated
RuntimeTarget or just use the default.

To prevent breakage, our DocumentClassifierBase class will provide a
default API set to implementors (like MVC).

I haven't fundamentally changed how codegen is done yet, I've just hidden
it behind a new abstraction. The RuntimeTarget now is also responsible for
selecting between design time and runtime.

The bulk of the noise here is from splitting a lot of the codegen stuff
into its own files.
2017-02-13 15:34:51 -08:00
Nate McMaster d84de39721 Replace makefile.shade and update test TFM to net452 2017-02-13 14:25:20 -08:00
Pawel Kadluczka 82cbda4a9a Making `OrTimeout` common (#193)
Making `OrTimeout` common
2017-02-13 12:38:34 -08:00
Doug Bunting 50abb557fc Bump test projects up to .NET 4.5.2
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
2017-02-13 12:18:55 -08:00
N. Taylor Mullen f861c23d1f Allow RazorSourceDocument to consume empty streams.
- Added tests to validate how encoding flows when used with empty streams in addition to their usability (not throwing).

#947
2017-02-13 12:11:38 -08:00
Pranav K 35edc299d7 Fix test failures
Fixes #5794
2017-02-13 12:03:10 -08:00
Ryan Nowak 2cdd84f437 Remove pranav's hack
This is part 1 of the right fix for the directive getting removed. This
pass has the wrong order, an it should be running sooner before the
directive is processed by the default processor.
2017-02-13 09:23:58 -08:00
SteveSandersonMS 3c2fd50e8f Add fields to dotnet new NuSpec file 2017-02-13 16:38:56 +00:00
Ryan Nowak af5648c1f7 Merge branch 'rel/1.1.2' into dev 2017-02-13 08:34:18 -08:00
Ryan Nowak 531c11df2a Fix 5594 - ExceptionHandled + Result is broken
This change ensures that setting ExceptionContext.Result will always
execute if set. The problem with 1.1.0 is that when we had a real short
circuit the wrong set of conditions were checked. I suspect that when you
set ExceptionFilter.Result and didn't short circuit that result filters
were also running (which is a bug).

Added a few tests that verify that the result doesn't trigger result
filters.

I did some general cleanup on this code path to make the state transitions
more clear.

No exception was thrown -> BeginResult
Exception was handled -> ExceptionHandled
Exception was not handled -> gets rethrown
2017-02-13 07:58:32 -08:00
SteveSandersonMS 04111db230 Add "dotnet new" nupkg as AppVeyor artifact 2017-02-13 15:48:19 +00:00
SteveSandersonMS 5a593d657d Bump generator-aspnetcore-spa to 0.8.5 2017-02-13 15:44:49 +00:00
SteveSandersonMS 5a67ca35be Add 'primaryOutputs' to dotnet new template.json files (and reorder JSON properties alphabetically) 2017-02-13 15:28:12 +00:00
SteveSandersonMS 72dabb3664 After building "dotnet new" package, put it in "artifacts" dir 2017-02-13 15:06:41 +00:00
SteveSandersonMS b7314359c8 When building "dotnet new" templates, always prebuild and include client-side 'dist' files for all templates, because dotnet new can't run arbitrary post-generation steps 2017-02-13 14:59:43 +00:00
SteveSandersonMS 1bf283877e More updates to "dotnet new" template to produce correct template.json values 2017-02-13 14:42:47 +00:00
SteveSandersonMS 1115a0aff5 Fix package.json files in Angular2Spa and AureliaSpa to have replaceable name (not hardcoded as Angular2Spa, etc.). Other templates were already set up like this. 2017-02-13 14:38:44 +00:00
SteveSandersonMS 70ad900f59 Further update dotnet new template builder to produce correct template.son contents 2017-02-13 14:05:36 +00:00
SteveSandersonMS fadc5d7b98 Update dotnet new template builder to match tooling preview 4 file structure 2017-02-13 13:12:44 +00:00
SteveSandersonMS 85dcc66723 Update the version of NuGet.exe used when building "dotnet new" templates to v4 (rc) 2017-02-13 13:07:24 +00:00
SteveSandersonMS f0825bec1d In generator-aspnetcore-spa, change internal name of Angular template from "angular-2" to "angular" to comply with suggested Angular branding 2017-02-13 13:05:59 +00:00
SteveSandersonMS 0ec6178617 Remove the Angular 2.0.2 template; define the 2.4.5+ template as the standard Angular one. Makes issue #665 no longer apply. 2017-02-13 12:55:48 +00:00
SteveSandersonMS 0f3e3ebb3b Fix TypeScript build error with updated lodash type definitions 2017-02-13 12:50:25 +00:00
Doug Bunting a5c7a7e491 Bring tests from fa710e6 (rel/1.0.3) into dev
- relates to #5595 which was a 1.0.x-only problem
2017-02-11 13:48:21 -08:00
Nate McMaster 3611adb894 Fix mispaired solution configurations 2017-02-10 19:35:36 -08:00
Sébastien Ros addb9a45cb Implementing PasswordOptions.RequiredUniqueChars (#1100)
Fixes #1097
2017-02-10 18:15:16 -08:00
Doug Bunting 4bddb5ff1b Small follow up to 8ee3d45
- rename `containsIndexers` to `doNotCache` in `ExpressionHelper`
2017-02-10 16:46:55 -08:00
David Fowler fc93c47789 Use Monitor.TryEnter/Exit in the Scan loop (#189)
- Avoids overlapping Scans
- Noops if dispose is being called at the same time
2017-02-10 16:34:31 -08:00
Pranav K f833b7a7c8 Bump up versions for RTM 2017-02-10 15:40:28 -08:00
Doug Bunting fc40985412 Merge branch 'rel/1.1.2' into dev 2017-02-10 14:55:32 -08:00
Doug Bunting 8ee3d45ef1 Do not cache expressions containing method calls
- #5655
- also make `ExpressionTextCache` more robust for defence-in-depth

nits:
- two `null` expression nodes are equal
- declare data properties as `TheoryData<T>`
2017-02-10 14:50:09 -08:00
jhkimnew 135aa12529 Remove MAX_PATH buffersize to support long file path (#69)
This is already reviewed by Pan.
2017-02-10 14:35:51 -08:00
Ryan Nowak d72cd469bd Add CodeAnalysis.Razor to the vsix
Also adds some error handling so you can know if something went wrong.
2017-02-10 13:02:52 -08:00
Pranav K 1652bf554f Workaround APICheck errors 2017-02-10 12:46:15 -08:00
Nate McMaster 053c77e10e Remove makefile.shade and sources.nuspec 2017-02-10 12:32:51 -08:00
Nate McMaster cbceba6fa8 Remove makefile.shade and sources.csproj 2017-02-10 12:30:06 -08:00
Kiran Challa 842d661ac2 [Fixes #5698] Regression in 1.1 model binding for model types without default constructor
- Also reverts "Check for default constructor in ComplexTypeModelBinderProvider" commit d09e921c4a.
2017-02-10 11:10:02 -08:00
Nate McMaster 5a444fa75c Cleanup project files and workaround, run tests on .NET Core 1.1 2017-02-10 08:26:17 -08:00
Pranav K bc3a741eee Use DocumentClassifierPassBase
Workaround issue with the model directive disappearing
2017-02-09 20:30:31 -08:00
Pranav K 8b03e9ef73 Make PageStart work
Move more API to RazorPageBase
2017-02-09 18:23:01 -08:00
Nate McMaster 1151cde469 Delete makefile.shade 2017-02-09 17:31:34 -08:00
Nate McMaster eb7d365ce5 Delete makefile.shade 2017-02-09 17:31:04 -08:00
Nate McMaster b254f42d19 Delete makefile.shade 2017-02-09 17:29:48 -08:00
Nate McMaster 00fe95253a Delete makefile.shade 2017-02-09 17:29:07 -08:00
Ryan Nowak 62420209a5 Fix a failing test 2017-02-09 16:19:34 -08:00
Nate McMaster b5779b41bf Re-add necessary target framework fallbacks 2017-02-09 16:00:47 -08:00
Ryan Nowak ea778b9b6d Implement a simple base for document classifiers
This should allow us to de-dupe a lot of code in MVC.
2017-02-09 15:22:33 -08:00
Nate McMaster 6eca0806af Remove workarounds 2017-02-09 14:30:27 -08:00
Nate McMaster eaadfb70eb Create NoVSIX solution configurations 2017-02-09 14:04:49 -08:00