Commit Graph

16425 Commits

Author SHA1 Message Date
John Luo f659f0acce Merge branch 'release/2.1' into release/2.2 2018-12-14 15:48:40 -08:00
dotnet-bot 97ee5cbcac Merge in 'release/2.1' changes 2018-12-14 22:50:26 +00:00
Justin Kotalik 68f0aff144 security to project ref (#4618) 2018-12-14 14:49:23 -08:00
Javier Calvarro Nelson 436b5461ad
[Components] Create a renderer to render components into HTML (#4463)
* Adds an HtmlRenderer to Microsoft.AspNetCore.Components
 * It renders the component into a list of strings.
 * It only handles synchronous rendering.
2018-12-14 21:28:05 +01:00
dotnet-bot 9b1be901d3 Merge in 'release/2.2' changes 2018-12-14 19:43:29 +00:00
Nate McMaster 6402a6a971
Fix aspnet/AspNetCore-Internal#1503 - ensure ANCM packages are code signed 2018-12-14 11:41:56 -08:00
Ryan Nowak a7f6154520 Workaround #4804
This is a workaround for a workaround that currently have in d16p1.

The Razor SDK maps all netcoreapp3.0 projects to MVC-2.1 at design time,
however this only really works if you have the Razor.Design package.
Since we have internal builds available that support MVC-3.0 we can just
manually hardcode the correct targeting of the project.
2018-12-14 11:15:32 -08:00
dotnet-bot 8b682dfe85 Merge in 'release/2.2' changes 2018-12-14 19:01:05 +00:00
James Newton-King 6dc28d8a4e
Update CORS middleware to use endpoint metadata (#4460) 2018-12-15 07:51:22 +13:00
Steve Sanderson 6187e628af
linking to some existing docs (#4592) 2018-12-14 18:50:57 +00:00
Steve Sanderson ec9676f51e
Make component parameter analyzer allow public getters. Imported from Blazor PR 1702. (#4594) 2018-12-14 18:50:45 +00:00
Nate McMaster feb641ddda
Merge branch 'release/2.1' into release/2.2 2018-12-14 09:44:15 -08:00
Steve Sanderson d30c407dd0
Support IServiceProviderFactory in WebAssemblyHostBuilder (imported from Blazor PR 1623) (#4785) 2018-12-14 17:37:14 +00:00
Chris Ross 54c1122582
Change HTTP projects to target netcoreapp3.0 #3754 (#4625) 2018-12-14 09:36:57 -08:00
Steve Sanderson 343208331d
Replace AssignToProperties with SetParameterProperties, which also clears unspecified parameter properties (imported from Blazor PR 1108) (#4797) 2018-12-14 17:07:07 +00:00
Steve Sanderson 3757908b14
Fallback for Components router (imported from Blazor PR 1534) (#4794) 2018-12-14 17:06:47 +00:00
Steve Sanderson e768a78c2b
Ensure ComponentBase async lifecycle methods return non-null task (imported from Blazor PR 1620) (#4790) 2018-12-14 17:06:30 +00:00
Steve Sanderson 8a9df6c873
HttpClientJsonExtensions better handling for failed requests (imported from Blazor PR 1660) (#4788) 2018-12-14 17:06:03 +00:00
Steve Sanderson 93127b39e8
Overload UriHelper to forceLoad the page (imported from Blazor PR 1154) (#4786) 2018-12-14 17:05:45 +00:00
Steve Sanderson 8fbb9fb0e6
Add support for binding decimal? double? float? long? int? bool? (imported from Blazor PR 1658) (#4600) 2018-12-14 17:05:22 +00:00
Steve Sanderson 1e404a5acf
fix for dispose (#4596) 2018-12-14 17:04:41 +00:00
Steve Sanderson 71bcac06ad
fixing type of property Detail based on standard. (#4595) 2018-12-14 17:04:26 +00:00
dotnet-bot 6133fa4dd6 Merge in 'release/2.1' changes 2018-12-14 16:37:44 +00:00
Nate McMaster 13ae0057fb
Replace .Sources package references with local code (#4801)
Replaces package references the following packages with local code:

Microsoft.AspNetCore.Certificates.Generation.Sources
Microsoft.Extensions.CopyOnWriteDictionary.Sources 
Microsoft.Extensions.ClosedGenericMatcher.Sources
Microsoft.Extensions.ObjectMethodExecutor.Sources
Microsoft.Extensions.PropertyActivator.Sources
Microsoft.Extensions.PropertyHelper.Sources
Microsoft.Extensions.RazorViews.Sources
Microsoft.Extensions.SecurityHelper.Sources
Microsoft.Extensions.StackTrace.Sources
Microsoft.Extensions.WebEncoders.Sources
2018-12-14 08:36:36 -08:00
Ryan Nowak 341636b05d Convert Razor to netcoreapp3.0 2018-12-14 08:17:27 -08:00
dotnet-bot 45dca6d8d4 Merge in 'release/2.2' changes 2018-12-14 09:22:46 +00:00
James Newton-King dd662ed2a7
Fix compiling Mvc.sln in 2.2 (#4955) 2018-12-14 22:21:44 +13:00
dotnet-bot 3b0d1253e1 Merge in 'release/2.2' changes 2018-12-14 08:57:43 +00:00
Nate McMaster 206db0558e
Update buildtools and add properties to skip IIS tests 2018-12-13 23:36:42 -08:00
Nate McMaster f0990ec531
Fix build issues with IIS integration projects
Changes:
* Ensure IIS managed and pkg projects build after the native projects
* Update projects to build test
* Update CI checks to build on macOS and Linux
* Use package baselines to manage ANCM packages
2018-12-13 22:53:31 -08:00
Nate McMaster 4998ad8622
Merge branch 'merge/release/2.1-to-release/2.2' into release/2.2 (#4619) 2018-12-13 22:24:21 -08:00
Justin Kotalik 6adfa32402
Merge branch 'release/2.1' into release/2.2 2018-12-13 22:12:19 -08:00
BrennanConroy 74dbb4ff4f
Register callback before start (#4581) 2018-12-13 21:30:48 -08:00
BrennanConroy 4950495dc4
Fix IE 11 handshake split (#4575) 2018-12-13 21:30:17 -08:00
Ajay Bhargav Baaskaran 59ada30959 Merge branch 'ajbaaska/merge-22-to-master' 2018-12-13 17:34:41 -08:00
Mikael Mengistu 42afc62acf
Update src/Middleware/CORS/test/FunctionalTests/CorsMiddlewareFunctionalTest.cs
Co-Authored-By: ajaybhargavb <ajaybhargavb@gmail.com>
2018-12-13 16:51:00 -08:00
Nate McMaster 538af1091c
Update src/Middleware/CORS/test/FunctionalTests/CorsMiddlewareFunctionalTest.cs
Co-Authored-By: ajaybhargavb <ajaybhargavb@gmail.com>
2018-12-13 16:39:37 -08:00
Nate McMaster 6e3e48d456
Update src/Middleware/CORS/test/FunctionalTests/CorsMiddlewareFunctionalTest.cs
Co-Authored-By: ajaybhargavb <ajaybhargavb@gmail.com>
2018-12-13 16:39:27 -08:00
Ben Adams b2731d652d .IndexOf(...) >= 0 to .Contains(...) (#4688) 2018-12-14 12:40:09 +13:00
Cédric Luthi 4a9a96cef7 Make the ResultStatusCodes property null-resettable 2018-12-13 14:09:21 -08:00
Cédric Luthi 74d900ea56 Add setter to HealthCheckOptions.ResultStatusCodes
All other properties (`Predicate`, `ResponseWriter` and `AllowCachingResponses`) have a setter but `ResultStatusCodes` doesn't.

Without a setter, reusing the same status to http status code mapping is impossible and leads to duplicate code that looks like this:

```csharp
private static void ConfigureHealthChecks(IApplicationBuilder app, HealthCheckServiceOptions options)
{
    app.UseHealthChecks("/health", new HealthCheckOptions
    {
        ResultStatusCodes =
        {
            [HealthStatus.Healthy] = StatusCodes.Status200OK,
            [HealthStatus.Degraded] = StatusCodes.Status400BadRequest,
            [HealthStatus.Unhealthy] = StatusCodes.Status503ServiceUnavailable
        }
    });
    foreach (var name in options.Registrations.Select(e => e.Name))
    {
        app.UseHealthChecks($"/health/{name}", new HealthCheckOptions
        {
            Predicate = registration => registration.Name == name,
            ResultStatusCodes =
            {
                [HealthStatus.Healthy] = StatusCodes.Status200OK,
                [HealthStatus.Degraded] = StatusCodes.Status400BadRequest,
                [HealthStatus.Unhealthy] = StatusCodes.Status503ServiceUnavailable
            }
        });
    }
}
```

With a setter, this code could be rewritten in a *don't repeat yourself* (DRY) way:

```csharp
private static void ConfigureHealthChecks(IApplicationBuilder app, HealthCheckServiceOptions options)
{
    var resultStatusCodes = new Dictionary<HealthStatus, int>
    {
        [HealthStatus.Healthy] = StatusCodes.Status200OK,
        [HealthStatus.Degraded] = StatusCodes.Status400BadRequest,
        [HealthStatus.Unhealthy] = StatusCodes.Status503ServiceUnavailable
    };
    app.UseHealthChecks("/health", new HealthCheckOptions
    {
        ResultStatusCodes = resultStatusCodes
    });
    foreach (var name in options.Registrations.Select(e => e.Name))
    {
        app.UseHealthChecks($"/health/{name}", new HealthCheckOptions
        {
            Predicate = registration => registration.Name == name,
            ResultStatusCodes = resultStatusCodes
        });
    }
}
```
2018-12-13 14:09:21 -08:00
Ajay Bhargav Baaskaran 0ecc6bc0b5 Merge branch 'release/2.2' into ajbaaska/merge-22-to-master 2018-12-13 12:06:48 -08:00
dotnet-bot 345fee0149 Merge in 'release/2.1' changes 2018-12-13 19:40:20 +00:00
John Luo a026e7a4e7
Convert MetaPackages to Reference and move to DefauldBuilder folder (#4687)
* Convert ServerTests to Reference and move to Server folder

* Fix NU1105
2018-12-13 11:39:15 -08:00
Kahbazi a8ae16e0cb Change JwtBearerOptions.Audience comment (#4646) 2018-12-13 11:08:12 +03:30
John Luo 6d2f2483d2
Remove obsolete session apis (#4609)
* Remove obsolete session apis

* Add breaking changes json updates
2018-12-12 17:35:40 -08:00
dotnet-bot f5b36aa8f2 Merge in 'release/2.1' changes 2018-12-13 01:15:45 +00:00
Chris Ross a3c99028b2
Fix HttpSys Caching_SendFileWithFullContentLength_Cached test (#4630) 2018-12-12 17:14:46 -08:00
dotnet-bot f1bfecfa03 Merge in 'release/2.2' changes 2018-12-12 22:37:18 +00:00
Mikael Mengistu 9e76bec6e1
Fix CORS Functional Tests (#4610) 2018-12-12 14:36:14 -08:00
dotnet-bot e8c63f6cf9 Merge in 'release/2.1' changes 2018-12-12 22:00:56 +00:00
Justin Kotalik 429719b91d
Make IISIntegration use Reference instead of PackageReference (and reactionary work) (#4311) 2018-12-12 16:59:44 -05:00
Chris Ross 49d5525352
Change Hosting projects to target netcoreapp3.0 #3754 (#4611) 2018-12-12 13:34:57 -08:00
James Newton-King ac1b5c58b0
Fix NU1105 errors in HttpAbstractions.sln (#4608) 2018-12-13 10:15:01 +13:00
dotnet-bot 6de24d6d2c Merge in 'release/2.2' changes 2018-12-12 21:00:13 +00:00
Ajay Bhargav Baaskaran ad3835c3e2
Removed unnecessary projects (#4586) (#4612) 2018-12-12 12:59:04 -08:00
Chris Ross a08f4b5a83
ResponseCompression DisposeAsync BasicMiddleware/#247 (#4604) 2018-12-12 11:32:36 -08:00
dotnet-bot 3a21d78ce6 Merge in 'release/2.1' changes 2018-12-12 18:42:13 +00:00
Ajay Bhargav Baaskaran 98f2973880
Removed unnecessary projects (#4586) 2018-12-12 10:41:06 -08:00
Justin Kotalik 226f2c0c2c
Adds MinimumReadThreshold to StreamPipeReader. (#4372) 2018-12-12 13:09:15 -05:00
Chris Ross 12966c63a6
Change DataProtection projects to target netcoreapp3.0 #3754 (#4473) 2018-12-12 10:04:36 -08:00
Chris Ross 6d442c1e3d
Upgrade Kestrel to target netcoreapp3.0 #3754 (#4405) 2018-12-12 08:16:00 -08:00
Nate McMaster 87629bbad9
Update Middleware.sln and Kestrel.sln to workaround NU1105 error 2018-12-11 18:19:36 -08:00
Nate McMaster d12827e609
Merge branch 'release/2.2' 2018-12-11 18:04:58 -08:00
Kahbazi 19276ce01c Remove nameof from log events 2018-12-12 07:19:32 +05:30
Mikael Mengistu ff385f71c5
Check connectionState in stop so we don't null ref (#4557) 2018-12-11 16:22:06 -08:00
dotnet-bot d11a6c823f Merge in 'release/2.2' changes 2018-12-12 00:14:21 +00:00
dotnet-maestro-bot 38785d0be9 [automated] Merge branch 'release/2.1' => 'release/2.2' (#4577)
* Workaround problems when opening solution files in Visual Studio (#4569)

Changes:

* Condense Routing.sln into HttpAbstractions.sln
* Workaround NU1105 by adding all ProjectReferences to the .sln
* Workaround exceptions in the ReferencesHostBridge by moving Reference items to a temporary item group
* Add a 'startvs.cmd' script for launching VS with the right env variables
* Remove RangeHelper test project
* Move RangeHelper tests into StaticFiles.Tests and add target for NPM restore

* Convert Session to use Reference and move to Middleware folder (#4576)

* Add RoutingSample.Web to HttpAbstractions.sln
2018-12-11 16:13:20 -08:00
Nate McMaster 0f9ad16b09
Add 2.1.7 package archive baselines 2018-12-11 15:58:50 -08:00
Chris Ross 97cdbfb1a1
Change middleware projects to target netcoreapp3.0 #3754 (#4472) 2018-12-11 15:41:36 -08:00
dotnet-bot 156f1e823b Merge in 'release/2.1' changes 2018-12-11 22:59:22 +00:00
Nate McMaster 719ff08409
Add RoutingSample.Web to HttpAbstractions.sln 2018-12-11 14:58:05 -08:00
dotnet-bot 8876e90846 Merge in 'release/2.1' changes 2018-12-11 22:57:48 +00:00
John Luo 3acdfb3d26
Convert Session to use Reference and move to Middleware folder (#4576) 2018-12-11 14:56:42 -08:00
dotnet-bot 8825a726c1 Merge in 'release/2.1' changes 2018-12-11 22:06:26 +00:00
Nate McMaster 5151e7b1ed
Workaround problems when opening solution files in Visual Studio (#4569)
Changes:

* Condense Routing.sln into HttpAbstractions.sln
* Workaround NU1105 by adding all ProjectReferences to the .sln
* Workaround exceptions in the ReferencesHostBridge by moving Reference items to a temporary item group
* Add a 'startvs.cmd' script for launching VS with the right env variables
* Remove RangeHelper test project
* Move RangeHelper tests into StaticFiles.Tests and add target for NPM restore
2018-12-11 14:05:21 -08:00
Chris Ross 7fdd930f50
Change IIS projects to target netcoreapp3.0 (#4371)
* Change IIS projects to target netcoreapp3.0 #3754
2018-12-11 13:46:46 -08:00
Chris Ross 99901fbad5
Move Identity.Core and Identity.Stores to NetCoreApp3.0 #3754 (#4523) 2018-12-11 10:23:01 -08:00
Martin Perry f8410b491b Merge 2018-12-11 14:10:48 +00:00
Martin Perry 4dd230d086 Resolve conflicts 2018-12-11 13:34:15 +00:00
Martin Perry d887b74104 Pick 2018-12-11 12:39:18 +00:00
Martin Perry b7f106eaf1 Update React-Redux client app to use TypeScript instead of JavaScript 2018-12-11 12:29:14 +00:00
Steve Sanderson 24840e3465
Razor Components template (#4333) 2018-12-11 11:40:42 +00:00
James Newton-King 0c9eda1f4a
Update templates to use endpoint routing (#4500) 2018-12-11 18:24:14 +13:00
James Newton-King c6fa808a91
Change consumes behavior to ignore requests with no content type (#4459) 2018-12-11 17:55:20 +13:00
Nate McMaster dc718f6602
Merge branch 'merge/release/2.2-to-master' 2018-12-10 18:18:52 -08:00
Nate McMaster 790ae47055
Merge branch 'release/2.2' 2018-12-10 17:41:14 -08:00
John Luo 97d918e03a
Do 0-byte reads on MacOS (#4560)
Underlying corefx issue has been fixed
2018-12-10 17:25:18 -08:00
Ryan Nowak 61d33bed27 Fix failing routing tests 2018-12-10 17:17:58 -08:00
dotnet-bot 985d49c566 Merge in 'release/2.2' changes 2018-12-11 00:44:52 +00:00
Nate McMaster 2c4d586809
Merge 'release/2.1' into release/2.2
Co-authored-by: Justin Kotalik <jukotali@microsoft.com>
2018-12-10 15:56:42 -08:00
Artak Mkrtchyan 00fb0d6c14 Updated some depdencies 2018-12-10 15:36:07 -08:00
John Luo 644d8470f7
Crossgen linux-arm shared framework (#4009)
Also disambiguate between different corssgen executables
2018-12-10 10:56:39 -08:00
Adrian D. Alvarez 838bb11c1e Adjust font-weight in diagnostics error page to make it easier to read (#4534) 2018-12-10 08:35:37 -08:00
Tornike Kharaishvili d73d95f1d4 CookieSecurePolicy documentation update (#3670) (#4542) 2018-12-09 20:29:40 -08:00
Pranav K 926034ac4e
Re-enable extensibility points for ExpressionHelper.GetExpressionText, ExpressionMetadataProvider.FromStringExpression (#4494)
* Re-enable extensibility points for ExpressionHelper.GetExpressionText, ExpressionMetadataProvider.FromStringExpression

Fixes https://github.com/aspnet/Mvc/issues/8724
2018-12-08 13:54:05 +05:30
Pranav K 027bf336da
Add event names for logs (#6818) (#4495)
* Add event names for logs (#6818)
2018-12-08 13:00:16 +05:30
dotnet-bot 6169f4dd59 Merge in 'release/2.1' changes 2018-12-07 23:46:01 +00:00
Mikael Mengistu 4c5debd6ea
Skip Autobahn test (#4488) 2018-12-07 15:44:59 -08:00
Nate McMaster c612eb8730
Merge branch 'release/2.2' 2018-12-07 14:50:17 -08:00
dotnet-bot 4b9a884a35 Merge in 'release/2.1' changes 2018-12-07 22:31:49 +00:00
Justin Kotalik 5f843f223e
[2.1] Make Antiforgery, ResponseCaching, StaticFiles, and Cors use project ref (#4484) 2018-12-07 14:30:50 -08:00
dotnet-bot 5e9b60a573 Merge in 'release/2.2' changes 2018-12-07 21:49:04 +00:00
Nate McMaster 5017afa0ad
Merge branch 'release/2.1' to release/2.2 2018-12-07 12:45:42 -08:00
dotnet-bot 212f701d31 Merge in 'release/2.2' changes 2018-12-07 20:22:15 +00:00
dotnet-bot ab8039e2dc Merge in 'release/2.1' changes 2018-12-07 20:21:15 +00:00
dotnet-maestro-bot c331a7be14 Rewrite HttpSys response caching tests #1475 (#4486) (#4511) 2018-12-07 12:21:12 -08:00
Nate McMaster df3e4b98a2
Backport infrastructure cleanup to share sources and project references (#4513) 2018-12-07 12:20:13 -08:00
Nate McMaster 85e2147ff0
Merge branch 'release/2.2' 2018-12-07 11:11:44 -08:00
Chris Ross f1aacdbaa8
Remove Microsoft.Owin.Security.Interop and Microsoft.AspNet.Identity.AspNetCoreCompat (#4479) 2018-12-07 09:59:36 -08:00
dotnet-bot 84b41b6f52 Merge in 'release/2.1' changes 2018-12-07 17:22:37 +00:00
Chris Ross ae11d5d62e
Rewrite HttpSys response caching tests #1475 (#4486) 2018-12-07 09:21:33 -08:00
Joni 60d9615f00 Add space after period to the routing log message 2018-12-07 08:16:03 -08:00
Pranav K 8a0fa732b0 Make RequiredAttributeAdapter public
Fixes https://github.com/aspnet/Mvc/issues/8744
2018-12-07 17:49:10 +05:30
dotnet-bot 44f04c8b4d Merge in 'release/2.2' changes 2018-12-07 01:43:13 +00:00
Nate McMaster 569a14ecb8
Merge branch 'release/2.1' into release/2.2 2018-12-06 17:09:03 -08:00
BrennanConroy f52882b6aa Changing streaming things 2018-12-06 15:57:50 -08:00
DylanDmitri 34bb352189 streaming from client to server 2018-12-06 15:57:50 -08:00
Pavel Krymets 24e17eadca
Add a flag to set current directory in ANCM InProc (#4369) 2018-12-06 15:19:47 -08:00
James Newton-King 50ea144c57
Update MVC dependencies (#4477) 2018-12-07 11:01:47 +13:00
dotnet-bot ab620a2a0d Merge in 'release/2.1' changes 2018-12-06 20:22:15 +00:00
Nate McMaster 5c2a701b38
Remove conditional targetframeworks from routing projects (#4476) 2018-12-06 12:21:05 -08:00
Ryan Nowak e3773b6383 Remove Razor tooling projects
Removes the Razor compiler/tooling projects from this repo
2018-12-06 07:47:00 -08:00
James Newton-King a07be53033
Rename UseEndpointRouting to UseRouting (#4416) 2018-12-06 21:26:10 +13:00
dotnet-bot dfb6f0941d Merge in 'release/2.1' changes 2018-12-06 06:15:42 +00:00
Nate McMaster 50bea05918
Refactor Routing to use ProjectReference and move into src/Http folder (#4441)
Changes:

* Stop producing Microsoft.AspNetCore.Routing.DecisionTree.Sources. I could not find any usages outside of the Microsoft.AspNetCore.Routing assembly, so I've moved this to be a subfolder of code in the Microsoft.AspNetCore.Routing project.
* Stop building src/Routing as a submodule. Use ProjectReference instead
* Move projects from src/Routing into src/Http/Routing/ and src/Http/Routing.Abstractions/
* Update package baselines and dependencies to support building routing projects and samples
2018-12-05 22:14:22 -08:00
Nate McMaster 00cf0a4d7d Fix compiler errors 2018-12-05 18:10:53 -08:00
dotnet-bot 5fbec5fbb3 Merge in 'release/2.1' changes 2018-12-06 01:02:05 +00:00
Justin Kotalik 0588b13f5b Fix 2.1 build issues and remove obsolete build code (#4443)
- Stop producing the 'Universe' lineup package
- Removes all PackageLineup code
- Use full msbuild on Windows
- Fix invalid reference to internal.aspnetcore.sdk in 2.1.x
- Fix shared folder references for PackageArchive task.
2018-12-05 17:01:02 -08:00
Doug Bunting 929d7f3306 Obsolete old `CompatibilityVersion` values
- #7156 part 1 of ?
- add `CompatibilityVersion.Version_3_0` and make it the default
- remove tests of old versions
  - also remove `CompatibilityVersion.Version_2_x` uses outside src/Mvc
  - for functional tests of legacy routing, use `MvcOptions.EnableEndpointRouting` to control behaviour
  - rename `StartupWith2xCompat...` classes to `StartupWithoutEndpointRouting`
- clean up comments mentioning `[Obsolete]` `CompatibilityVersion` values
  - many of the affected options will be removed in subsequent PRs but this cleanup helps when searching entire repo
- correct `<value>` comments in `ApiBehaviorOptions`

nits:
- take VS suggestions in changed files
- remove src/SiteExtensions/global.json and let file in repo root "win"
- fix a few grammar errors VS or the spell checker noticed
- move `<value>` elements before `<remarks>` for consistency
  - was undoing unintentional changes and noticed the inconsistency in a couple of additional files
2018-12-05 16:46:46 -08:00
dotnet-bot 19511ed4e9 Merge in 'release/2.2' changes 2018-12-06 00:30:18 +00:00
Nate McMaster c430342dee
Ensure Internal.AspNetCore.Sdk does not end up in the LZMA (#4448) 2018-12-05 16:29:12 -08:00
Nate McMaster 7fad55f6b6
Revert "Update basic middleware projects to netcoreapp3.0"
This partially reverts commit e0bbda07fc.
2018-12-05 16:08:54 -08:00
Nate McMaster 3e571eb519
Temporarily revert Microsoft.AspNetCore.HttpOverrides to netstandard2.0 (#4446)
We're running into issues getting IIS tests on netcoreapp3.0. This unblocks the build and gives us more time to work on #4371
2018-12-05 16:01:14 -08:00
BrennanConroy a08dc959c0
Linux needs correct file path casing (#4442) 2018-12-05 15:28:43 -08:00
BrennanConroy c487f019f5
Collect transport fallback errors to provide better errors (#4293) 2018-12-05 14:27:07 -08:00
Sébastien Ros a51ff6e6ad
Updating benchmark apps for netcoreapp3.0 (#4433) 2018-12-05 12:42:14 -08:00
Justin Kotalik e9c4c935f6
Remove FlushResultCancellationTests as it isn't relevant (#4435) 2018-12-05 12:05:05 -08:00
BrennanConroy 63e2beb749
Fix benchmarks in SignalR (#4436) 2018-12-05 11:41:43 -08:00
Doug Bunting 6a8d7dc12c
Fix Mvc test failures (#4415)
* Regenerate Mvc functional test baselines
  - whitespace likely changed due to a recent Razor change (but there've been so many!)

* Don't trim response content in `RazorPagesTest.Page_SimpleForms_RenderAntiforgery()`
  - was inconsistent with generated baseline and `Trim()` in similar tests is generally not needed or correct

* Skip test method causing remaining two src/Mvc failures
  - #4417 opened to restore these tests
2018-12-05 11:30:09 -08:00
dotnet-bot b19997eff8 Merge in 'release/2.2' changes 2018-12-05 18:12:44 +00:00
Justin Kotalik 0646bb98b0
Call Flush With fMoreData=false when response isn't allowed to have body (#4403) 2018-12-05 10:11:36 -08:00
Nate McMaster c95ee2b051
Merge branch 'master' into namc/merge-2.2 2018-12-05 10:09:38 -08:00
Nate McMaster cbecf84bd5
Revert "Remove Razor tooling projects" (#4423)
This reverts commit 3cfa6c0526 (aspnet/AspNetCore#4411) which broke the build.
2018-12-05 10:07:49 -08:00
Nate McMaster e0bbda07fc
Update basic middleware projects to netcoreapp3.0 2018-12-05 10:06:29 -08:00
Andrew Stanton-Nurse 1b9e655536 Add SignalR Daily Tests scripts (#4336) 2018-12-05 10:04:23 -08:00
Nate McMaster 4c6bbe5a01
Merge the master branch of aspnet/Identity 2018-12-05 09:00:11 -08:00
Nate McMaster e9fb6d2db6
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 4a717c8563
2018-12-05 08:59:26 -08:00
Nate McMaster 82184e9710
Merge the master branch of aspnet/Localization 2018-12-05 08:56:31 -08:00
Nate McMaster 08e243f982
Merge the master branch of aspnet/BasicMiddleware 2018-12-05 08:55:51 -08:00
Nate McMaster 62f9655a2f
Merge branch 'release/2.2' 2018-12-05 08:54:38 -08:00
Nate McMaster be3b66d1d1
Revert "Remove Razor tooling projects"
This reverts commit 3cfa6c0526.
2018-12-05 08:40:49 -08:00
Pavel Krymets 2e56f056d0
Re-enable IISIntegration tests (#4377) 2018-12-05 08:24:12 -08:00
Steve Sanderson 5c1fbe1af7
Run Components on netcoreapp3.0 (#4391) 2018-12-05 14:46:26 +00:00
Ryan Nowak 3cfa6c0526 Remove Razor tooling projects
Removes the Razor compiler/tooling projects from this repo
2018-12-04 19:58:37 -08:00
Hans van Bakel 98e5c8c0b3 Update OpenIdConnectOptions.cs (#4408) 2018-12-04 18:24:10 -08:00
dotnet-bot 69a0641c53 Merge in 'release/2.2' changes 2018-12-05 02:13:55 +00:00
Stephen Halter f6e691f26a Move InMemory.FunctionalTests to own TestGroup
It looks like some shutdown timeouts are cause by CPU starvation
2018-12-04 17:54:42 -08:00
dotnet-bot 9915395424 Merge in 'release/2.1' changes 2018-12-05 00:45:13 +00:00
Justin Kotalik 736083c2f2
Make HttpSys use ProjectReference and move HttpSys into Servers folder (#4335) 2018-12-04 16:44:07 -08:00
Nate McMaster 495e4fe4f7
Merge branch 'release/2.2' 2018-12-04 16:03:47 -08:00
N. Taylor Mullen c0b74d916c Add build.cmd to Mvc 2018-12-04 15:35:30 -08:00
N. Taylor Mullen 0728754d08 Update Mvc slns to be builidlable. 2018-12-04 15:35:30 -08:00
dotnet-bot b0826ab179 Merge in 'release/2.1' changes 2018-12-04 23:31:58 +00:00
Chris R 7bb42126bc Upgrade HttpSys to target netcoreapp3.0 #3754 2018-12-04 15:13:44 -08:00
James Newton-King 6fc7e532f1
Update MVC dependencies (#4395) 2018-12-05 12:04:47 +13:00
Nate McMaster 11fdf9b50a
Fix bad merge of .csproj and update Middleware.sln 2018-12-04 14:59:11 -08:00
Nate McMaster 2c376ebc0c
Merge the release/2.2 branch of aspnet/Identity 2018-12-04 14:49:11 -08:00
Nate McMaster c5bc96d601
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 4b3d8e5106
2018-12-04 14:45:54 -08:00
Nate McMaster e261ca5426
Merge release/2.2 from aspnet/Localization 2018-12-04 14:25:25 -08:00
Nate McMaster 7e823a05ec
Merge release/2.2 from aspnet/BasicMiddleware 2018-12-04 14:24:42 -08:00
Nate McMaster 1be2b427de
Merge branch 'release/2.1' into release/2.2 2018-12-04 14:23:24 -08:00
Nate McMaster b140962a5f
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 268290a8b5
2018-12-04 14:13:34 -08:00
Nate McMaster 44ec52ebfe
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 2d3ad1cb0f
2018-12-04 14:10:25 -08:00
Nate McMaster ec41d9bcf6
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in c283dfb56c
2018-12-04 14:00:42 -08:00
Nate McMaster d8c434febe
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in de1579bdda
2018-12-04 13:57:22 -08:00
James Newton-King e310ccac7b
Update static files sample to use AuthZ middleware (#4279) 2018-12-05 06:43:39 +13:00
Chris R fef468aad1 Change Antiforgery projects to target netcoreapp3.0 #4343 2018-12-04 09:37:30 -08:00
Victorio Berra 7e7018608d Fix spelling in AzureAppServicesHostingStartup.cs (#4390) 2018-12-04 09:13:53 -08:00
Nate McMaster 61e9b3eae9
Merge Identity, Localization and BasicMiddleware 2018-12-04 09:02:03 -08:00
Steve Sanderson c7d6364900 Enable src/Components to build (#4367)
Fix aspnet/AspNetCore-Internal#1443
2018-12-03 16:38:28 -08:00
Javier Calvarro Nelson f6b4d65218
[Diagnostics] Fix Diagnostics middleware errors (#4271)
Removes setting two forbidden headers.
2018-12-04 01:18:31 +01:00
BrennanConroy 361eaf0b87
Use npm ci (#4378) 2018-12-03 15:55:28 -08:00
Nate McMaster a6b5bb16fd
Merge source code from aspnet/Identity 2018-12-03 15:54:12 -08:00
Nate McMaster c6459614c7
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in fa3cfd08eb
2018-12-03 15:52:23 -08:00
James Newton-King f157b78d93 MVC reaction to RoutePattern required values 2018-12-04 12:14:35 +13:00
James Newton-King 96cd055e05 Support RoutePattern required values in matcher and link generator 2018-12-04 12:14:35 +13:00
dotnet-bot f89d98f241 Merge in 'release/2.1' changes 2018-12-03 22:06:28 +00:00
Martin Stenhoff 142b6a73ec Fix links in JavaScriptServices README.md (#4361) 2018-12-03 12:54:14 -08:00
Tugberk Ugurlu b0c6bca441 Update Antiforgery README (#4353) 2018-12-03 12:53:16 -08:00
Chris R 81bc0b1ca8 Fix test asset casing in Hosting funcational tests 2018-12-03 12:50:48 -08:00
dotnet-bot 342d55bef6 Merge in 'release/2.2' changes 2018-12-03 20:13:50 +00:00
James Newton-King b2b16253af
Add routing to web host (#4358) 2018-12-04 08:22:23 +13:00
Chris R d73e3b20b8 Merge remote-tracking branch 'origin/release/2.1' into tratcher/testhost/2.2
# Conflicts:
#	eng/targets/Packaging.targets
#	src/Hosting/TestHost/test/ClientHandlerTests.cs
#	src/Middleware/WebSockets/test/ConformanceTests/Microsoft.AspNetCore.WebSockets.ConformanceTests.csproj
2018-12-03 09:26:57 -08:00
Chris R d852e10293 Hosting/#839 UseConfiguration with a config section 2018-12-03 09:09:09 -08:00
Chris R c0381de983 Change Middleware projects to target netcoreapp3.0 #3754 2018-12-03 09:06:00 -08:00
BrennanConroy 80ae51ead8
Rename Json protocol to NewtonsoftJson (#4319) 2018-12-03 08:59:44 -08:00
BrennanConroy d10205f309
Fix 3.0 benchmarks (#4323) 2018-12-03 08:58:15 -08:00
dotnet-bot 3a74f325e2 Merge in 'release/2.1' changes 2018-12-01 00:43:26 +00:00
Mikael Mengistu d9a953dfeb
Autobahn test suite fix(#4302) 2018-11-30 16:42:23 -08:00
Chris R 355982c92b Change StaticFiles projects to target netcoreapp3.0 #3754 2018-11-30 16:12:19 -08:00
Pavel Krymets 03d3e1868e
Make IISDefaults.AuthenticationScheme const (#4342) 2018-11-30 15:23:02 -08:00
Nate McMaster 7078102961
Update targets and projects to build Localization projects 2018-11-30 15:13:05 -08:00
Nate McMaster 7e0f561425
Merge source code from aspnet/Localization 2018-11-30 15:11:31 -08:00
Nate McMaster d93796fdef
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 0bcac31dd7
2018-11-30 14:58:51 -08:00
Nate McMaster 04fc8ae493
Update targets and projects to build BasicMiddleware projects 2018-11-30 14:44:17 -08:00
Nate McMaster 0843320e3e
Merge source code from aspnet/BasicMiddleware 2018-11-30 14:42:07 -08:00
Chris R 2b8c3db3b0 Remove obsolete ServerAddress type Kestrel/#2988 2018-11-30 14:28:52 -08:00
Nate McMaster 2f2cec4ace
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 1de636cd18
2018-11-30 14:21:50 -08:00
Chris R 30c8e4b1b0 #3754 Update projects and packages to netcoreapp3.0 2018-11-30 11:52:45 -08:00
Nate McMaster def3dc0f2b
Merge branch 'release/2.2' 2018-11-30 11:15:26 -08:00
Justin Kotalik c06a06d16b
Add StreamPipeReader (#4182) 2018-11-30 09:55:45 -08:00
dotnet-bot 1f8e00993c Merge in 'release/2.1' changes 2018-11-30 17:53:17 +00:00
dotnet-bot ebe1bea714 Merge in 'release/2.2' changes 2018-11-29 23:05:26 +00:00
BrennanConroy 7dc01b6928 Fix 2.2 benchmarks (#4322) 2018-11-29 15:04:24 -08:00
N. Taylor Mullen 0326abe530 Use MVC 2.1 at design time for Razor 3.0 projects. (#4324)
- When we detect a design time build we force tooling to use 2.1
- In runtime builds (i.e. rzc) it still uses the 3.0 configuration for 3.0 apps.
2018-11-29 12:41:29 -08:00
David Fowler 1b46549ec4
Specify invocation ids are unique per connection (#4316)
Make it clear that invocation ids are unique per connection
2018-11-29 10:13:09 -08:00
dotnet-bot da7f95dfa2 Merge in 'release/2.2' changes 2018-11-29 17:26:57 +00:00
BrennanConroy e435fd1d23
Fix accidental skipped tests (#4301) 2018-11-29 09:25:52 -08:00
Nate McMaster 26dfce1f3c
Disable building src/Components and fix its code signing configuration (#4299) 2018-11-28 15:29:25 -08:00
Ryan Brandenburg 8a37389a9f Fix RepositoryUrl for some repos 2018-11-28 14:54:47 -08:00
Pavel Krymets f077da5a8b
Add shared runtime items in a target (#4297) 2018-11-28 13:41:32 -08:00
Ajay Bhargav Baaskaran 31f53d44b5 Refactored Html parser - part 1 2018-11-28 13:28:14 -08:00
Ajay Bhargav Baaskaran 46242b307c
Added build scripts for Razor (#4298) 2018-11-28 13:27:41 -08:00
Ryan Nowak 1aace2b6c7 Fix DevDiv 736427
When a user builds a 2.1 or 2.2 project with a 3.0 they can get an error
due to invalid command line options from rzc. What happens is that the
3.0 tasks (which are a singleton) are talking to the 2.X build tool
(which is NOT a singleton).

Recently some changes were make to the 3.0 tasks which caused this bug
because it did not properly accomodate downlevel versions of rzc. We
have an integration test for this scenario for but the regression was
not detected, so obviously something is wrong with the test setup. I'll
investigate that separately.
2018-11-28 12:42:54 -08:00
Ryan Brandenburg 321327f84b Merge branch 'master' of github.com:aspnet/AspNetCore into rybrande/MondoMaster 2018-11-28 12:28:04 -08:00
Chris R 63b26d42d2 Replace ManualResetEvent with TaskCompletionSource in TestHost tests 2018-11-28 11:00:22 -08:00
Ryan Brandenburg 4c4cda5fc3 Make gradlew executable 2018-11-28 10:12:35 -08:00
Ryan Brandenburg ba1bb521bc Add korebuild.json back to SignalR and Razor 2018-11-28 09:33:49 -08:00
Steve Sanderson 53fbdb8243
Update Components readme (#4282) 2018-11-28 10:32:57 +00:00
Steve Sanderson 62dd8f4bd9
Merge in Components from Blazor repo 2018-11-28 08:15:48 +00:00
dotnet-bot 93b26d0cc4 Merge in 'release/2.2' changes 2018-11-28 02:33:02 +00:00
Mikael Mengistu 079107aa92 Make gradlew executable (#4275) 2018-11-27 18:31:57 -08:00
Ryan Brandenburg 77001e40f2 Merge remote-tracking branch 'Razor/rybrande/masterToSrc' into rybrande/MondoMaster 2018-11-27 15:47:57 -08:00
Ryan Brandenburg b541eca8d9 Merge remote-tracking branch 'MvcPrecompilation/rybrande/masterToSrc' into rybrande/MondoMaster 2018-11-27 15:47:49 -08:00
Ryan Brandenburg f31ad5f9bf Merge remote-tracking branch 'SignalR/rybrande/masterToSrc' into rybrande/MondoMaster 2018-11-27 15:47:41 -08:00
Ryan Brandenburg b465db3f53 Merge remote-tracking branch 'Mvc/rybrande/masterToSrc' into rybrande/MondoMaster 2018-11-27 15:47:27 -08:00
Ryan Brandenburg 64e97a3604 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 582f3f867e
2018-11-27 15:43:05 -08:00
Ryan Brandenburg 523d82c69a Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 3cd4de8af8
2018-11-27 15:39:43 -08:00
Ryan Brandenburg a6b473dc2c Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in c9887e027a
2018-11-27 15:36:38 -08:00
Pavel Krymets 5116838807
Change package path to a directory (#4269) 2018-11-27 15:35:59 -08:00
Ryan Brandenburg c88b650c5a Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in c852bdcc33
2018-11-27 15:29:29 -08:00
Ryan Brandenburg fa1af0e5a5 Merge remote-tracking branch 'origin/release/2.2' into rybrande/MondoMaster 2018-11-27 15:04:40 -08:00
Steve Sanderson cef3782c3b Components merge CR feedback 2018-11-27 22:12:24 +00:00
Steve Sanderson 42c1ceb3cf Fix package output path 2018-11-27 22:11:50 +00:00
Ryan Brandenburg e46623e256 Merge remote-tracking branch 'Razor/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-27 12:26:29 -08:00
Ryan Brandenburg 9c3fee5fea Merge remote-tracking branch 'MvcPrecompilation/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-27 12:26:22 -08:00
Ryan Brandenburg 4d9b60d0ad Merge remote-tracking branch 'Mvc/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-27 12:26:05 -08:00
Ryan Brandenburg c51e6aad29 Merge remote-tracking branch 'SignalR/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-27 12:25:27 -08:00
Ryan Brandenburg 6f80eeda29 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 8ba0a89425
2018-11-27 12:16:27 -08:00
Ryan Brandenburg 589db8b413 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 032768b063
2018-11-27 12:12:19 -08:00
Ryan Brandenburg b659c82df6 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in a6199bbfba
2018-11-27 12:09:17 -08:00
Ryan Brandenburg 1992701808 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in d0bcdf3dd9
2018-11-27 12:06:02 -08:00
dotnet-bot b8a0023106 Merge in 'release/2.1' changes 2018-11-27 20:01:17 +00:00
Chris R 70483af8dd Create Hosting.sln to fix tests 2018-11-27 11:58:52 -08:00
Ryan Brandenburg 6603195a10 Merge remote-tracking branch 'origin/release/2.1' into rybrande/Mondo2.2 2018-11-27 11:57:39 -08:00
dotnet-bot 76823911eb Merge in 'release/2.1' changes 2018-11-27 19:54:08 +00:00
Ryan Brandenburg beb142701e Merge branch 'release/2.1' of github.com:aspnet/AspNetCore into rybrande/Mondo2.1 2018-11-27 11:52:30 -08:00
dotnet-bot 1716c7bd02 Merge in 'release/2.2' changes 2018-11-27 19:45:47 +00:00
Justin Kotalik 95d8b39e96
Revert "Target right version of ANCM nuget package (#4194)" (#4262) 2018-11-27 11:45:08 -08:00
Justin Kotalik 4d856dd279
Revert "Target right version of ANCM nuget package (#4194)" (#4261) 2018-11-27 11:44:47 -08:00
dotnet-bot 0ee512f55c Merge in 'release/2.1' changes 2018-11-27 19:26:29 +00:00
Stephen Halter b6eb6dd819 Merge remote-tracking branch 'origin/release/2.2' 2018-11-27 11:14:05 -08:00
Steve Sanderson b4dbbdcf35 Components merge CR feedback 2018-11-27 18:58:34 +00:00
Ryan Brandenburg 137bf3dde7 Merge remote-tracking branch 'Razor/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-27 10:57:43 -08:00
Ryan Brandenburg 54e9e55535 Merge remote-tracking branch 'MvcPrecompilation/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-27 10:57:37 -08:00
Ryan Brandenburg 35d2f10a20 Merge remote-tracking branch 'Mvc/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-27 10:57:22 -08:00
Ryan Brandenburg 5eae7ec020 Merge remote-tracking branch 'SignalR/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-27 10:57:13 -08:00
Ryan Brandenburg 1b461749cb Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in fd4572874e
2018-11-27 10:52:49 -08:00
Ryan Brandenburg 0ea7940af5 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 617586a984
2018-11-27 10:49:05 -08:00
Ryan Brandenburg f4578f127c Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 5a4fd3e792
2018-11-27 10:43:55 -08:00
Ryan Brandenburg 20330961ba Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in bc148a0724
2018-11-27 10:40:07 -08:00
Steve Sanderson 16c11b4c87 Integrate src/Components into mondorepo build system 2018-11-27 17:17:34 +00:00
Ryan Nowak c9887e027a Simplify parameter transformer usage 2018-11-27 09:01:55 -08:00
Steve Sanderson a1c35284e1 Merge remote-tracking branch 'blazor/stevesa/migration-to-mondorepo' into stevesa/merge-components-repo 2018-11-27 11:29:12 +00:00
Steve Sanderson 523fa285f2 Rename BlazorServerSide-CSharp template to Components-CSharp 2018-11-27 11:16:07 +00:00
Steve Sanderson 07e2d5420c Move all Components sources into src/Components 2018-11-27 11:03:30 +00:00
Stephen Halter dabf5d8ba9 [2.1] [Kestrel] Move AddressRegistrationTests to own TestGroup 2018-11-26 18:28:23 -08:00
Nate McMaster a0d1b8882b
Fix for ArgumentException thrown due to empty user secrets ID (#4240) 2018-11-26 17:11:58 -08:00
Stephen Halter 6a3d0fc1da
[Kestrel] Re-enable trace-level test logging (#4075) 2018-11-26 16:20:43 -08:00
Ryan Brandenburg 02ca469ea1 Merge branch 'master' of github.com:aspnet/AspNetCore into rybrande/Mondo22ToMaster 2018-11-26 16:00:44 -08:00
dotnet-bot f10e07b745 Merge in 'release/2.2' changes 2018-11-26 23:59:58 +00:00
Chris Ross (ASP.NET) f7d1e98623 Create Hosting.sln and add Logging.Testing depedendency to fix tests 2018-11-26 15:58:17 -08:00
Steve Sanderson 429888cc6d Attempt to fix build flakiness using "npm ci" 2018-11-26 21:47:44 +00:00
dotnet-bot a382a8eb03 Merge in 'release/2.2' changes 2018-11-26 21:45:57 +00:00
dotnet-bot 0954a15458 Merge in 'release/2.1' changes 2018-11-26 21:44:29 +00:00
Justin Kotalik 5a1ff478da
Add reference to M.A.Hosting (#4237) 2018-11-26 12:44:48 -08:00
Ryan Brandenburg 7aefd16eed Merge remote-tracking branch 'Security/rybrande/masterToSrc' into rybrande/Mondo22ToMaster 2018-11-26 12:35:26 -08:00
Ryan Brandenburg 01b58c9a3d Merge remote-tracking branch 'Routing/rybrande/masterToSrc' into rybrande/Mondo22ToMaster 2018-11-26 12:35:21 -08:00
Ryan Brandenburg a498d273e7 Merge remote-tracking branch 'ResponseCaching/rybrande/masterToSrc' into rybrande/Mondo22ToMaster 2018-11-26 12:35:16 -08:00
Ryan Brandenburg a84b7d242b Merge remote-tracking branch 'HttpSysServer/rybrande/masterToSrc' into rybrande/Mondo22ToMaster 2018-11-26 12:35:07 -08:00
Ryan Brandenburg 5e9617a5ab Merge remote-tracking branch 'CORS/rybrande/masterToSrc' into rybrande/Mondo22ToMaster 2018-11-26 12:34:50 -08:00
Ryan Brandenburg 4429575b50 Merge remote-tracking branch 'Antiforgery/rybrande/masterToSrc' into rybrande/Mondo22ToMaster 2018-11-26 12:34:43 -08:00
Ryan Brandenburg e60e74e2bb Merge remote-tracking branch 'origin/release/2.2' into rybrande/Mondo22ToMaster 2018-11-26 12:32:17 -08:00
Chris Ross e8fbd910a5
Remove Kestrel.Https from Microsoft.AspNetCore (#4236) 2018-11-26 12:21:00 -08:00
Ryan Brandenburg 30572ac74a Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 26d27d871b
2018-11-26 12:19:01 -08:00
Ryan Brandenburg 6afc6c11a9 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in c28c7dea4e
2018-11-26 12:16:11 -08:00
Ryan Brandenburg 25ae8871e0 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 12395b4d1c
2018-11-26 12:13:11 -08:00
Ryan Brandenburg 70dcf6c286 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in d4f5886582
2018-11-26 12:11:10 -08:00
Ryan Brandenburg 1a42d7413d Merge branch 'master' of github.com:aspnet/CORS into rybrande/masterToSrc 2018-11-26 12:09:52 -08:00
Ryan Brandenburg b94e30d1b7 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in c39d85f6df
2018-11-26 12:08:28 -08:00
Ryan Brandenburg 251f924a31 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 8124442320
2018-11-26 12:05:56 -08:00
Ryan Brandenburg dc11b1b9de Merge branch 'release/2.2' of github.com:aspnet/AspNetCore into rybrande/Mondo2.2 2018-11-26 11:51:27 -08:00
Nate McMaster c8da5ed085
Remove conditional target frameworks on HealthChecks sample (#4235) 2018-11-26 11:50:19 -08:00
Steve Sanderson 163d6f7c54 Decouple migrating code from non-migrating code (#1725)
* Stop referencing BlazorBuildToolsExe in .Browser.JS

* Have Components projects always reference .Blazor.Mono as a package, not from source

* Finish decoupling of .Browser.JS from Blazor.BuildTools

* Fix reference resolver unit test to find Mono BCL in .Blazor.Mono package

* Remove typo

* Have .Browser.JS consume jsinterop only via an NPM package reference

* Reference JSInterop .NET libraries only via NuGet package references, not directly from source

* Update dependency resolver unit test

* Update package name in package-lock.json

* When bundling jsinterop DLL into Build package, don't re-sign it (treat it as external)
2018-11-26 18:52:09 +00:00
Chris Ross (ASP.NET) c88c1f96f4 KestrelHttpServer/#3101 Remove empty Microsoft.AspNetCore.Server.Kestrel.Https assembly 2018-11-26 10:03:03 -08:00
Steve Sanderson 682e8e6573 Ensure TPN is included in new packages 2018-11-26 10:53:12 +00:00
Steve Sanderson 6e7ea6a5c9 Code migration phase 3 - Move Mono binaries to their own package (#1718)
* Rename "mono" project to Microsoft.AspNetCore.Blazor.Mono

* Include binary content in Microsoft.AspNetCore.Blazor.Mono

* Reference Mono binaries in Blazor.Mono project instead of Components.Build
2018-11-23 13:31:43 +00:00
Nate McMaster a5d06f35b1
Remove Roslyn from the shared framework (#4225)
Reacting to aspnet/Mvc#8755
2018-11-22 12:56:34 -08:00
Steve Sanderson 362160ade6 Fix Razor tooling following package rename 2018-11-22 15:52:42 +01:00
Nate McMaster a2c8537dd8 Remove the custom nuspec for Microsoft.AspNetCore.Mvc.Razor (#8758)
* Remove the custom nuspec for Microsoft.AspNetCore.Mvc.Razor
2018-11-22 06:34:22 -08:00
Steve Sanderson e15ea86ae8 Code migration part 2: Renames (#1708) 2018-11-22 13:19:11 +01:00
Pranav K f80490f99d
Remove runtime compilation from Mvc.Razor (#8755)
* Remove runtime compilation from Mvc.Razor
* Remove RazorViewEngineOptions.FileProviders
2018-11-21 17:14:12 -08:00
Nate McMaster f67acd67a2
Update test projects to netcoreapp3.0 2018-11-21 16:50:09 -08:00
Nate McMaster 6c60e0260c
Merge branch 'master' from aspnet/Diagnostics 2018-11-21 16:38:27 -08:00
Ryan Brandenburg a5da5612bd Merge remote-tracking branch 'Security/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-21 16:36:06 -08:00
Ryan Brandenburg ee050a4725 Merge remote-tracking branch 'Routing/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-21 16:35:57 -08:00
Ryan Brandenburg 7860280dd9 Merge remote-tracking branch 'ResponseCaching/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-21 16:35:46 -08:00
Ryan Brandenburg 33a5544c90 Merge remote-tracking branch 'HttpSysServer/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-21 16:35:36 -08:00
Ryan Brandenburg 396bb7a2d8 Merge remote-tracking branch 'CORS/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-21 16:35:26 -08:00
Ryan Brandenburg 68eafa9d3c Merge remote-tracking branch 'Antiforgery/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-21 16:35:18 -08:00
Ryan Brandenburg 1ee4e2b936 Merge remote-tracking branch 'origin/release/2.1' into rybrande/Mondo2.2 2018-11-21 16:33:42 -08:00
Nate McMaster 006558c412
Merge branch 'release/2.2' 2018-11-21 16:28:33 -08:00
Ryan Brandenburg 7ee9dac67f Merge branch 'release/2.1' of github.com:aspnet/AspNetCore into rybrande/Mondo2.1 2018-11-21 16:26:13 -08:00
Nate McMaster cb198d727b
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 082d505977
2018-11-21 16:21:23 -08:00
Ryan Brandenburg ca8ce2e58d Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 93926543f8
2018-11-21 16:13:09 -08:00
Nate McMaster b2d4f8f2f1
Merge branch 'namc/merge-diag' into release/2.2 2018-11-21 16:11:17 -08:00
Ryan Brandenburg d18558c3ab Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 3d828221a1
2018-11-21 16:10:55 -08:00
Ryan Brandenburg c593daa1f9 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 9f49398f28
2018-11-21 16:03:25 -08:00
Ryan Brandenburg bd3a77ec8e Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 3e08bf8833
2018-11-21 16:02:22 -08:00
Ryan Brandenburg e8849f6626 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in f05b0e792d
2018-11-21 16:01:19 -08:00
Ryan Brandenburg d5f14412c2 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 9e5146cff9
2018-11-21 15:59:55 -08:00
Ryan Brandenburg 101303eceb Fix RepositoryUrls 2018-11-21 15:55:40 -08:00
Justin Kotalik 89330075b4
Target right version of ANCM nuget package (#4194) 2018-11-21 15:42:55 -08:00
Nate McMaster 8ce7bb7f16
Add HealthChecks to Middleware.sln 2018-11-21 15:39:10 -08:00
Nate McMaster 925746158e
Merge the release/2.2 branch of Diagnostics 2018-11-21 15:36:05 -08:00
Nate McMaster 16212ae6df
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in c802d5ef5f
2018-11-21 15:22:25 -08:00
Ryan Brandenburg db7b28d475 Merge remote-tracking branch 'Security/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-21 15:17:40 -08:00
Ryan Brandenburg ff3891fa7a Merge remote-tracking branch 'Routing/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-21 15:17:30 -08:00
Ryan Brandenburg c8e271e8ac Merge remote-tracking branch 'ResponseCaching/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-21 15:17:21 -08:00
Ryan Brandenburg 5c0097bf69 Merge remote-tracking branch 'HttpSysServer/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-21 15:17:11 -08:00
Ryan Brandenburg af2f57386e Merge remote-tracking branch 'CORS/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-21 15:17:00 -08:00
Ryan Brandenburg 3e59973378 Merge remote-tracking branch 'Antiforgery/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-21 15:16:52 -08:00
Ryan Nowak 582f3f867e Injest new Roslyn and do netstandard2.0/net472 2018-11-21 15:15:36 -08:00
Ryan Brandenburg f7b51eedda Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 930ed239e4
2018-11-21 15:12:11 -08:00
Ryan Brandenburg 3840ca4451 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 58b66f7cbb
2018-11-21 15:09:05 -08:00
Ryan Brandenburg ce2f7908e4 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 777b2fbf7e
2018-11-21 15:06:37 -08:00
Ryan Brandenburg 03db4faa68 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in d8d1f36f28
2018-11-21 15:05:23 -08:00
Ryan Brandenburg 2374a67d55 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in ec429447bf
2018-11-21 15:03:35 -08:00
Ryan Brandenburg 42a93c8153 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 93b496090e
2018-11-21 15:01:46 -08:00
Ryan Brandenburg 9fc5a5b841 Merge remote-tracking branch 'origin/release/2.2' into rybrande/Mondo22ToMaster 2018-11-21 14:57:58 -08:00
Nate McMaster 71b1bb8887
Merge branch 'release/2.1' into release/2.2 2018-11-21 14:57:45 -08:00
Ryan Brandenburg c80604a7da
Fix directory structure (#4201)
Fix directory structure
2018-11-21 14:55:25 -08:00
Nate McMaster 6a6c88d80b
Merge source code from aspnet/Diagnostics to this repo 2018-11-21 14:23:55 -08:00
Nate McMaster ed0b421695
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 8893337fb0
2018-11-21 13:54:33 -08:00
Ryan Brandenburg 2dfe427c33 Fix RepositoryUrl 2018-11-21 12:14:50 -08:00
Ryan Brandenburg 4e93ff7835 Merge branch 'master' of github.com:aspnet/AspNetCore into rybrande/Mondo22ToMaster 2018-11-21 12:13:13 -08:00
Ryan Brandenburg 4075c10733 Merge remote-tracking branch 'Session/rybrande/masterToSrc' into rybrande/Mondo22ToMaster 2018-11-21 12:05:57 -08:00
Ryan Brandenburg b519951572 Merge remote-tracking branch 'StaticFiles/rybrande/masterToSrc' into rybrande/Mondo22ToMaster 2018-11-21 12:05:51 -08:00
Ryan Brandenburg dac9378e31 Merge remote-tracking branch 'ServerTests/rybrande/masterToSrc' into rybrande/Mondo22ToMaster 2018-11-21 12:05:41 -08:00
Ryan Brandenburg 1182293e8b Merge remote-tracking branch 'origin/release/2.2' into rybrande/Mondo22ToMaster 2018-11-21 12:03:58 -08:00
BrennanConroy c852bdcc33
Avoid zero-byte send in WebSockets (#3326) 2018-11-21 11:47:39 -08:00
Nate McMaster 5e8e24ec88
Set RepositoryUrl to aspnet/AspNetCore 2018-11-21 11:32:49 -08:00
Ryan Brandenburg c0fb3d2278 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 67aa19aea7
2018-11-21 11:27:50 -08:00
Ryan Brandenburg 7b891fc3d1 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in b732ef662e
2018-11-21 11:25:55 -08:00
Ryan Brandenburg b5894e6b5b Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in e3c711f538
2018-11-21 11:23:53 -08:00
Ryan Brandenburg 1ac92426ab Merge remote-tracking branch 'Session/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-21 11:15:09 -08:00
Ryan Brandenburg 7b708c291c Merge remote-tracking branch 'StaticFiles/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-21 11:15:02 -08:00
Ryan Brandenburg 7a9e1f9ec9 Merge remote-tracking branch 'ServerTests/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-21 11:14:50 -08:00
Ryan Brandenburg bfffb3c31e Merge remote-tracking branch 'origin/release/2.1' into rybrande/Mondo2.2 2018-11-21 11:11:35 -08:00
Ryan Brandenburg feb5e3ac9b Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 774079d60d
2018-11-21 11:02:38 -08:00
Ryan Brandenburg c391301dce Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in a5fcd9dd87
2018-11-21 10:59:42 -08:00
Ryan Brandenburg 04096c9225 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 04c6c6bab8
2018-11-21 10:58:10 -08:00
Pranav K 8d629371bf Add support for 2-phase compile 2018-11-21 10:38:23 -08:00
Ryan Brandenburg e6b3a5b79b Merge remote-tracking branch 'Session/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-21 10:05:41 -08:00
Ryan Brandenburg 93238389a7 Merge remote-tracking branch 'StaticFiles/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-21 10:05:32 -08:00
Ryan Brandenburg c75177033a Merge remote-tracking branch 'ServerTests/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-21 10:05:22 -08:00
Ryan Brandenburg 95928c0c64 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in d20c2c8f04
2018-11-21 10:02:17 -08:00
Ryan Brandenburg 98bbdf6e34 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 2b285667a8
2018-11-21 10:00:40 -08:00
Ryan Brandenburg 9ba11244f2 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 019ba1722e
2018-11-21 09:58:26 -08:00
Ryan Brandenburg e808301e38 Merge branch 'master' of github.com:aspnet/AspNetCore into rybrande/Mondo22ToMaster 2018-11-21 09:54:05 -08:00
Nate McMaster 40ef11cf54
Fix UserSecretsIdAttribute generation when using FrameworkReference to Microsoft.AspNetCore.App (#4177)
When only Microsoft.AspNetCore.App is referenced, the project will no longer have MSBuild imports from the Microsoft.Extensions.Configuration.UserSecrets package, which takes care of generating the UserSecretsIdAttribute. This ensures the attribute is still generated in default project templates without needing a new package ref to Config.UserSecrets.
2018-11-21 09:12:06 -08:00
Kirill Osenkov f9623c2c27 Hardcode two constants from Microsoft.VisualStudio.ImageCatalog.dll
This removes the runtime reference to ImageCatalog which is not available on VS for Mac.
2018-11-21 08:14:17 -08:00
Steve Sanderson 0da8150794 Code migration, step 1 (#1706)
* Rename Microsoft.AspNetCore.Blazor dir to .Components

* Rename Microsoft.AspNetCore.Blazor.Browser dir to .Components.Browser

* Rename Microsoft.AspNetCore.Blazor.Browser.JS dir to .Components.Browser.JS

* Rename Microsoft.AspNetCore.Blazor.TagHelperWorkaround dir to .Components.TagHelperWorkaround

* Unbreak signing

* Rename Microsoft.AspNetCore.Blazor.Analyzers dir to .Components.Analyzers

* Rename Microsoft.AspNetCore.Blazor.Server dir to .Components.Server

* Rename Microsoft.AspNetCore.Blazor.Razor.Extensions dir to .Components.Razor.Extensions

* Rename Microsoft.AspNetCore.Blazor.Build dir to .Components.Build

* Rename Microsoft.AspNetCore.Blazor.Test dir to .Components.test

* Rename Microsoft.AspNetCore.Blazor.Server.Test dir to .Components.Server.Test

* Rename Microsoft.AspNetCore.Blazor.Razor.Extensions.Test dir to .Components.Razor.Extensions.Test

* Rename Microsoft.AspNetCore.Blazor.Analyzers.Test dir to .Components.Analyzers.Test

* Rename Microsoft.AspNetCore.Blazor.Browser.Test dir to .Components.Browser.Test

* Rename Microsoft.AspNetCore.Blazor.Build.Test dir to .Components.Build.Test

* Rename Microsoft.AspNetCore.Blazor.E2ETest dir to .Components.E2ETest

* Fix typo

* Unbreak VSIX build

* Fix .Build unit tests

* Move Blazor benchmarks into blazor subdir

* Rename .Blazor.Performance dir to .Components.Performance

* Move some samples within .sln

* Move StandaloneApp sample to blazor subdir

* Move MonoSanity sample to blazor subdir

* Move HostedInAspNet sample to blazor subdir

* Update paths to samples

* Move .BuildTools and .Cli sources to blazor subdir

* Move tooling to blazor subdir

* Move templates to blazor subdir

* Restore Directory.Build.props behaviors in blazor\src

* Move mono to blazor subdir

* Update folder structure in .sln

* Fix VSIX

* Empty commit to reawaken CI

* Fix manual standalone app startup
2018-11-21 16:17:33 +01:00
Nate McMaster 0cbfa9ce6d
Update branding to 3.0.0-preview (#4171)
Changes:
* This uses date-based versioning
* Builds are `3.0.0-preview-$(buildnumber)`, not alpha1 or preview1.
2018-11-20 19:47:12 -08:00
Nate McMaster bfdecc8f5e
React to the deprecation of Microsoft.AspNetCore.All (aspnet/Mvc#8751) 2018-11-20 17:36:47 -08:00
Ryan Brandenburg c8dddaaafc Merge remote-tracking branch 'Metapackages/rybrande/masterToSrc' into rybrande/Mondo22ToMaster 2018-11-20 16:43:26 -08:00
Ryan Brandenburg 4ab02a9ad9 Merge remote-tracking branch 'JavaScriptServices/rybrande/masterToSrc' into rybrande/Mondo22ToMaster 2018-11-20 16:43:12 -08:00
Ryan Brandenburg 9ecf86fe65 Merge remote-tracking branch 'AADIntegration/rybrande/masterToSrc' into rybrande/Mondo22ToMaster 2018-11-20 16:42:54 -08:00
Ryan Brandenburg 73dbfdbee1 Merge branch 'release/2.2' into rybrande/Mondo22ToMaster 2018-11-20 16:42:11 -08:00
Ryan Brandenburg 27eed7e904 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in d417aacd7c
2018-11-20 16:32:23 -08:00
Ryan Brandenburg cdc621d428 Merge branch 'rybrande/release22ToSrc' into rybrande/masterToSrc 2018-11-20 16:26:40 -08:00
Ryan Brandenburg 00b0bcc665 Merge branch 'rybrande/release22ToSrc' into rybrande/masterToSrc 2018-11-20 16:23:13 -08:00
Ryan Brandenburg 564f5a45ba Fix about 2018-11-20 16:09:50 -08:00
Ryan Brandenburg d0c73c16d5 Fix tests 2018-11-20 16:08:17 -08:00
Ryan Brandenburg 70260923ef Remove extras 2018-11-20 16:06:40 -08:00
Ryan Brandenburg 0f2ae895e3 Remove bower files 2018-11-20 16:02:55 -08:00
Ryan Brandenburg dd914d9430 Revert back to 2.2 2018-11-20 16:00:48 -08:00
Ryan Brandenburg d5587f3c54 Merge remote-tracking branch 'origin/release/2.1' into rybrande/21To22Merge 2018-11-20 15:42:00 -08:00
Javier Calvarro Nelson 781ca09033 Merge remote-tracking branch 'origin/release/2.2' into origin/master 2018-11-20 15:22:53 -08:00
Javier Calvarro Nelson 4046c842af
Update Identity Server dependencies to 2.3.0 (#2077) 2018-11-20 15:19:14 -08:00
Jacques Eloff 5a446ecc53
Merge pull request #4165 from aspnet/joeloff/SharedInstall
#3697 - override default install location
2018-11-20 13:41:08 -08:00
Nate McMaster 1d9b77e255
Import DotNetPackageVersionPropsPath into all sub-folder builds 2018-11-20 13:23:55 -08:00
Ryan Brandenburg 48528cf69f Fix templating casing 2018-11-20 12:53:46 -08:00
Nate McMaster 0f904c518e
React to breaking changes in Microsoft.Extensions.Logging.Abstractions 2018-11-20 12:52:15 -08:00
Nate McMaster 43fa1ba365
Import DotNetPackageVersionPropsPath into the src/IISIntegration build context 2018-11-20 12:10:44 -08:00
Ryan Brandenburg bd54395fe5 Remove duplicate keys 2018-11-20 12:07:14 -08:00
Jacques Eloff 07c3931758 #3697 - override default install location 2018-11-20 12:02:03 -08:00
Nate McMaster 71ca1faa6b
React to MSBuild breaking changes and remove ProdCon v1 variables (#4161)
This should unblock the consumption of the latest .NET Core SDK, which includes breaking changes in MSBuild. We don't _really_ need the MSBuild APIs which were broken because ProdCon v1 is dead. This removes the unused ProdCon v1 tasks and targets.
2018-11-20 11:34:53 -08:00
Ryan Brandenburg 5e36c334e1 Merge remote-tracking branch 'MetaPackages/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-20 11:10:34 -08:00
Ryan Brandenburg 2b146e5266 Merge remote-tracking branch 'JavaScriptServices/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-20 11:10:19 -08:00
Ryan Brandenburg 65ceeb6560 Merge remote-tracking branch 'AADIntegration/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-20 11:09:14 -08:00
Ryan Brandenburg a6acf47e79 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 27efce1042
2018-11-20 11:06:50 -08:00
Ryan Brandenburg 964498a69d Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 7819c2f950
2018-11-20 11:04:10 -08:00
Ryan Nowak 1521f9298b Relayer action discovery infrastructure
This change introduces a service facade for creating the application
model, running conventions, validating the result, and flattening the
model.

This is used in the ControllerActionDescriptorProvider and provides the
existing functionality for now. The ControllerActionDescriptorProvider
will process the results and turn each 'flattened' model into a single
action descriptor.

The next change will introduce another consumer of this service, that
turns the 'flattened' model into an EndpointModel so that it can be
exposed via Endpoint Routing's convention system.

---

The main considerations here:

The flattening semantics of application model are pretty complicated :(

The validation that CADP does is actually pretty in depth and might be
really low value... Errors with writing route templates do happen, and
those will be caught by the routing system eventually.... Errors with
duplicate route names are similar... Errors with 'mixed' attribute and
conventional routing are not at all common. I don't think I've ever seen
an issue get filed about this. I did the work to port all of this stuff
forward but I'm not totally sure it's valuable - however, I don't really
want to make an argument for its removal. These are just some random
thoughts to keep in mind if you're reviewing this 👍
2018-11-20 11:03:37 -08:00
Nate McMaster 7ffbb6ed3b
Continue to produce .Sources packages from src/Shared/
This is temporary until we finish replacing internal PackageReference with project ref
2018-11-20 11:01:36 -08:00
Ryan Brandenburg 33b736b4a7 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 0efa96de73
2018-11-20 10:57:52 -08:00
Pranav K 5a6d438f7b API review feedback for pubinternal type changes 2018-11-20 10:50:37 -08:00
Nate McMaster 0af21077c3
Update .NET Core 3.0 dependencies (#4091)
* Update Extensions to 3.0.0-preview.18569.14
* Update EFCore to 3.0.0-preview.18569.2
* Update corefx to preview.18566.8
* Update core-setup to preview-27117-01
2018-11-20 10:37:13 -08:00
Ryan Brandenburg b335283ab1 Merge branch 'release/2.1' of github.com:aspnet/AspNetCore into rybrande/Mondo2.1 2018-11-20 10:24:50 -08:00
Ryan Brandenburg 550435373b Fix casing in MetaPackages 2018-11-20 10:24:34 -08:00
Ryan Brandenburg 6fc3eb3bfc Fix MetaPackage casing 2018-11-20 10:21:21 -08:00
Ryan Brandenburg f45dacf924
Fix folder casing (#4144)
Fix folder casing
2018-11-20 10:02:51 -08:00
Pavel Krymets d17392bc45
Port Resolve C26496 compiler errors when building in release mode with VS 15.9 (#4141) 2018-11-20 10:00:37 -08:00
Nate McMaster 425c196cba
Merge the master branch of aspnet/Hosting 2018-11-20 09:59:15 -08:00
Nate McMaster b6de45ee72
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 241d2c13df
2018-11-20 09:51:45 -08:00
Nate McMaster ee1e2d6173
Merge the master branch of aspnet/HttpAbstractions 2018-11-20 09:49:01 -08:00
Nate McMaster 294b5f2928
Merge branch 'release/2.2' 2018-11-20 09:47:59 -08:00
Luke Latham 5539b0f6e7 Change Google scope in external providers sample (#4138) 2018-11-20 09:38:05 -08:00
Nate McMaster bfba741326
Merge aspnet/Hosting release/2.2 2018-11-20 09:35:34 -08:00
Nate McMaster 0f64aa5c01
Merge aspnet/HttpAbstractions release/2.2 2018-11-20 09:15:59 -08:00
Nate McMaster feb68c1382
Merge branch 'release/2.1' into release/2.2 2018-11-20 09:13:55 -08:00
Nate McMaster 9b1cfd59b5
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 0724e6cde1
2018-11-20 09:03:14 -08:00
Nate McMaster c199b7a658
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in bc7092a32b
2018-11-20 08:45:03 -08:00
Nate McMaster 0063d5a031
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 91db78cf92
2018-11-20 08:37:32 -08:00
dotnet-bot 3631aced3c Merge in 'release/2.1' changes 2018-11-20 16:33:13 +00:00
Nate McMaster 3f025e3a38
Make Microsoft.AspNetCore.Server.IntegrationTesting a temporary external dependency 2018-11-19 23:38:13 -08:00
Nate McMaster 23996a550a
Resolve C26496 compiler errors when building in release mode with VS 15.9 (#4113)
Updating CI machines to VS 15.9 causes the project to fail to compile with C26496 errors. This adds `const` keywords to resolve the compiler errors.
2018-11-19 23:34:01 -08:00
Nate McMaster 05b8745172
Remove aspnet/Hosting submodule and update targets and projects 2018-11-19 22:25:43 -08:00
Nate McMaster dc4c18e9ac
Merge source code from aspnet/Hosting into this repo 2018-11-19 22:02:46 -08:00
Nate McMaster 87ab2744ce
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 3f7ee338d4
2018-11-19 22:00:32 -08:00
Nate McMaster 4fcc8b9902
Update targets to build HttpAbstractions projects 2018-11-19 21:34:26 -08:00
Nate McMaster 98190bdaf9
Merge source code from aspnet/HttpAbstractions into this repo 2018-11-19 21:13:15 -08:00
Nate McMaster 0ef9993f46
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in d142d58eb4
2018-11-19 21:12:01 -08:00
Nate McMaster 7c6bf7f75d
Merge branch 'release/2.2' 2018-11-19 21:00:19 -08:00
Ryan Brandenburg 838cafcc4f Fix the casing 2018-11-19 17:01:30 -08:00
Ryan Brandenburg a11f4c2409 Fix the casing 2018-11-19 17:00:44 -08:00
dotnet-bot 85f8d8fed5 Merge in 'release/2.2' changes 2018-11-20 00:59:51 +00:00
Ryan Brandenburg f98aa3b4a3 Merge remote-tracking branch 'MetaPackages/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-19 16:23:58 -08:00
Ryan Brandenburg 544b5e68e1 Merge remote-tracking branch 'AADIntegration/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-19 16:23:43 -08:00
Ryan Brandenburg 80167655b3 Merge remote-tracking branch 'JavaScriptServices/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-19 16:23:20 -08:00
Ryan Brandenburg 219fd0b300 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 975011071b
2018-11-19 16:20:16 -08:00
Doug Bunting 3fe61d6601 Make Microsoft.Extensions.ApiDescription.Design experimental
- `$(ExpermentalPackageVersion)`, `$(ExpermentalVersionPrefix)` and `$(ExpermentalVersionSuffix)` were not used
2018-11-19 16:18:28 -08:00
Ryan Brandenburg 151dd77fb8 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 6f02048c3c
2018-11-19 16:18:06 -08:00
Ryan Brandenburg f6f7628718 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in ea3a7bc897
2018-11-19 16:14:42 -08:00
Ryan Brandenburg 78eb188014 Merge branch 'master' of github.com:aspnet/AspNetCore into rybrande/MondoMaster 2018-11-19 16:01:22 -08:00
Ryan Nowak a7ae749ab2 Update VS-only tooling to 4.7.2 2018-11-19 15:53:53 -08:00
Chris Ross (ASP.NET) 241d2c13df Add TestServer support for generic WebHost #1583 2018-11-19 14:55:18 -08:00
Ryan Brandenburg 37399bc217 Merge branch 'master' of github.com:aspnet/AspNetCore into rybrande/MusicStoreMaster 2018-11-19 12:34:59 -08:00
Ryan Brandenburg af6792afc3 Merge branch 'master' of github.com:aspnet/AspNetCore into rybrande/MondoMaster 2018-11-19 12:24:58 -08:00
Ryan Brandenburg 47946238dd Merge remote-tracking branch 'Templating/rybrande/masterToSrc' into rybrande/MondoMaster 2018-11-19 12:18:17 -08:00
Ryan Brandenburg 1698beeee9 Merge remote-tracking branch 'AzureIntegration/rybrande/masterToSrc' into rybrande/MondoMaster 2018-11-19 12:18:08 -08:00
Ryan Brandenburg 9a70e404c9 Merge remote-tracking branch 'AuthSamples/rybrande/masterToSrc' into rybrande/MondoMaster 2018-11-19 12:17:53 -08:00
Ryan Brandenburg 39e8397b9a Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 75e3133cdb
2018-11-19 12:15:18 -08:00
Ryan Brandenburg f18c892bfb Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 8f471bf65b
2018-11-19 12:12:53 -08:00
Ryan Brandenburg 0816fded9d Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 514fcdcba5
2018-11-19 12:10:28 -08:00
dotnet-bot 9822e87e04 Merge in 'release/2.1' changes 2018-11-19 20:02:46 +00:00
Ryan Brandenburg 4f84c1f58c Merge remote-tracking branch 'Templating/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-19 11:51:17 -08:00
Ryan Brandenburg 9dda18a355 Merge remote-tracking branch 'AzureIntegration/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-19 11:51:03 -08:00
Ryan Brandenburg 8c81ace1a2 Merge remote-tracking branch 'AuthSamples/rybrande/release22ToSrc' into rybrande/Mondo2.2 2018-11-19 11:50:44 -08:00
Ryan Brandenburg 357c79f619 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in d26f89a6bc
2018-11-19 11:47:50 -08:00
BrennanConroy 2c3ebd1648
Update TFM for Http.Connections (#3323) 2018-11-19 11:47:42 -08:00
Ryan Brandenburg 2becec387b Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 7383e532c9
2018-11-19 11:44:35 -08:00
Ryan Brandenburg f3ccfa326a Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 031a2ed214
2018-11-19 11:42:11 -08:00
Ryan Brandenburg c9e0295d1d Merge remote-tracking branch 'AzureIntegration/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-19 11:16:52 -08:00
Nate McMaster 9954f5a703
Fix MSB4062 - fix conflicting build tools dependencies by ensuring the same version is used 2018-11-19 11:16:03 -08:00
Ryan Brandenburg bb361b02f3 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 47e2ba3755
2018-11-19 11:15:08 -08:00
Ryan Brandenburg 2b46511407 Merge remote-tracking branch 'AuthSamples/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-19 11:10:33 -08:00
Ryan Brandenburg b19a969a96 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in d861b70515
2018-11-19 11:07:58 -08:00
Ryan Brandenburg 9149fb825d Merge remote-tracking branch 'MusicStore/rybrande/masterToSrc' into rybrande/MusicStoreMaster 2018-11-19 11:01:06 -08:00
Ryan Brandenburg 6b45771a1b Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in aca4b432e1
2018-11-19 10:57:15 -08:00
dotnet-bot 5b445e7122 Merge in 'release/2.2' changes 2018-11-19 18:53:48 +00:00
Ryan Brandenburg 8e77b5f6c0 Merge branch 'release/2.2' of github.com:aspnet/AspNetCore into rybrande/MusicStore2.2 2018-11-19 10:52:23 -08:00
Ryan Brandenburg 39071a3a4d Merge remote-tracking branch 'Templating/rybrande/release21ToSrc' into rybrande/Mondo2.1 2018-11-19 10:47:00 -08:00
Ryan Brandenburg 6cd4ffb192 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 3f26b56fef
2018-11-19 10:38:14 -08:00
Nate McMaster abbdfb72ef
Upgrade projects and packages to netcoreapp3.0 2018-11-19 09:55:23 -08:00
Nate McMaster c39d85f6df
Upgrade package and projects to target netcoreapp3.0 (aspnet/CORS#203) 2018-11-19 09:50:57 -08:00
Nate McMaster 082d505977
Upgrade aspnetcore packages and projects to netcoreapp3.0 (aspnet/Diagnostics#529) 2018-11-19 09:50:31 -08:00
Nate McMaster aed55d4517
Upgrade projects and packages to target netcoreapp3.0 (aspnet/Routing#913)
Changes:

* Upgrade dependencies and build tools
* Change TFM on Microsoft.AspNetCore.Routing packages to netcoreapp3.0
* Remove .NET Framework tests
* Remove the IL_EMIT conditional compilation because this assembly only targets .NET Core now.
2018-11-19 09:50:01 -08:00
Nate McMaster 60a3d57a3e
Upgrade aspnetcore packages to target netcoreapp3.0 (aspnet/Localization#459)
Changes:

* Upgrade dependencies and build tools
* Change TFM on Microsoft.AspNetCore.* packages to netcoreapp3.0
* Remove .NET Framework tests
2018-11-19 09:47:43 -08:00
Nate McMaster e053878464
Upgrade packages and projects to target netcoreapp3.0 (aspnet/Security#1916)
Changes:

* Upgrade dependencies and build tools
* Change TFM on Microsoft.AspNetCore.* packages to netcoreapp3.0
* Remove .NET Framework tests
* Disable Owin interop tests. They need to be completely refactored
2018-11-19 09:47:07 -08:00
dotnet-bot 50fc0e5e41 Merge in 'release/2.2' changes 2018-11-19 16:43:12 +00:00
Pavel Krymets e4249dade0 Fix the SiteExtension signing exclusion 2018-11-19 08:42:21 -08:00
dotnet-bot 46ee4532fb Merge in 'release/2.2' changes 2018-11-19 16:27:28 +00:00
Pavel Krymets ca42d0295e Use property group for sign exclussions 2018-11-19 08:26:28 -08:00
Ben Adams 2414db256f Zero cost(ish) diagnositcs when disabled
Inlinable fast-path check if Diagnositcs is enabled
2018-11-18 15:47:55 -08:00
Alexej Timonin 98c10b6879 Add PageRemoteAttribute (#8324)
* Add PageRemoteAttribute

Fixes https://github.com/aspnet/Mvc/issues/8245
2018-11-18 09:30:23 -08:00
Pranav K d603735818 Ignore empty keys in QueryStringValueProvider
Fixes 8484
2018-11-18 09:09:01 -08:00
Ryan Nowak 807d4c97e3 Add required values to RoutePattern (#912) 2018-11-17 20:02:48 +13:00
David Fowler 501dd3924b
Added a method to configure the web host defaults (#298)
- Added ConfigureWebHostDefaults to configure the web specific defaults on the generic host builder.
2018-11-16 21:29:18 -08:00
BrennanConroy 4cbabea501
Dispose WebSocket if StartAsync fails (#3311) 2018-11-16 19:54:24 -08:00
Justin Kotalik 962ec07bdb
Adds PipeWriterAdapter (#1065) 2018-11-16 19:18:47 -08:00
Nate McMaster dcba1953de
Fix failing test when building the win-arm shared framework 2018-11-16 17:56:34 -08:00
Ajay Bhargav Baaskaran 6c8e900d11
Razor parser rewrite (#2590)
*   Razor parser rewrite
    - Rewrite CSharp parser
    - Basic rewrite of HTML parser (More improvements to follow)
    - Define and generate syntax nodes and boilerplate
    - Rewrite ClassifiedSpan and TagHelperSpan generation logic
    - Rewrite TagHelper phase
    - Rewrite Intermediate phase
    - Rewrite other miscellaneous features and bug fixes
    - Rewrite partial parsing
    - Added some syntax manipulation APIs
    - Removed unused legacy types

* Test changes
 - Update parser test infrastructure
 - Update tests
 - Regenerated baselines
 - Removed unused legacy types
2018-11-16 17:22:37 -08:00
dotnet-bot 1302590dc8 Merge in 'release/2.2' changes 2018-11-17 01:18:29 +00:00
Pavel Krymets 5e961e27ea
Ignore apphost.exe in runtime store (#4073) 2018-11-16 17:17:44 -08:00
Nate McMaster 75e3133cdb
Remove our (stale) copy of ApplicationInsights startup and upgrade projects to netcoreapp3.0 (aspnet/AzureIntegration#254)
This project has moved to https://github.com/Microsoft/ApplicationInsights-aspnetcore, so we don't need to build or test it in this repo anymore.

This also updates packages and projects to netcoreapp3.0
2018-11-16 17:07:24 -08:00
Nate McMaster 6bf1cc8545
Upgrade projects and packages to target netcoreapp3.0 (aspnet/MetaPackages#299)
Changes:

* Upgrade dependencies
* Change TFM on Microsoft.AspNetCore to netcoreapp3.0
* Remove .NET Framework tests
2018-11-16 16:50:31 -08:00
Nate McMaster 3db604d9d2
Upgrade packages and projects to target netcoreapp3.0 (except the .NET signalr client) (aspnet/SignalR#3315) 2018-11-16 16:44:36 -08:00
Chris Ross (ASP.NET) f6cda4fab7 Make TestServer handle exceptions from OnStarting #1594 2018-11-16 16:39:50 -08:00
Nate McMaster fd1a5b43f1
Generate PlatformManifest and package conflict overrides for Microsoft.AspNetCore.App (#4072)
This generates additional metadata for the .NET Core SDK to resolve conflicts between Microsoft.AspNetCore.App and PackageReferences which contain the same assemblies.
2018-11-16 16:36:14 -08:00
Doug Bunting 1da7a89f59 Add `ErrorContext.Member` to `ErrorContext.Path` when clearly needed
- #8509

nits:
- use `ModelNames.CreatePropertyModelName(...)`
- move `exception` assignment up and reuse that variable
2018-11-16 16:30:43 -08:00
Nate McMaster f5aae26b44
Update projects and packages to target netcoreapp3.0 (aspnet/Mvc#8734) 2018-11-16 16:28:35 -08:00
Nate McMaster 68b878f0e1
Upgrade packages and projects to target netcoreapp3.0 (aspnet/Identity#2072)
* Upgrade dependencies
* Change TFM on Microsoft.AspNetCore.Identity to netcoreapp3.0
* Remove .NET Framework tests
2018-11-16 16:27:58 -08:00
Stephen Halter fb055cddf9 Merge branch 'release/2.2' 2018-11-16 16:21:08 -08:00
dotnet-bot 83abe6fb00 Merge in 'release/2.2' changes 2018-11-17 00:19:01 +00:00
Ben Adams f7c26f9912 [2.2.1] Use non-pinnable buffer for zero byte read (#4066) 2018-11-16 16:18:23 -08:00
Nate McMaster e657e7d79a
Upgrade projects and packages to netcoreapp3.0 (aspnet/JavaScriptServices#1793) 2018-11-16 16:02:57 -08:00
Ajay Bhargav Baaskaran 61565f61f9
Show Razor build errors in non build server scenarios (#2737) 2018-11-16 15:47:02 -08:00
Nate McMaster 0e12274a8e
Flatten the dependency graph of Microsoft.AspNetCore.App (#4061)
This changes the way Microsoft.AspNetCore.App works to follow patterns set by Microsoft.NETCore.App. Instead of being a metapackage with dozens of dependencies, this package has no dependencies. It uses RID-splitting to deliver standalone assets for self-contained deployments.

Changes:
* Implements RID-split packages for Microsoft.AspNetCore.App.
* Update shared fx deps.json generation to only include entries for the RID-specific metapackages
* Include platform-specific packages in publish output
* Remove all nuspec dependencies of Microsoft.AspNetCore.App and collect all references into the package.
2018-11-16 15:16:15 -08:00
Nate McMaster 3c282a4f5a
Update projects and packages to netcoreapp3.0 (aspnet/AADIntegration#55) 2018-11-16 15:07:40 -08:00
Hao Kung d1ee5a22fb
Remove obsolete apis (#1915) 2018-11-16 14:25:30 -08:00
Ryan Brandenburg 9182204495 Merge remote-tracking branch 'MusicStore/rybrande/release22Src' into rybrande/MusicStore2.2 2018-11-16 11:30:49 -08:00
dotnet-bot 091a651036 Merge in 'release/2.1' changes 2018-11-16 19:19:47 +00:00
Ryan Brandenburg ece5fa46c6 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 33978da1f7
2018-11-16 10:49:57 -08:00
Nate McMaster 514fcdcba5
React to breaking changes in Microsoft.AspNetCore.App (aspnet/Templating#836)
Changes:

* Add packages references for EF Core, when necessary
* Add packages references for SpaServices to Spa templates
* Remove PackageReference to Microsoft.AspNetCore.App altogether

See aspnet/AspNetCore#3612 for more context
2018-11-16 10:09:24 -08:00
dotnet-bot d720319b3a Merge in 'release/2.2' changes 2018-11-16 17:07:27 +00:00
Pavel Krymets 20f7d3be9d
Prevent SiteExtension OOB build from including root Directory.props/targets (#4064) 2018-11-16 09:06:48 -08:00
= 35f876e190 Merge branch 'release/2.2' 2018-11-16 00:32:36 -08:00
dotnet-bot 535282f4e6 Merge in 'release/2.2' changes 2018-11-16 08:30:31 +00:00
John Luo 1782a70601
Disable flaky selenium tests while debugging (#4053) 2018-11-16 00:29:46 -08:00
Ben Adams 49d785c934 Use object indirection in HttpContextAccessor (#1066) 2018-11-15 22:34:44 -08:00
Ryan Brandenburg e6eb842cc9 Merge remote-tracking branch 'MusicStore/ryrande/release21ToSrc' into rybrande/MusicStore21 2018-11-15 16:31:12 -08:00
Stephen Halter 7e9b11ef3f
Add test and src folders to Kestrel.sln (#4039)
- Move ThrowHelper.cs into core project
2018-11-15 16:24:31 -08:00
Ryan Brandenburg aed127198a Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in c14416f26f
2018-11-15 16:22:25 -08:00
Nate McMaster d1ee458982
Remove assemblies from the shared framework (#4004)
Remove assemblies from the shared framework that depend on or contain the following:

* Entity Framework Core
* Owin
* Node and SPA services
* Identity UI
* Middleware analysis
* SQL Client
* Third-party oauth integrations
* Runtime razor components
* JsonPatch
2018-11-15 16:18:58 -08:00
dotnet-bot 218281cb8f Merge in 'release/2.2' changes 2018-11-15 23:55:29 +00:00
Pavel Krymets 7e890e8fa0
Update versions of logging site extensions (#4038) 2018-11-15 15:54:50 -08:00
Justin Kotalik f7633d8be9 Fix ANCM websocket disconnect issue 2018-11-15 15:38:27 -08:00
Justin Kotalik 4fae8b9838 Fix websocket disconnect issue 2018-11-15 23:27:48 +00:00
Kévin Chalet 7e14b052ea Add AccessDeniedPath support to the OIDC/OAuth2/Twitter providers (#1887)
* Add AccessDeniedPath support to the OIDC/OAuth2/Twitter providers

* Update the code documentation and remove an unnecessary call to SignOutAsync()

* Introduce a new AccessDenied event and move most of the access denied handling logic to RemoteAuthenticationHandler

* Add ReturnUrlParameter support to RemoteAuthenticationHandler

* Remove AccessDeniedException and introduce RemoteAuthenticationHandler.HandleAccessDeniedErrorAsync()

* Use OriginalPath instead of Request.Path

* Update obsolete code comments

* Add unit tests for the new AccessDenied event

* Allow customizing the access denied path/return URL/return URL parameter from the AccessDenied event
2018-11-15 15:12:42 -08:00
Eilon Lipton 1c4a6955b7
Merge pull request #1831 from woeterman94/patch-1
Change description of role in RequireRole method
2018-11-15 14:41:04 -08:00
Nate McMaster 0af2acd6ff
Remove .NET Framework project templates 2018-11-15 13:32:40 -08:00
Pavel Krymets e11f05863f
Enable MultiProcessorCompilation in more projects (#4036) 2018-11-15 12:54:10 -08:00
Chris Ross (ASP.NET) 88273412b8 Flow the cancellation tokens to ReadAsync and WriteAsync (#2865) 2018-11-15 12:24:27 -08:00
Hisham Bin Ateya b8747c8b6b Adding AddRequestCultureProvider as extension method (#458)
* Adding AddRequestCultureProvider as extension method

Fixes aspnet/AspNetCore#3336
2018-11-15 12:23:10 -08:00
Nate McMaster 68cc5e7846
Merge release/2.2 and aspnet/KestrelHttpServer
* Merges latest changes from the master branch of aspnet/KestrelHttpServer
* Merges changes on release/2.2
2018-11-15 08:41:55 -08:00
Daniel Roth 71cddc3563 Update survey link for 0.7.0 2018-11-15 09:46:08 +00:00
Nate McMaster 3a657c6fdf
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 5d80016b4f
2018-11-14 23:23:58 -08:00
Nate McMaster 6cc9f6f130
Merge release/2.2 and replace submodules
* Replace the aspnet/JsonPatch git submodule and merge the master branch of its source to this repo
* Likewise for aspnet/DotNetTools
* And aspnet/HtmlAbstractions
* merge latest infrastructure changes from the release/2.2 branch
2018-11-14 22:57:10 -08:00
Nate McMaster 0271428dbe
Merge aspnet/KestrelHttpServer release/2.2 and release/2.1 2018-11-14 21:33:33 -08:00
James Newton-King 6270ea48a6
Refactor MVC endpoint integration for templates (#8695) 2018-11-15 17:04:26 +13:00
Nate McMaster f1e60a8083
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in a24b4ee459
2018-11-14 18:16:17 -08:00
Nate McMaster ad84a1cc71
Merge branch 'release/2.1' into release/2.2 2018-11-14 16:28:38 -08:00
Nate McMaster 406c80bfb0
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 4598850c20
2018-11-14 16:03:24 -08:00
Pranav K 1e26b6673d Use 3.0 configuration in RCLs 2018-11-14 15:29:58 -08:00
Pranav K 073b0377e8 Use 3.0 configuration in RCLs 2018-11-14 15:29:45 -08:00
Gert Driesen ea1ee2b68c Do not check if key is present before removing item. (#1064)
Use Nullable<T>.GetValueOrDefault() instead of Nullable<T>.Value when it is known to have a value.
2018-11-14 14:32:50 -08:00
Nate McMaster 0782a9dfa9
Merge aspnet/DotNetTools release/2.2 2018-11-14 14:12:52 -08:00
Nate McMaster 401fd68985
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in d745b8c161
2018-11-14 14:10:28 -08:00
Nate McMaster 27acef3d46
Merge branch 'release/2.1' into release/2.2 2018-11-14 14:01:43 -08:00
Stephen Halter 5d80016b4f Merge branch 'release/2.2' 2018-11-14 13:43:25 -08:00
Stephen Halter 4598850c20 Revert "Use non-pinnable buffer for zero byte read (#3094)"
This reverts commit 0029b8f053.
2018-11-14 13:42:55 -08:00
Nate McMaster 51c9b7355d
Create Kestrel.sln, update documentation and README, and ensure all Kestrel test projects have the test logger installed 2018-11-14 13:14:47 -08:00
Gert Driesen 31a836c9f3 Use Nullable<T>.GetValueOrDefault() instead of Nullable<T>.Value when a it is known to have a value. (#1063) 2018-11-14 12:16:44 -08:00
Gert Driesen 5da68a2bb7 Improve performance and reduce allocations in RouteValueDictionary. (#1062) 2018-11-15 09:15:08 +13:00
Stephen Halter 446f5a8cdf Merge branch 'release/2.2' 2018-11-14 12:06:23 -08:00
Ben Adams 0029b8f053 Use non-pinnable buffer for zero byte read (#3094) 2018-11-14 12:05:26 -08:00
Nate McMaster 02536ff991
Merge source code from aspnet/KestrelHttpServer into this repo 2018-11-14 11:21:49 -08:00
Nate McMaster 9d0c69f277
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 15ba5065a9
2018-11-14 11:18:51 -08:00
David Blankenbush 01c1f7b187 Fix typo (#2066) 2018-11-14 09:33:00 -08:00
Justin Kotalik 1858527fb0 Feedback 2018-11-14 09:32:16 -08:00
Nate McMaster c1c7d711b6
Merge branch 'release/2.1' into release/2.2 2018-11-14 09:27:23 -08:00
Pranav K b2e9365084 Disable instrumentation pass with 3.0 configuration 2018-11-14 09:14:21 -08:00
David Fowler cfe9b26a34
Added support for generic host based IWebHostBuilder (#1580)
- This adds an implementation of IWebHostBuilder as a facade over the IHostBuilder.
This removes the 2 container issue by executing the Startup.ConfigureServies and Startup.ConfigureContainer inline as part of building the IHostBuilder.
- The implementation is highly compatible implementation since it exposes the same IWebHostBuilder interface.
Existing extensions mostly work.
- There are some caveats with this approach.
    - Injecting services into Startup is not extremely constrained to the
    services availble on HostBuilderContext. This includes the IHostingEnvironment
    and the IConfiguration.
    - IStartup is broken when using this pattern because it isn't composable.
    - The IStartupConfigureServicesFilter and IStartupConfigureContainer The before
    and after filters added in 2.1 are also broken  because there's a single container (it could maybe be fixed by downcasting and doing something specific on the GenericHostBuilder instance).
    - Calling into IWebHostBuilder.Build will throw a NotSupportedException since
    this implementation is just a facade over the IHostBuilder.
2018-11-13 21:22:30 -08:00
Nate McMaster a8ec75aac4
Prepare for the 2.2.1 patch
* Generate 2.2.0 package baselines
* Update dependencies to 2.2.0
* Update branding to 2.2.1-servicing
2018-11-13 18:21:09 -08:00
Justin Kotalik f13a49bd2a Fix websocket disconnect issue 2018-11-13 16:57:15 -08:00
Nate McMaster 87092a2590
Update targets and infrastructure for dotnet-watch et. al. 2018-11-13 15:58:22 -08:00
Nate McMaster b3ad3aa989
Merge source code from aspnet/DotNetTools into this repo 2018-11-13 15:37:55 -08:00
Nate McMaster a2d855406b
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in eba014d534
2018-11-13 15:36:38 -08:00
Ben McCallum 42dd66647d refactor: Rename param from requiredValues to allowedValues to better indicate usage. (#1908) 2018-11-13 14:05:55 -08:00
Pranav K fc3f45bf4e Add RazorLanguageVersion.3_0
Fixes https://github.com/aspnet/Razor/issues/2612
2018-11-13 13:36:20 -08:00
James Newton-King b6a1de5676
Validate the maximum number of route segments (#911) 2018-11-14 09:25:14 +13:00
Stephen Halter f223b4a663
Avoid possible tearing in HeartbeatManager.UtcNow (#3092) 2018-11-13 11:58:54 -08:00
Nate McMaster 10c4646146
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in bf9fd0d106
2018-11-13 11:24:22 -08:00
Nate McMaster 9671b9d8c3
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 3b485909eb
2018-11-13 11:21:52 -08:00
Nate McMaster ccd098ecad
Update DataProtection to use custom reference resolution
This changes DataProtection to build as projects instead of a pseudo-submodule. It replaces Package and ProjectReference with <Reference> items which custom targets then resolve.
2018-11-13 10:28:42 -08:00
Pavel Krymets 160d822f52
Do not fallback to creating console logger (#1789) 2018-11-13 09:48:28 -08:00
Nate McMaster bb6901141c
Remove the HtmlAbstractions git submodule and merge Html.Abstractions into this repo 2018-11-13 09:29:27 -08:00
Steve Sanderson dd72c7c38a Marshal oninput events as UIChangeEventArgs (#1673)
* Marshal oninput events as UIChangeEventArgs

- Blazor does handle the oninput event, but it is marshalled as a regular UIEventArgs
- This means that we cannot access the new value of the input element from inside our oninput handler

Addresses #821
2018-11-13 13:40:13 +00:00
Steve Sanderson a48260a5c9 Serialize server-side renders. Fixes #1573 (#1672)
* Add failing test to show the issue

* Make RemoteRenderer serialize render calls on sync context
2018-11-13 13:04:55 +00:00
Steve Sanderson e71db85149 Handle overlapping events (#1655)
* Add failing unit test to demonstrate overlapping events bug

* Handle overlapping events

* Make RemoteRenderer.UpdateDisplay's return task not complete until client sends explict ACK

* CR: Rename UpdateDisplay to UpdateDisplayAsync

* CR: Fix namespace

* CR: Catch synchronous SendAsync exceptions (if they can happen)
2018-11-13 12:08:08 +00:00
Steve Sanderson dc1ad1943d Capture RenderBatch bytes synchronously. Fixes #1223 2018-11-13 11:34:02 +00:00
Doug Bunting 8308d94e39
Quick fixes: Make `dotnet-getdocument` more reliable (#8716)
- use `WaitAny(...)` in inside man
- call `Process.WaitForExit()` twice
- `Flush()` all output `FileStream`s before disposal
- catch `UnauthorizedAccessException` when calling `File.Delete(...)` in case file's in use
- add `/nr:false` to `dotnet msbuild` command line
2018-11-12 11:26:02 -08:00
Pranav K 195a22d92c Move pubinternal to internal in CORS, DataAnnotations, Formatters, TagHelpers 2018-11-12 10:27:26 -08:00
Justin Kotalik de9609b343
Remove implicit reference to InteralAspNetCoreSdk (#3998) 2018-11-12 09:05:17 -08:00
Gert Driesen bd481034fe Improve performance and reduce allocations in RouteParameterParser. (#901) 2018-11-11 17:08:29 +13:00
James Newton-King f6b1138ce3
Fix RouteValueAddressScheme to require metadata to match (#910) 2018-11-10 13:41:44 +13:00
Nate McMaster 1ab08d70ef
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 252ae0c434
2018-11-09 16:17:15 -08:00
Pranav K fcf5593813 Remove additional exe produced as part of updating to 3.0 SDK
Fixes https://github.com/aspnet/Mvc/issues/8681
2018-11-09 15:52:58 -08:00
Pranav K f734efe2e7 Move pubinternal types in Mvc.Razor and Mvc.RazorPages to internal 2018-11-09 15:00:38 -08:00
Henk Mollema e790a9bb10 Inject ICorsPolicyProvider instance through Invoke
This allows for scoped instances of `ICorsPolicyProvider` to be injected in the CORS middleware and prevents turning them into singletons.

Resolves #105
2018-11-09 14:40:51 -08:00
Pranav K ecb7edadc8 Remove WebApiCompatShim 2018-11-09 14:32:28 -08:00
Nate McMaster 0a44f1c068
Merge branch 'release/2.1' into namc/mondo 2018-11-09 13:11:09 -08:00
Nate McMaster fd6b46bc7f
Merge the source code of aspnet/JsonPatch into this repo 2018-11-09 13:07:24 -08:00
Nate McMaster 27a47d07c5
Reorganize the src/WebSockets/ folder to follow new source code organization conventions 2018-11-09 13:06:13 -08:00
Nate McMaster 59ed8df382
Add targets and tools for ensuring consistent package versions between servicing builds 2018-11-09 13:05:31 -08:00
Nate McMaster 74d9728e95
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in 218064c300
2018-11-09 12:49:58 -08:00
Stephen Halter 119a7695aa Merge branch 'release/2.2' 2018-11-09 12:46:07 -08:00
Stephen Halter 5db6394769
Always decrement count on HTTP/2 stream completion (#3087)
#3079
2018-11-09 12:40:51 -08:00
Pranav K 9d2c394b99 SDK does not correctly resolve RazorExtension when multiple instances of RazorConfiguration are present
Fixes https://github.com/aspnet/Razor/issues/2721
2018-11-09 11:51:38 -08:00
Justin Kotalik 4b4bd68fc7
Downgrade stable package versions and remove duplicate test project (#3991) 2018-11-09 11:27:08 -08:00
Pranav K b18526cdc8 Make types in Microsoft.AspNetCore.Mvc.ViewFeatures internal 2018-11-09 11:14:19 -08:00
Justin Kotalik 8356baf7a6
Port ANCM installer changes to 2.1 (#3874) 2018-11-09 11:10:33 -08:00
Adrian Wright 5e0aa0c0fa Fix typos 2018-11-09 10:17:10 -08:00
Jeremy Hutchinson 1661d38971 Return completed task rather than null for empty virtual async methods. 2018-11-09 10:06:20 -08:00
Suchiman 5c13452d96 Add repository in nuspec files 2018-11-09 10:03:51 -08:00
Nate McMaster bd5bf34351
Merge branch 'release/2.2' 2018-11-09 07:29:37 -08:00
Nate McMaster db0d3c333d
Fix NU1605 build error by ensuring package versions are set correctly in subfolder projects (#3987) 2018-11-08 23:40:14 -08:00
Nate McMaster bc44d9d4e0
Remove artifact info for StressTestWebSite.zip 2018-11-08 17:50:34 -08:00
Nate McMaster 0c6e4bebab
Prepare to build the 2.1.7 patch (#3970)
* Prepare 2.1.7 patch
* Add documentation for how we prepare servicing updates
2018-11-08 17:07:18 -08:00
Nate McMaster ba70991d7c
Stop publishing runtime-extension-internal.zip and don't produce StressTestWebsite.zip by default in CI builds (#3984) 2018-11-08 17:01:31 -08:00
Nate McMaster 7f4d10775c
Add signcheck exclusions (#3985) 2018-11-08 16:57:07 -08:00
N. Taylor Mullen 85ebb3585f Turn old completion on when async completion is active. 2018-11-08 15:38:45 -08:00
N. Taylor Mullen d5a6f99c8f Update to use latest completion APIs 2018-11-08 15:38:27 -08:00
Stephen Halter 9053772cd0 Merge branch 'release/2.2' 2018-11-08 15:17:48 -08:00
Stephen Halter 2b87e7be85 Remove invalid Debug.Assert in Http2Connection (#3080)
The _streams dictionary may not contain the completing stream in
OnStreamCompleted since the IsDraining flag is applied beforehand
which allows it to be removed by the request processing thread.
2018-11-08 15:16:27 -08:00
Stephen Halter 50bb0b3bc9
Implement no-op HTTP/2 IHttpUpgradeFeature (#3082) 2018-11-08 15:10:07 -08:00
Alexander Shabunevich bf9fd0d106 Prevent null refs when copying a property with a null value
* Fix aspnet/AspNetCore#3559 Json Patch: System.NullReferenceException while trying to use copy operation from property with null value.

* Fix aspnet/AspNetCore#3559: Missing tests added.
2018-11-08 14:29:34 -08:00
Pavel Krymets 89a3526769
Move runtime site extension to installers (#3954) 2018-11-08 14:13:07 -08:00
Pranav K 8d66f104f7 Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
Pranav K f6265a8549 Update rzc to target netcoreapp3.0
* Allow rzc to work with 3.0 SDK that does not carry 2.x runtime
* Update repo to netcoreapp3.0

Fixes https://github.com/aspnet/Razor/issues/2696
2018-11-08 09:18:58 -08:00
Nate McMaster 416d8cd1ea
Merge branch 'release/2.2' 2018-11-08 08:48:35 -08:00
Nate McMaster 3918724616
Merge branch 'release/2.1' into release/2.2 2018-11-08 08:31:22 -08:00
James Newton-King 1d3521113a
Change namespace to Microsoft.AspNetCore.Http.Endpoints (#1061) 2018-11-08 15:52:01 +13:00
James Newton-King cb83e4f485
Authorization middleware (#1894) 2018-11-08 15:42:35 +13:00
Nate McMaster e0bdbb59f7
Reorganize source code in src/DataProtection
* Pair implementations and unit tests side by side in src/ and test/ folders
* Update .sln and project paths
* Rename unit test projects from Test.csproj => Tests.csproj
* Update KoreBuild properties to allow building projects, not solutions
2018-11-07 17:33:30 -08:00
Stephen Halter b3d72773b1
Fix race conditions in HTTP/2 tests (#3024) 2018-11-07 17:09:21 -08:00
Stephen Halter f6d589a6c4
Remove invalid Debug.Assert in Http2Connection (#3080)
The _streams dictionary may not contain the completing stream in
OnStreamCompleted since the IsDraining flag is applied beforehand
which allows it to be removed by the request processing thread.
2018-11-07 17:08:44 -08:00
Justin Kotalik 263fb650be
Detect shared configuration in ANCM installers and fail if enabled (#3962) 2018-11-07 13:19:27 -08:00
Pranav K d632469909 React to Razor.Design package removal 2018-11-07 13:16:16 -08:00
Steve Sanderson 5a836ef0a6 Update to ws-proxy code matching Mono repo 5e318afd 2018-11-07 12:01:50 +00:00
Steve Sanderson 080399da3d Update MonoPlatform startup code to match newer Mono 2018-11-07 12:01:50 +00:00
Steve Sanderson 0857483a42 Use prebuilt Mono binaries. Remove asm.js fallback (Mono doesn't distribute asm.js builds). 2018-11-07 12:01:50 +00:00
Nate McMaster 011cf21a5c
Merge branch 'release/2.2' 2018-11-06 17:42:44 -08:00
James Newton-King 066c5ce337
Implicitly execute matched endpoint at the end of middleware pipeline (#1059) 2018-11-07 12:57:31 +13:00
James Newton-King d77b370fb1
Add Endpoint extension methods to HttpContext (#1060) 2018-11-07 12:24:15 +13:00
Pavel Krymets f024e779a6 Merge branch 'merge/release/2.2-to-master' of https://github.com/dotnet-maestro-bot/JavaScriptServices into merge/release/2.2-to-master 2018-11-06 15:11:14 -08:00
Pavel Krymets 9d570d791f
Remove obsolete logging API usage (#3953) 2018-11-06 14:50:35 -08:00
Pavel Krymets 7819c2f950
Remove obsolete API usage (#1784) 2018-11-06 14:10:24 -08:00
John Luo 5488932e31 Merge branch 'release/2.2' 2018-11-06 14:04:45 -08:00
John Luo 7ef549416f Add prerelease label to deb installer package version 2018-11-06 14:02:48 -08:00
Justin Kotalik a00118ada1
Disable IIS tests due to web.config generation issue (#3951) 2018-11-06 13:25:50 -08:00
Nate McMaster df46dfee73
Merge branch 'release/2.2' 2018-11-06 12:13:05 -08:00
Nate McMaster 7f95d6af34
Remove everything from the package archive except Microsoft.AspNetCore.App 2018-11-06 09:43:51 -08:00
BrennanConroy 71e2f45450
Wrap log in enabled check 2018-11-06 09:24:34 -08:00
Nate McMaster 4f887e5cd4
Merge branch 'release/2.1' into release/2.2 2018-11-06 09:23:17 -08:00
Nate McMaster 17cccade43
Add IsFinalBuild switch to Windows installer script (#3892) 2018-11-06 09:06:10 -08:00
Liam Dawson 9de04520e0 Add `user-secret init` command for adding a UserSecretsId to a project file (#500) 2018-11-05 10:44:50 -08:00
Justin Kotalik c5e7bd244d Merge branch 'release/2.2' 2018-11-05 09:10:29 -08:00
Justin Kotalik 90b11de8f1
Get IISIntegration CI working (#3875) 2018-11-05 08:45:11 -08:00
John Luo e8fec8eb52
Enable symbols generation for crossgen'ed assemblies on linux-arm (#3877) 2018-11-02 18:06:04 -07:00
John Luo faba76cfa1 Merge branch 'release/2.2' 2018-11-02 15:57:49 -07:00
John Luo d36a480253 Build and crossgen linux-arm shared framework in Docker container 2018-11-02 15:14:19 -07:00
Javier Calvarro Nelson 7421ba8087
Merge release/2.2 -> master
Fixes integrity validation in Identity UI V3
2018-11-02 14:57:25 -07:00
Javier Calvarro Nelson 99f352a92f
javiercn/check-integrity-validation (#2052) 2018-11-02 14:48:06 -07:00
Justin Kotalik dcece2090c
Remove IISIntegration submodule, add CI (#3867) 2018-11-02 14:34:31 -07:00
Nate McMaster 0e24161d42
Ensure Microsoft.AspNetCore.Server.IntegrationTesting.IIS doesn't produce a finalized version 2018-11-02 11:07:45 -07:00
John Luo 3327267396 Merge branch 'release/2.2' 2018-11-02 11:03:05 -07:00
Stephen Halter f2a383dc76
Don't count long tick intervals against rate measurements (#3070)
This might help address #3015

This only affects rate timeouts. Normal fixed timeouts might deserve the same treatment, but that would require some additional locking to ensure we don't modify the sentinel value.
2018-11-02 10:58:30 -07:00
Nate McMaster 50e1e60247
Merge branch 'release/2.2' 2018-11-02 10:49:11 -07:00
Justin Kotalik afab1a5be6
Remove IISIntegration submodule, add CI [2.2] (#3865) 2018-11-02 10:22:04 -07:00
Nate McMaster b7850f9865
Remove Microsoft.AspNetCore.Razor.Design from Microsoft.AspNetCore.App 2018-11-02 10:14:05 -07:00
Nate McMaster cb85ffa8f6
Merge branch 'release/2.2' 2018-11-02 10:10:49 -07:00
Mike Lorbetske 2af66e4eba
Merge pull request #510 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-11-02 09:42:33 -07:00
Nate McMaster 303ee1ff56
Fix the filename for the debian installer 2018-11-01 22:50:58 -07:00
Nate McMaster 27deb6f6f8
Remove dependency on Docker from MSBuild targets (#3866)
Changes:
* This removes MSBuild targets which invoke `docker` commands to build
   deb and rpm installers
* Remove installer targets from the KoreBuild context. Put them into
   separate project files
* Simplify the targets used to build installers by reducing duplicate
   variable names and deeply nested MSBuild contexts
* Remove unused dependencies from the Docker build context
2018-11-01 15:02:29 -07:00
Nate McMaster b56dc070fb
Ensure ApiAuthorization.IdentityServer doesn't build a 2.2.0 package with the rest of RTM (#2049) 2018-11-01 13:32:23 -07:00
Mike Lorbetske d745b8c161 Fix #485 2018-11-01 13:00:20 -07:00
Mike Lorbetske 22a32500ac Fix several issues
Fix #502

Fix #492

Fix #491

Fix #486

Improves #489
2018-11-01 13:00:20 -07:00
Javier Calvarro Nelson 405adf3ddd Merge remote-tracking branch 'origin/release/2.2' 2018-11-01 11:50:52 -07:00
Justin Kotalik 83fe4c089b
Remove M.A.Server.IIS package from 2.1. Fix signing issues (#3859) 2018-11-01 11:30:31 -07:00
Javier Calvarro Nelson 5e10eb1d1a Support for ApiAuth using Identity Server 2018-11-01 11:03:28 -07:00
Pranav K 1fde1cc061 React to Razor.Design package removal 2018-11-01 07:37:47 -07:00
Justin Kotalik 868dc32c97 Merge branch 'release/2.2' 2018-10-31 21:04:25 -07:00
Justin Kotalik d6a5ef57af Merge remote-tracking branch 'i/jkotalik/30Merge' into jkotalik/new30Merge 2018-10-31 20:05:44 -07:00
Justin Kotalik 69b7b427fc
Merge pull request #3781 from aspnet/jkotalik/21Merge 2018-10-31 19:40:28 -07:00
Justin Kotalik 3f04c928f4 Merge branch 'jkotalik/21Merge' into jkotalik/22Merge 2018-10-31 18:38:00 -07:00
Justin Kotalik fc17530148 Merge remote-tracking branch 'i/jkotalik/22Merge' into jkotalik/22Merge 2018-10-31 18:25:22 -07:00
Justin Kotalik ce68c8e5be remove submodule 2018-10-31 18:14:34 -07:00
Justin Kotalik 04d1f6813c Merge remote-tracking branch 'i/jkotalik/21Merge' into jkotalik/21Merge 2018-10-31 17:18:48 -07:00
Justin Kotalik ebb0bfefb7 Reorganize source code in preparation to move into aspnet/aspnetcore 2018-10-31 16:57:49 -07:00
Stephen Halter 153ff670a1 Merge branch 'release/2.2' 2018-10-31 16:51:55 -07:00
Justin Kotalik 7fbedc602c Move 22 into subfolder 2018-10-31 16:40:21 -07:00
Justin Kotalik 55e809c5dc Move more files 2018-10-31 16:38:30 -07:00
Justin Kotalik 040fb6f18a Move IISIntegration into subfolder 2018-10-31 15:51:17 -07:00
Pranav K 17ed44c868
React to Razor.Design package removal (#8680)
* React to Razor.Design package removal

* Remove references to packages (Razor.Design, Razor.Extensions) solely used to bring in compiler \ targets
* Target netcoreapp3.0 in samples and tests to allow Sdk to infer values
2018-10-31 15:38:22 -07:00
Stephen Halter d50c0c13b9
Measure the rate of all HTTP/2 output (#3067)
Prior to this, only the response body counted toward the HTTP/2 response data rate. This PR aligns the HTTP/2 logic closer to the HTTP/1.x logic and measures the rate for all HTTP/2 response data.

This PR also accounts for all response bytes written, not just those that immediately induced backpressure.
2018-10-31 15:34:17 -07:00
BrennanConroy cd4a1c036a
Remove SignalR.Redis package (#3241) 2018-10-31 15:16:44 -07:00
Doug Bunting e4292c236c
Merge pull request #8682 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-31 14:47:16 -07:00
Pranav K e27088d9d9 React to Razor.Design package removal 2018-10-31 14:26:52 -07:00
Ryan Nowak 891ae28851 Merge branch 'release/2.2' 2018-10-31 14:24:26 -07:00
Doug Bunting a6199bbfba
Add integration and functional tests of `[BindRequired]` on page properties (#8677)
- #7353
2018-10-31 14:15:14 -07:00
Ryan Nowak 3b485909eb Fix aspnet/AspNetCore#3634 2018-10-31 14:12:55 -07:00
Ryan Nowak c9a53b9067
Merge pull request #522 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-31 13:26:02 -07:00
Ryan Nowak c802d5ef5f
Redesign HealthStatus (again) (#520)
* Redesign HealthStatus (again)

This change brings back the ability to return Healthy/Degraded/Unhealthy
in a HealthCheckResult. We tried making this pass/fail in 2.2.0-preview3
and folks writing health checks for their own use pointed out (rightly
so) that it was too limited.

It's still possible for the app developer to configure the failure
status of a health check, but it requires the health check author to
cooperate.

I also got rid of HealthStatus.Failed since it raises more questions
than it answers. It's really not clear that it's valuable for a health
check for behave different when throwing an unhandled exception.

We would still recommend that a health check library handle exceptions
that they know about and return `context.Registration.FailureStatus`.
2018-10-31 12:51:14 -07:00
Pranav K f2af66bc31
Cleanup InferParameterBindingInfoConvention (#8665)
* Cleanup InferParameterBindingInfoConvention

* Infer BindingSource for collection parameters as Body. Fixes https://github.com/aspnet/Mvc/issues/8536
* Introduce a compat switch to keep 2.1.x LTS behavior for collection parameters
* Do not infer BinderModelName in InferParameterBindingInfoConvention
2018-10-31 12:24:37 -07:00
Ryan Nowak 707692cbe1 Update to Dev16 Roslyn 2018-10-31 12:17:22 -07:00
Nate McMaster ba87c3fbd1
Remove Microsoft.AspNetCore.All (#3761)
This shared framework and metapackage are obsolete. The recommended replacement is Microsoft.AspNetCore.App.
2018-10-31 12:13:05 -07:00
Doug Bunting 579341c8d6
Merge branch 'master' into merge/release/2.2-to-master 2018-10-30 21:08:15 -07:00
Doug Bunting c74a945dda
Convert `RouteValueDictionary` values to `string` using `CultureInfo.InvariantCulture` (#8674)
* Convert `RouteValueDictionary` values to `string` using `CultureInfo.InvariantCulture`
- #8578
- user may override this choice in one case:
  - register a custom `IValueProviderFactory` to pass another `CultureInfo` into the `RouteValueProvider`
- values are used as programmatic tokens outside `RouteValueProvider`

nits:
- take VS suggestions in changed classes
- take VS suggestions in files I had open :)
2018-10-30 20:09:17 -07:00
Hao Kung da9318f431
Block enabled 2fa in the UI without cookie consent (#2035)
* Block enabled 2fa in the UI without cookie consent

* Guard against feature not being there

* Set up tweak

* Fix
2018-10-30 16:23:55 -07:00
Nate McMaster 4c9c4a5cc8
Merge branch 'release/2.2' 2018-10-30 15:22:50 -07:00
Nate McMaster 9405d058fa
Merge branch 'release/2.1' into release/2.2 2018-10-30 14:54:51 -07:00
Pranav K 734b919b02 Respect SuppressInferBindingSourcesForParameters
Fixes https://github.com/aspnet/Mvc/issues/8657
2018-10-30 14:37:21 -07:00
Pranav K 0bd6d135c1 Move targets, rzc and extension assembly in to the Sdk 2018-10-30 14:30:20 -07:00
Pranav K 16b15fcb2a
Merge pull request #8672 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-30 13:33:07 -07:00
Piotr Wosiek af6527dcef Fix XML doc on HttpMethodAttribute and derived ones 2018-10-30 13:21:15 -07:00
Hao Kung 93799664bb
Merge pull request #2031 from dotnet-maestro-bot/merge/release/2.2-to-master 2018-10-30 12:57:29 -07:00
Filip W 187e89f6f0 Do not throw a null reference from request.GetDisplayUrl() (#1057) 2018-10-30 12:32:26 -07:00
Ajay Bhargav Baaskaran 0948660e8c Merge branch 'release/2.2' 2018-10-30 12:07:04 -07:00
Nate McMaster d7b9fd4807
Update TFM to include netcoreapp3.0 2018-10-30 11:26:46 -07:00
Nate McMaster 969fb9bf48
Update projects in src/Framework/ to netcoreapp3.0 2018-10-30 10:41:24 -07:00
Ryan Nowak 3e6b3a0067
Merge pull request #521 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-29 17:03:14 -07:00
Ryan Nowak 4c94bc272b Rename anti-caching option
- Renamed the property for configuration response caching headers
- Renamed the options class to avoid conflicts with other type names

Fixes https://github.com/aspnet/Diagnostics/issues/509
2018-10-29 16:44:45 -07:00
Nate McMaster 5e4166f940
Merge branch 'release/2.2' 2018-10-29 16:05:19 -07:00
Ryan Nowak 6c1bee1940 Classify non-C# inside C#
Fixes a bug with preview formatting for FAR.

So when we ask the Roslyn API to classify C# for us, it will only
classify the actual C# tokens. We are responsible for filling in the
gaps and whitespace.

The bug is that the following text would have all of its whitespace
removed in the VS FAR preview window.

```
@{ var foo = "Hello, world!"; }
```

Would look like:
```
@{varfoo="Hello, world!";}
```

This fixes the issue and makes it look like what one would expect.
2018-10-29 14:35:13 -07:00
Ryan Nowak a3d0c8f634 Fixes for excerpt service
We had a bug where were not returning the correct span for highlighting.
Fixed this.

Also we have a problem here, we're using types in our tests that are
coming from Roslyn - however we're not getting IVT for our test
assemblies. So some additional pain is required.
2018-10-29 14:35:13 -07:00
Ryan Nowak 5229e65962 Add GeneratedDocumentTextLoader 2018-10-29 14:35:13 -07:00
Ryan Nowak e637e17d34 Add support for getting the output version
This was missed in an earlier PR.
2018-10-29 14:35:13 -07:00
Pranav K 4015c9863e
Merge pull request #8664 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-29 12:54:42 -07:00
Ajay Bhargav Baaskaran 8674dd9236 Removed duplocate Id for a RazorDiagnostic 2018-10-29 11:25:29 -07:00
Pranav K 13cf754425
Merge pull request #8663 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-29 09:59:34 -07:00
Pranav K 35d2ab37f7 Allow passing a dictionary to ValidationProblemDetails
Fixes https://github.com/aspnet/Mvc/issues/8645
2018-10-29 09:56:17 -07:00
Pranav K ccde910b29 Specify TaskCreationOptions when using TCS
Fixes https://github.com/aspnet/Mvc/issues/8558
2018-10-29 09:33:05 -07:00
Ryan Nowak 4d44639a51 Incorporate breaking changes from CPS 2018-10-29 08:51:21 -07:00
Ryan Nowak 08699702ad
Merge pull request #518 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-27 21:57:41 -07:00
Ryan Nowak 1afd5b2594 Don't use Map
Fixes aspnet/Diagnostics#511 and aspnet/Diagnostics#514

It's really confusing to people that we use Map. Users expect that the
URL they provide for the health check middleware will only process
exact matches. The way it behaves when using map is not optimal for some
of the common patterns.
2018-10-27 21:01:55 -07:00
Doug Bunting 0cea1b2a5f
Merge pull request #8656 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-27 16:53:19 -07:00
Doug Bunting 37e562902f Support single `IDocumentProvider` method signature
- #8593
- also find `IDocumentProvider` using a more-laborious process
  - `Type.GetType(string)` requires an assembly-qualified name and we don't know the assembly
- default method name now `GenerateAsync`
- only supported signature is `public Task GenerateAsync(string, TextWriter)`

also:
- handle more error cases in the tool's inside man
- avoid an empty document file if `IDocumentProvider.GenerateAsync(...)` fails
- unwrap an `AggregateException`

nits:
- remove duplicate comments
- change `GetDocumentCommandWorker.TryProcess(...)` to return `false` on failure
  - minor because return value is currently ignored
- rename `GetDocumentCommandContext.Output` -> `OutputPath`
- reflect recent change to `dotnet-getdocument`'s `Resources.resx` file in its designer file
2018-10-27 15:27:33 -07:00
Nate McMaster eba014d534
Add additional signing configuration for external assemblies in the tools packages 2018-10-27 02:06:55 -07:00
Nate McMaster 3c0f4ef14f
Merge branch 'release/2.2' 2018-10-27 01:31:58 -07:00
Nate McMaster c8b1d2cfe5
Merge branch 'release/2.1' into release/2.2 2018-10-27 01:31:12 -07:00
Nate McMaster d957ac9da0
Remove Microsoft.DotNet.GlobalTools.Sdk, upgrade BuildTools, and change VSIX signing cert name 2018-10-27 01:28:14 -07:00
Nate McMaster e7edf237b5
Merge pull request #2679 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-26 23:53:59 -07:00
Nate McMaster 6ecf5374c6
Use 3PartySHA2 instead of 3PartyDual for code-signing Newtonsoft.Json.dll (#2678) 2018-10-26 23:40:22 -07:00
James Newton-King 1c61f3538e
Merge release/2.2 2018-10-27 11:56:04 +13:00
Hao Kung 6c45bfc0dc
Merge 2.1 -> 2.2 (#2030) 2018-10-26 14:52:03 -07:00
Nate McMaster fa3cfd08eb
Remove IdentityService (#2028)
As a part of preparing this repo for merging into aspnet/AspNetCore, this code is being removed as it is currently not in a "shipping" state for 2.1.
2018-10-26 14:05:44 -07:00
Nate McMaster d2af13517b
Merge branch 'release/2.2' 2018-10-26 13:39:01 -07:00
Nate McMaster ba67b04d9d
Ensure IsTestProject=false in Microsoft.AspNetCore.Identity.Specification.Tests.csproj
This isn't really a test project. It's a class library which contains testing compontents. Because 'xunit' is referenced, IsTestProject=true, which
messes up some of the build logic we have for handling code signing and test runners
2018-10-26 12:26:16 -07:00
James Newton-King 6bb292cfcc
Add test for metadata precedence (#8642) 2018-10-27 07:59:15 +13:00
Nate McMaster 6bafc157e7
Update code signing config to exclude .js and .ttf files in template packages 2018-10-26 11:51:23 -07:00
Ryan Brandenburg 2adf798ba0 Fix peer dependencies in React templates 2018-10-26 11:46:48 -07:00
Pranav K a74235c7ec Reflect Access-Control-Request-Headers and Access-Control-Request-Method when policy is configured to support wildcard
Fixes https://github.com/aspnet/AspNetCore/issues/3684
2018-10-26 11:11:33 -07:00
Stephen Halter b2c65bd346 Merge branch 'release/2.2' 2018-10-26 11:01:02 -07:00
Javier Calvarro Nelson 2ab58c47f7 Merge branch 'release/2.2' 2018-10-26 10:55:39 -07:00
Stephen Halter 395b681348
Add HTTP/2 request body data rate limit (#3051) 2018-10-26 10:46:46 -07:00
Nate McMaster ee11d10f04
Remove BrowserLink and Scaffolding gitsubmodules (#3730)
As a part of simplifying the way we build ASP.NET Core, the BrowserLink and Scaffolding repos and the packages they produce will be independent from aspnet/AspNetCore.
2018-10-26 10:17:57 -07:00
Pavel Krymets 99f2ecd02f
Move transformation tests from AzureIntegration (#3726) 2018-10-26 09:49:19 -07:00
Hao Kung ec176b2e40
Merge release/2.2 (#1055)
* Add safe copy for enumeration (#1052)
2018-10-25 18:43:21 -07:00
Ryan Brandenburg 89d493bac8
Merge pull request #805 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-25 16:23:28 -07:00
Javier Calvarro Nelson 08074b6714
Merge pull request #2025 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-25 15:47:18 -07:00
Wouter Huysentruit 168be7b561 Use the correct logging category inside RegisterModel 2018-10-25 15:44:59 -07:00
Javier Calvarro Nelson 51de582c83
[Fixes #2002] UI package has path error (#2024) 2018-10-25 15:33:49 -07:00
Ryan Brandenburg 958e0b1d9f Get rid of Page1 Page2 2018-10-25 15:12:31 -07:00
Nate McMaster ae122d9bc0
Include rid-specific runtime packages in the list of artifacts 2018-10-25 14:42:00 -07:00
Nate McMaster 77a3089c8d
Workaround quirks in NuGet
* Disable package analysis because it incorrectly issues NU5109 on macOS, but not windows
* Normalize file paths because if you mix slashes, NuGet will just skip the entire folder
* Normalize the project path given to restore. If it not normalized, restore skips the project and issues a warning
2018-10-25 14:27:46 -07:00
Ryan Brandenburg b05185f1f1
ESLint (#796)
Include ESLint in react templates
2018-10-25 12:27:39 -07:00
Ryan Brandenburg 9b3d1f56fd
Handle peer dependency warnings (#794)
Handle peer dependency warnings
2018-10-25 12:00:49 -07:00
Nate McMaster 9d878dddf1
Merge branch 'release/2.2' 2018-10-25 11:12:59 -07:00
Nate McMaster 8c20892290
2.2: Remove BrowserLink from templates (#801)
This removes support for the `--use-browserlink` flag from the templates. The Microsoft.VisualStudio.Web.BrowserLink package will still ship in 2.2, but users who want this should use `dotnet add package Microsoft.VisualStudio.Web.BrowserLink` instead.
2018-10-25 10:49:44 -07:00
Pranav K 70aad7cb70
Merge branch 'master' into merge/release/2.2-to-master 2018-10-25 09:35:47 -07:00
Pranav K 2d6643bc85 Cleanup Microsoft.NET.Sdk.Razor package output
* Remove unnecessary \ incorrect package references
* Remove extraneous build outputs in the tasks project that weren't present when the tasks were in Razor.Design
2018-10-25 09:26:04 -07:00
Pavel Krymets 044f613804
Include failed HRESULTs and exceptions in FREB log (#1548) 2018-10-25 08:48:21 -07:00
Justin Kotalik de185b6a06
Duplicate debug log handle for console logging (#1558) 2018-10-25 08:47:31 -07:00
Nate McMaster 11d0b328ba
Remove VS.Web.CodeGeneration packages from the fallback folder cache (#3717) 2018-10-24 21:05:44 -07:00
Nate McMaster 654debe8fb
Merge branch 'master' into merge/release/2.2-to-master 2018-10-24 17:51:56 -07:00
Nate McMaster 7bde7399e9
2.2: remove Microsoft.VisualStudio.Web.CodeGeneration.Design from templates (#802)
This package does not need to be in the project until someone uses Visual Studio code generation. Visual Studio will automatically add this package when scaffolding is used for the first time, so it's unnecessary to put this in our templates.
2018-10-24 17:42:02 -07:00
Nate McMaster 968df9578b
Refactor shared framework projects targets and project layout (#3703)
This refactors the targets used to build the shared framework and its .zip files. There are lots of reasons motivating this: Arcade convergence, migration to VSTS, making it easier to build this locally, etc.

Changes:
* Moves move content of build/Sharedfx.{props/targets} into eng/targets/SharedFx.Common.{props/targets}
* Update the build to produce a `runtime.$rid.Microsoft.AspNetCore.App` package (not just the one with symbols in it)
* Refactor the targets which produce .tar.gz/.zip files into separate projects in `src/Installers/`
* Refactor installers, unit tests, and the framework projects to use ProjectReference to flow dependencies between different parts of the build.
* Makes it easier to build the shared framework locally (for the inner dev loop, you can run `dotnet build -p src/Framework/Microsoft.AspNetCore.App/src/ -r win-x64`)
2018-10-24 15:42:06 -07:00
Hao Kung 91db78cf92
Add safe copy for enumeration (#1052) 2018-10-24 15:10:19 -07:00
Nate McMaster e3dc0edecb
Merge branch 'release/2.2' 2018-10-24 13:07:05 -07:00
Nate McMaster 01f9af21c5
Temporarily stop producing a package for dotnet-httprepl (#505)
This package isn't quite ship-shape yet, so we're delaying this from shipping with 2.2 RTM.

Setting IsPackable=false so we avoid accidentally building a 2.2.0 RTM version of this package along with the rest of the 2.2.0 RTM tools in this repo, like dotnet-watch.
2018-10-24 13:02:25 -07:00
Javier Calvarro Nelson aa88f16b08
Fix cors with creds (#193) 2018-10-24 12:56:07 -07:00
Justin Kotalik 4437c72e30 Merge branch 'merge/release/2.2-to-master' of https://github.com/dotnet-maestro-bot/Templating into merge/release/2.2-to-master 2018-10-24 12:05:12 -07:00
Justin Kotalik 70a786adcd
Make AspNetCoreHostingModel element not be insert when targeting net461 and inprocess => InProcess (#797) 2018-10-24 11:36:07 -07:00
Pranav K ce11eb9b71
Merge pull request #8641 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-24 11:19:50 -07:00
Pranav K 2544926b2f Provide a convenience API to configure ApiBehaviorOptions 2018-10-24 10:10:33 -07:00
Ryan Nowak 357657fc45 Implements versions for generated code
This change implements version tracking the inputs and outputs of
generated code.

Version tracking is still best-effort - meaning that in some cases a
perfect system could avoid doing more work. However, since we base the
versions off of all of the inputs, we now that the guarantee that code
generation operations that happen 'out of order' will always result in
the newer inputs generating the newer outputs.

Fixes: https://github.com/aspnet/Razor/issues/2650
2018-10-23 18:19:18 -07:00
Chris Ross 253f81c2f2
Merge pull request #3049 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-23 16:13:35 -07:00
Chris Ross (ASP.NET) a8073167e7 Revert "Flush response headers #3031"
This reverts commit 277a5502fd.
2018-10-23 15:49:11 -07:00
Chris Ross 9c40a7237c
Merge pull request #260 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-23 15:47:22 -07:00
Chris Ross 268290a8b5
Merge pull request #378 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-23 14:54:53 -07:00
Chris Ross a5fcd9dd87
Add application/wasm #3681 (#259) 2018-10-23 14:43:47 -07:00
Chris Ross 2d3ad1cb0f
Add application/wasm to the default compression list (#377) 2018-10-23 14:39:47 -07:00
Stephen Halter d0fc981c7e Merge branch 'release/2.2' 2018-10-23 10:47:14 -07:00
James Newton-King 79117fa08a
Merge 2.2 to master 2018-10-23 22:04:56 +13:00
Ryan Nowak 81904f579a Add definitions for Document Services
This change adds mock ups of the interfaces that we've been designing as
part of Razor FAR as well as the implementations. This isn't wired up to
anything yet in this PR, but the basic functionality here is stable
enough for us to stabilize and review.

For now we have the interface definitions in the Razor codebase until a
build of Roslyn is available with these definitions + IVT for us to use
them.
2018-10-22 20:47:31 -07:00
James Newton-King 40959a97e7
Fix link generation of routes with default values (#8616) 2018-10-23 16:10:43 +13:00
James Newton-King e9737a90e5
Endpoing routing 3.0 registration (#8470) 2018-10-23 14:04:12 +13:00
James Newton-King 0ef4b4173c
Endpoint routing startup experience (#889) 2018-10-23 13:54:36 +13:00
James Newton-King be0e602d2f
Merge pull request #888 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-23 13:40:24 +13:00
Gert Driesen 25b5ab2c39 Improve performance and reduce allocations in RouteValuesAddressScheme. (#879) 2018-10-23 13:25:43 +13:00
Gert Driesen bc482cd2b0 Minor performance improvement for DfaMatcherBuilder (#854) 2018-10-23 13:25:08 +13:00
James Newton-King 74336f10c7
Merge pull request #887 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-23 11:33:13 +13:00
Chris Ross (ASP.NET) 32532078d6 Log binary data as a parameter #2860 2018-10-22 14:51:29 -07:00
Gert Driesen bcbf2a1a68 Minor performance improvement for UriBuildingContext.ToPathString() with zero-length path. (#880) 2018-10-23 10:20:52 +13:00
Gert Driesen c93e3a76ff Eliminate redundant isValid check from DefaultEndpointSelector.ProcessFinalCandidates(...). (#881) 2018-10-23 10:20:30 +13:00
Gert Driesen 26e5ea3274 Improves performance and reduce allocations in DefaultEndpointDataSource (#882) 2018-10-23 10:20:15 +13:00
Ryan Nowak 4943bc4896 Remove LinkGenerationTemplate
This doesn't really accomplish our goals for 2.2 - I don't have a clear
scenario where I would tell a developer to use this VS something else.
Will reevaluate in 3.0
2018-10-22 14:18:22 -07:00
James Newton-King bc140fc491
Merge pull request #885 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-23 09:18:17 +13:00
Ryan Brandenburg 707b1bbf3b Fix link 2018-10-22 12:48:30 -07:00
Justin Kotalik ffa72f5a0c
Fix two string allocation issues (#1539) 2018-10-22 11:23:14 -07:00
Ryan Nowak a3e999762f
Merge pull request #8630 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-22 07:58:36 -07:00
Ryan Nowak 76a30b0911 Remove LinkGenerationTemplate
This doesn't really accomplish our goals for 2.2 - I don't have a clear
scenario where I would tell a developer to use this VS something else.
Will reevaluate in 3.0
2018-10-21 15:39:59 -07:00
James Newton-King 1d05592cd7
Allow parameter names to match required keys in templates (#872) 2018-10-22 11:29:41 +13:00
James Newton-King fbfbc35b11
Merge pull request #884 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-22 09:09:21 +13:00
Gert Driesen 2081160678 Improve performance and reduce allocations of TemplateSegment (#856) 2018-10-22 08:35:35 +13:00
Gert Driesen 0f90a15cf1 Use Array.Clone() to copy arrays, and avoid copy where applicable (#855) 2018-10-22 08:34:11 +13:00
James Newton-King 96953546e3
Merge pull request #878 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-22 08:29:41 +13:00
Gert Driesen 42914d93ca Declare out variables inline, and use discards (#873) 2018-10-21 14:05:05 +13:00
Ryan Nowak baa71375d0
Add and process notifications for Imports (#2656)
This builds support for tracking the effect of changes to imports on
other documents, and completes our model for being able to keep
generated code up to date.
2018-10-19 21:39:43 -07:00
Chris Ross (ASP.NET) 277a5502fd Flush response headers #3031 2018-10-19 18:00:24 -07:00
Ryan Nowak 61ca323a4a Merge branch 'release/2.2' 2018-10-19 17:25:09 -07:00
N. Taylor Mullen 333989af7a Update to use latest completion APIs 2018-10-19 15:10:19 -07:00
N. Taylor Mullen c371fa29fe Make it so the RazorDirectiveCompletionProvider doesn't load extra assemblies in C#.
- Added a layer of indirection to allow for proper Lazy loading of Razor and future async completion specific assemblies.
2018-10-19 15:10:19 -07:00
Nate McMaster dc37a2c23d
Merge branch 'release/2.2' 2018-10-19 14:11:58 -07:00
Pranav K 79458c16fd
Merge pull request #8626 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-19 13:57:59 -07:00
Patrick Westerhoff ddbe0fef26 Allow custom handling of antiforgery failures
To enable custom handling of antiforgery validation failures, use an
`AntiforgeryValidationFailedResult` which is just a `BadRequestResult`
but allows to be identified explicitly inside always-running result
filters using the `IAntiforgeryValidationFailedResult` marker interface.
2018-10-19 13:47:08 -07:00
Pranav K 8a183bb4f4 Allow serving Razor files with leading underscore
Fixes https://github.com/aspnet/Mvc/issues/8617
2018-10-19 13:43:35 -07:00
Pavel Krymets f1ce94a2cf
Add support for building 2.1 based Server.IIS package (#1534) 2018-10-19 12:42:16 -07:00
Pavel Krymets d3216a66c1
Create a build configuraition to build OOB logging site extension package (#3643) 2018-10-19 12:19:33 -07:00
Chris Ross (ASP.NET) 23a4e11261 Send RST for canceled HTTP/2 writes #3007 2018-10-19 11:03:44 -07:00
Nate McMaster 84ca21ed06
Merge branch 'release/2.2' 2018-10-19 10:26:30 -07:00
Nate McMaster 36add43f11
Merge branch release/2.1 into release/2.2 2018-10-18 16:53:03 -07:00
Justin Kotalik b92c82e97f
Add static shim test (#1505) 2018-10-18 13:58:56 -07:00
dotnet-maestro-bot 31849575f1 Upgrade to .NET Core 2.1.6-servicing-27017-02 2018-10-18 13:48:06 -07:00
Ryan Nowak 4927525519 Fix a bug in the span mapping code
This wasn't quite doing the right thing, and it's simpler than we make
it to be.
2018-10-18 13:46:24 -07:00
Ryan Nowak bafe1b27ff Add line numbers for design time directives
Addresses a blocking issue for FAR of types when used in user-code in a
directive. The FAR infrastructure is skipping over the directive code
because it's mapped to `#hidden`. As you can see in the code, the token
provided by the user is already included in the projection mappings.

I think we didn't do this before because we didn't expect this code to
need line numbers - it's not really debuggable, and design-time codegen
doesn't happen when you build the project.

I think it's OK for now that we don't line-map (or include) directives
based on view imports. If you trigger FAR on an `@inject ...` in an
import for instance, you'll find the reference for the view import file.
That seems pretty good, and the only cases I can really imagine it being
broken would be for go-to-definition (within a Razor view). Lets revisit
in the future based on feedback.
2018-10-18 13:46:24 -07:00
Pavel Krymets 293d165a80
Fix flaky disconnect test (#1533) 2018-10-18 12:37:13 -07:00
Chris Ross (ASP.NET) d3f2ca9c9a Do not inherit socket handles #2789 2018-10-18 12:19:58 -07:00
Chris Ross 8f8a09fdf2
Merge pull request #3029 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-18 11:22:00 -07:00
Steve Sanderson f0638877fa Rename "Fixed" to "IsFixed" 2018-10-18 09:57:41 +01:00
Steve Sanderson 18df30568c Support "Fixed" mode for <CascadingValue> 2018-10-18 09:57:41 +01:00
Steve Sanderson 4a6f471d12 Add Cascading flag to Parameter (#1564)
... so that components that pass through an arbitrary set of parameters can choose to filter out cascading ones if they want.
2018-10-18 09:37:46 +01:00
Justin Kotalik 22c737c3ee
Merge pull request #3663 from aspnet/release/2.2
Revert restarting was when installing ANCM (#3662)
2018-10-17 22:45:39 -07:00
Justin Kotalik 6dc4673881
Revert restarting was when installing ANCM (#3662) 2018-10-17 22:44:41 -07:00
Meir Blachman dd807a6d70 using Microsoft.Extensions.CommandLineUtils for blazor-cli 2018-10-17 22:33:03 -07:00
Nate McMaster 674401235b
Fix local builds of src/DataProtection/build.cmd 2018-10-17 17:35:01 -07:00
Chris Ross (ASP.NET) 1d3090f056 Only reset the request body pipe for HTTP/1 #3006 2018-10-17 16:28:33 -07:00
Pranav K 1c1aabc605
Merge branch 'master' into merge/release/2.2-to-master 2018-10-17 16:22:55 -07:00
Nate McMaster 6994c4fc48
Merge release/2.2 and aspnet/WebSockets master branch 2018-10-17 16:06:14 -07:00
Nate McMaster 9ce78f36d5
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in afeb7fe49b
2018-10-17 15:57:02 -07:00
James Newton-King e51da32e9d
Prefer StringComparison over StringComparer when not using comparers (#870) 2018-10-18 11:55:33 +13:00
Nate McMaster d991c50c82
Merge release/2.1 and aspnet/WebSockets release/2.2 2018-10-17 15:47:04 -07:00
Pranav K 27e75e7a51
Add a switch to allow turning on ValidationVisitor shortcircuiting (#8599) 2018-10-17 15:47:01 -07:00
Nate McMaster 24f85a200c
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in a036f920b8
2018-10-17 15:34:25 -07:00
Nate McMaster b1427c759b
Remove the WebSockets submodule 2018-10-17 14:53:22 -07:00
Nate McMaster 9e952a22ed
Merge source code from aspnet/WebSockets 2018-10-17 14:30:38 -07:00
Nate McMaster 5d84c92b74
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganiziation, this source code was found in 67f2c3149e
2018-10-17 14:27:00 -07:00
Ryan Nowak d17d9155c7 Port aspnet/Routing/pull/858 2018-10-17 14:26:30 -07:00
Lukas Bickel fb6427a46a escape quotes in event handler attribute content 2018-10-17 14:18:22 -07:00
Gert Driesen 5c31f1f455 Add Remove(string key, out object value) overload to RouteValueDictionary (#858)
* Add Remove(string key, out object value) overload to RouteValueDictionary.

* Consistently use _count field instead of Count property in Remove overloads.
Added comment on EnsureCapacity call.
Added test for removing first/middle/last entry.
2018-10-17 13:24:07 -07:00
John Luo 5d337fbd9d Revert "Set default protocol to HTTP/1.x"
This reverts commit 97acb95715.
2018-10-17 12:46:35 -07:00
Nate McMaster 1dfe06323f
Merge branch release/2.2 2018-10-17 11:52:06 -07:00
Nate McMaster 80d3bbfcc9
Update code signing config to exclude .js files in template packages 2018-10-17 11:13:02 -07:00
John Luo 97acb95715 Set default protocol to HTTP/1.x 2018-10-17 11:11:02 -07:00
Chris Ross (ASP.NET) 1e84159abb Merge branch 'release/2.2' 2018-10-17 10:18:47 -07:00
MK 39c25357c6 Skip extensions in SetCookie parser #1049 (#1050) 2018-10-17 09:48:23 -07:00
Chris Ross (ASP.NET) 4678476063 Merge remote-tracking branch 'origin/release/2.2' 2018-10-17 09:35:20 -07:00
Chris Ross (ASP.NET) c21cee940a Specify culture to int.TryParse #356 2018-10-17 09:24:49 -07:00
itminus a43587290f fix : DefaultFilesMiddleware serve with unicode path (#257) 2018-10-17 08:07:37 -07:00
Ryan Nowak edd1ba4698 Update VS dependencies 2018-10-16 17:58:03 -07:00
N. Taylor Mullen f835291cb6 Allow identical DocumentSnapshot sources to trigger output changes.
- Prior to this project changes would trigger re-parses which would then be thrown away because source versions were identical.
- Added test to verify new SetOutput behavior.

aspnet/Razor.VSCode#184
2018-10-16 16:09:17 -07:00
Justin Kotalik 3c44d27974
Merge pull request #1514 from aspnet/release/2.2
Merge release/2.2 into master: Fix path to aspnetcoreca.dll for signed output (#1513)
2018-10-16 15:59:08 -07:00
Steve Sanderson efbf2c5678 When tracing dependencies *without* linking, don't fail the build if there are unresolved dependencies
There are legitimate use cases for referencing BCL assemblies that *aren't* in the Mono WebAssembly BCL, particularly for Blazor-on-the-server which runs on CoreCLR (and hence supports a broader BCL) anyway.
2018-10-16 23:57:40 +01:00
Justin Kotalik b951ac9b64
Fix path to aspnetcoreca.dll for signed output (#1513) 2018-10-16 15:55:15 -07:00
Pavel Krymets 8f99140f30
Add client disconnect logs (#1521) 2018-10-16 15:30:19 -07:00
MikaelMengistu 83b5abbfcd Merge branch 'release/2.2' 2018-10-16 14:39:02 -07:00
Nate McMaster 2a37b67d1a
Merge branch 'release/2.2' 2018-10-16 14:30:11 -07:00
Nate McMaster e75dc56327
Sign Newtonsoft.Json with AssemblySigning3rdPartyCertName 2018-10-16 14:29:10 -07:00
Ryan Brandenburg a4a9dbca1c
Merge pull request #778 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-16 13:56:04 -07:00
Javier Calvarro Nelson a6aa152b0c
Merge branch 'master' into merge/release/2.2-to-master 2018-10-16 13:43:46 -07:00
Ryan Nowak 5502c43159
Merge pull request #8610 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-16 13:35:46 -07:00
Nate McMaster 4d631ffed3
Merge branch 'release/2.2' 2018-10-16 12:06:16 -07:00
Nate McMaster a35226131a
Merge branch release/2.2 2018-10-16 12:02:18 -07:00
Nate McMaster 6366deb193
Update dataprotection to 2.2.0-rtm 2018-10-16 11:33:17 -07:00
Nate McMaster b64e64d9e5
Merge branch 'namc/merge-dp-22' into release/2.2 2018-10-16 11:32:28 -07:00
Justin Kotalik 92baa4a75b
Cleanup ANCM installers/ Sign AspNetCore custom action (#1499) (#1502) 2018-10-15 17:46:36 -07:00
Justin Kotalik eced46c579
Cleanup ANCM installers/ Sign AspNetCore custom action (#1499) 2018-10-15 17:10:08 -07:00
Ryan Nowak a2a8a5ce36
Merge pull request #8598 from aspnet/rynowak/compat-version-docs
Update docs for compat switch value
2018-10-15 17:04:17 -07:00
Ryan Brandenburg 73f161cc60 Set crossorigin anonymous for integrity 2018-10-15 15:51:46 -07:00
Pavel Krymets 24e2e5ad52
Port startup tests to IIS (#1513) 2018-10-15 11:44:51 -07:00
Nate McMaster 6a14b47ccd
Add infrastructure changes to src/DataProtection can build on its own 2018-10-15 11:17:06 -07:00
Nate McMaster 89e2508acf
Merge branch 'release/2.2' 2018-10-15 11:03:28 -07:00
Ryan Brandenburg bd375fc9ee Fix audit failure 2018-10-15 10:49:40 -07:00
Nate McMaster 3eb0764fae
Reorganize source code from aspnet/DataProtection into a subfolder
Prior to reorg, this source existed at 9c7731f1fa
2018-10-15 10:47:38 -07:00
Pavel Krymets b0deed05be
Add server abort tests (#1510) 2018-10-15 10:33:14 -07:00
Nate McMaster 489a88d21e
Merge aspnet/DataProtection release/2.2 into this repo 2018-10-15 10:21:02 -07:00
Nate McMaster a673bfd741
Add build script and CI config for the DataProtection folder 2018-10-15 10:13:04 -07:00
Nate McMaster 4dfd351c84
Remove DataProtection submodule and update path to DP source code to local folder 2018-10-15 09:46:20 -07:00
Nate McMaster c355f10074
Merge source code from aspnet/DataProtection 2018-10-15 09:40:44 -07:00
Ryan Nowak c421178a22 Update docs for compat switch value 2018-10-15 07:43:18 -07:00
Steve Sanderson 211ad636fd Cascading parameters (#1545)
* Add Provider component

* Implement discovery and matching rules for tree parameters

* Remove artificial component hierarchy unit tests now they are redundant

* Refactor: Have RenderTreeFrame point to the ComponentState instead of IComponent

... so we can more quickly find associated tree param state without having to do lookups based on the componentId.

Also rename AssignComponentId to AttachAndInitComponent to be more descriptive.

* Refactor: Add shared code path for updating parameters so there's only one place to attach tree parameters

Now framework code should no longer call IComponent.SetParameters directly, except if it knows it's definitely dealing with a root component.

* Refactor: Simplify Parameter by making it hold the name/value directly

This will be necessary for tree parameters, which don't correspond to any RenderTreeFrame

* Refactor: Wrap ParameterEnumerator logic in extra level of iterator so we can also add one for iterating tree params

* Extend ParameterEnumerator to list tree parameters too

* Include tree parameters in SetParameters calls

* Refactor: Move parameter change detection logic into separate utility class

... so we include https://github.com/dotnet/jsinterop/pull/3

* Refactor: Move tree parameter tests from RendererTest.cs their own file

* Have Provider re-render consumers when value changes. Unit tests in next
commit.

* Components that accept tree parameters need to snapshot their direct params for later replay

* Empty commit to reawaken CI

* CR: Make name matching case-insensitive

* Refactor: Rename Provider/TreeParameter to
CascadingValue/CascadingParameter

* Add dedicated [CascadingParameter] attribute. Remove FromTree flag.

* CR: CascadingParameterState cleanups

* CR: Extra unit test

* CR: arguments/parameters

* CR: Enumerator improvements

* Fix test
2018-10-15 11:11:46 +01:00
David Fowler defbadb26b
Various timer cleanup (#3129)
This change does 2 things:
- It disables the websocket keep alive since SignalR has its own bidirectional pings. This should remove a significant timer overhead per WebSocket connection that we end up with today. We have a single timer that sends to all connection on an interval.
- Don't pass the CancellationToken to ReadAsync in the handshake since the Pipe implementation holds onto the token for longer than it 
needs to which keeps Timer objects alive (see dotnet/corefx#32806)

I found this when reading the source code and looking at dumps of a couple of SignalR applications.
2018-10-13 11:43:20 -07:00
Pavel Krymets 0b5973e501
Enable auth tests on IIS (#1511)
* Enable auth tests on IIS

* FB
2018-10-13 10:54:20 -07:00
David 0b76599c31 Improve conformance of replace operations to spec
This ensures that JSON patch "replace" operations are functionally
equivalent to "remove" operations followed by "add" operations at the
same path, as RFC 6902 specifies.

Addresses #110
2018-10-12 19:27:38 -07:00
Nate McMaster 24d13700d7
Merge branch 'release/2.2' 2018-10-12 17:56:10 -07:00
Nate McMaster c37a332a6a
Merge branch 'release/2.1' into release/2.2 2018-10-12 16:56:47 -07:00
Pranav K 5f42d5063e
Merge remote-tracking branch 'origin/release/2.2' 2018-10-12 15:58:08 -07:00
Pranav K fb57810f29 Shortcircuit validation when using default validator providers and no validation metadata is discovered
Fixes https://github.com/aspnet/Mvc/issues/5887
2018-10-12 14:47:06 -07:00
Justin Kotalik dbc1d38a58
Move ANCM installers to Universe (#1456) 2018-10-12 14:32:12 -07:00
Pranav K a40c1f2d02 Use compat flag to drive XML ProblemDetails formatting 2018-10-12 14:15:28 -07:00
Pranav K 164d14064c Use casing for ProblemDetails that specified by RFC
* Use JsonProperty.MemberName to specify lowercase casing for ProblemDetails properties -
  https://tools.ietf.org/html/rfc7807#section-3
* Use XML NS and lowercase for Xml elements specified by RFC -
  https://tools.ietf.org/html/rfc7807#appendix-A

Fixes https://github.com/aspnet/Mvc/issues/8501
2018-10-12 14:15:28 -07:00
Nate McMaster fb3f5d95c2
Backport infrastructure changes and source reorganization
* Add build definition for Azure DevOps
* Put code for metapackages in a subfolder
* Update targets to prepare for submodules merging into this repo
* Add source code for windows installer
* Add source code for Debian installers
2018-10-12 13:59:43 -07:00
Stephen Halter 1f2e704dd3
Implement MinResponseDataRate for HTTP/2 (#3003)
#2807
2018-10-12 13:15:46 -07:00
Nate McMaster f4026cc100
Reorganize source code from aspnet/DataProtection into a subfolder
Prior to reorg, this source existed at 3f5f419df8
2018-10-12 13:14:22 -07:00
Peter Blazejewicz 98162cb7df Remove `launchsettings.json` entry from `.gitignore`. Closes #760 (#761)
Do not ignore launchsettings.json. Closes #760

As discussed in:
https://github.com/github/gitignore/pull/2705
https://github.com/github/VisualStudio/issues/1405
2018-10-12 12:58:50 -07:00
Pavel Krymets 642e8e9d7c
Add Basic auth tests and fix Windows auth tests (#1502) 2018-10-12 12:03:11 -07:00
Hao Kung 44f00013cd
Merge 2.1 -> 2.2 (#2009)
* Fix login.cshtml
2018-10-12 11:34:54 -07:00
Nate McMaster 4f14cda425
Reorganize source code from aspnet/DataProtection into a subfolder
Prior to reorg, this source existed at b62bb5778b
2018-10-12 10:07:51 -07:00
Steve Sanderson fa2b61773a In ComponentState, track parent ComponentState. Be explicit that Renderer only lets you attach root components. 2018-10-12 09:49:28 +01:00
Doug Bunting d3c8d171bd
Fix builds that do real signing e.g. UniverseCoherence 2018-10-11 21:13:23 -07:00
James Newton-King 14b8c85728
Merge pull request #851 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-12 16:29:21 +13:00
James Newton-King fbf0708f19
Fix DfaGraphWriter ISuppressMatchingMetadata check (#850) 2018-10-12 16:08:50 +13:00
Pranav K e6bdf128f2 Log when a request is an OPTIONS request but not a preflight request
Fixes https://github.com/aspnet/AspNetCore/issues/2375
2018-10-11 16:30:22 -07:00
Doug Bunting 8c58fdb755 Add Newtonsoft.Json.dll to Microsoft.Extensions.ApiDescription.Design package
- also remove dotnet-getdocument.runtimeconfig.dev.json file
2018-10-11 15:51:20 -07:00
Turner Bass 05d729b409 UrlHelperBase L166-167 declared type of url in TryFastGenerateUrl 2018-10-11 15:41:14 -07:00
Ryan Brandenburg c71818eae2
Merge branch 'master' into merge/release/2.2-to-master 2018-10-11 14:54:19 -07:00
Javier Calvarro Nelson f5b5018d66 [Fixes #1958] Add and generate docs for the default UI 2018-10-11 14:46:57 -07:00
Chris Ross (ASP.NET) 081cef0934 Track aborted streams for a given grace period #2832 2018-10-11 12:55:26 -07:00
Ryan Brandenburg 04552f4005
Update Jquery.validation.Unobtrusive (#1999)
Update Jquery.validation.Unobtrusive
2018-10-11 12:29:52 -07:00
Ryan Brandenburg df394051d0 JQuery Unobtrusive to 3.2.11 2018-10-11 12:29:32 -07:00
Pranav K 2690a3f621 Remove filtering from CorsService
* Add browser based integration tests
2018-10-11 12:23:40 -07:00
Pavel Krymets 1132cad70b
public const string AuthenticationScheme (#1496) 2018-10-11 10:54:00 -07:00
BrennanConroy af62105cc6 Merge branch 'release/2.2' 2018-10-11 10:25:47 -07:00
BrennanConroy 9c7731f1fa Merge branch 'release/2.2' 2018-10-11 10:23:24 -07:00
Justin Kotalik 0e04527fb4
General cleanup for client disconnect handling. (#1446) 2018-10-11 08:44:03 -07:00
John Luo 3fe17b9faf Merge branch 'release/2.2' 2018-10-10 18:14:38 -07:00
Ben Adams 800c79c0e4 Fast-path async in HttpResponseStreamWriter 2018-10-10 18:13:58 -07:00
Günther Foidl 773aa6e6ff Http{Request|Response}Stream.ValidateState made inlineable 2018-10-10 17:45:05 -07:00
BrennanConroy 3f5f419df8
Add Redis 2.0 package (#325) 2018-10-10 16:40:52 -07:00
BrennanConroy 286e4bebf7
Add StackExchange.Redis 2.X.X package (#3089) 2018-10-10 16:40:27 -07:00
Ryan Brandenburg 7c817289ff
Merge branch 'master' into merge/release/2.2-to-master 2018-10-10 16:29:10 -07:00
Doug Bunting 5cd86977ed
Rename client code generation components
- #8523
- main project / package --> `Microsoft.Extensions.ApiDescription.Design`
- tasks assembly and namespace --> `Microsoft.Extensions.ApiDescription.Tasks`
- tool namespace --> `Microsoft.Extensions.ApiDescription.Tool`
- targets --> verbs e.g. `GenerateTypeScriptNSwag` and `GenerateDocumentDefault`
- `@(ServiceProjectReference)` metadata -> align with common MSBuild project properties
  - exception: `$(MSBuildProjectExtensionsPath)`; it's readonly and `%(ProjectExtensionsPath)` is unambiguous
    - use `%(ProjectExtensionsPath)`
  - also add `%(Targets)` metadata and remove unused `%(ProjectRuntimeIdentifier)`
- `@(<ServiceProjectReferenceMetadata)` metadata -> align with MSBuild project properties
  - exceptions: `$(MSBuildProjectDirectory)`, `$(MSBuildProjectExtensionsPath)` and `$(MSBuildProjectName)`
    - readonly properties and names already unambiguous
2018-10-10 14:52:57 -07:00
Doug Bunting d3442f3590
Create a single Microsoft.Extensions.ApiDescription.Client package
- #8428
- add signing-related and PackageVerifier configuration for new package
- remove packaging configuration from dotnet-getdocument project
- adjust `dotnet-getdocument` invocation to its new location
- remove use of nonexistent (ignored) `dotnet-getdocument --no-build` option

Remove `--uri` feature from `dotnet-getdocument`
- reduce dependencies from Microsoft.AspNetCore.TestHost to Microsoft.AspNetCore.Hosting.Abstractions
  - assume web site depends on that
- merge `DownloadFileCore` into `DownloadFile`
- remove other unecessary code e.g. `WrappedException` was never `throw`n

Correct issues in `DownloadFile`
- e.g. dispose of `responseStream`, use `await` more, support FIPS-compliant machines

nits:
- clean up `Project` and the metadata it fetches
- remove unnecessary `.props` and `.targets` files
2018-10-10 14:52:56 -07:00
Doug Bunting 5a58f81d8d
Use Internal.AspNetCore.Sdk as an MSBuild SDK in new projects
- follow-up to 5bddd226a3
2018-10-10 14:52:56 -07:00
Doug Bunting ea80199e53
Fix a few issues with Microsoft.Extensions.ApiDescription.Client targets
- follow-ups to 1646345955 and 9d109f5956
- fix `%(Command)` updates in `DefaultDocumentGenerator` target
  - later references to metadata values set within an item are not up-to-date
- qualify values for `%(SourceProject)`, `%(SourceUri)` and `%(SourceDocument)` when setting that metadata
  - MSBuild can't distinguish unqualified metadata references unless using `<X Update="@(X)">`
- fix `@(CurrentServiceFileReference)` items
  - was a copy 'n paste error in `_ServiceFileReferenceGenerator_Core` target
- remove per-language default namespace values
- do not add TypeScript files to `@(Compile)`; generally enhance final item additions
  - use `$(DefaultLanguageSourceExtension)` to help here
  - exclude generated source files with `%(OutputPath)` that does not match `$(DefaultLanguageSourceExtension)`
  - really support `%(OutputPath)` directories
- stick with current `$(TargetFramework)` when building `...ReferenceGenerator_Inner` targets
  - `%(ProjectTargetFramework)` will not exist for all `@(ServiceFileReference)` items
  - building the current project, not a service project; `%(ProjectTargetFramework)` may not be supported

nits:
- shorten a few more long lines in Microsoft.Extensions.ApiDescription.Client.targets
- reduce logging from that file
- do not include `%(SerializedMetadata)` in `%(SerializedMetadata)`
  - caused extra-long serialization of items that were originally `@(ServiceProjectReference)`s
- add more info to various comments
- always use element syntax for metadata additions
2018-10-10 14:52:55 -07:00
Doug Bunting fb9393febf
Correct metadata additions and add errors about metadata
- related to #8419 and (more generally) #7947
- add errors for missing required metadata
- add errors for duplicate `%(DocumentPath)` and `%(OutputPath)` metadata
- remove `[Required]` for task inputs that may be `null` or empty
- correct `%(DocumentPath)`s generated in `GetProjectReferenceMetadata` task
  - use this task
2018-10-10 14:52:55 -07:00
Doug Bunting 87e304334d
Remove batching requirements placed on code and document generator providers
- #8419
- perform batching and `@(ServiceFileReference)` and `@(Compile)` additions in common code
  - take advantage of new simplicity in `DefaultDocumentGenerator` target
- add metadata serialization / deserialization in support of passing items into `<MSBuild />`
  - also ensure metadata values are escaped before calling `ITaskItem.SetMetadata(...)`
- correct typos in Microsoft.Extensions.ApiDescription.Client.* e.g. in comments and metadata names
- move last remaining `GenerationTasks` file

nits:
- combine `_ServiceProjectReferenceGenerator_Restore` and `_ServiceProjectReferenceGenerator_Build` targets
  - only build web sites projects once
- remove unused `buildMultiTargeting` targets
- remove qualification of metadata listed in an `<ItemDefinitionGroup />`; will always exist
- add / remove a few `Condition`s that were missing / redundant
- move properties users won't normally set to Microsoft.Extensions.ApiDescription.Client.targets
- shorten lines in MSBuild files
2018-10-10 14:52:55 -07:00
Doug Bunting 3f001750ad
Rationalize code sharing between the three code generation projects
- #8417
- just two files needed to be moved&hellip;
2018-10-10 14:52:54 -07:00
Doug Bunting a76ca293ef
Add missing license headers to src files
- #8415
- also correct a typo in Microsoft.AspNetCore.Mvc.Testing files' headers
2018-10-10 14:52:54 -07:00
Doug Bunting d0325ef264
Remove `CodeAnnotations`
- #8416
- turns out this required little on top of dougbu/remove.custom.tool
2018-10-10 14:52:54 -07:00
Doug Bunting 6ffcf3571e
Remove T4 custom tool
- use same generator as most other projects in aspnet repos
  - were not using named arguments to resource methods anyhow
- update resources to use regular (numbered) format parameters
- adjust to new `Resources` namespace; no need for separate `using`
- use `Format...(...)` methods as necessary
2018-10-10 14:52:54 -07:00
Doug Bunting e19c036f11
Fix up MSBuild files
- correct filenames
- remove NSwag-specific files
2018-10-10 14:52:53 -07:00
Doug Bunting 25d0916b49
Use one namespace for the three client code generation projects
- also cleared out most uses of `GetDocument` and `GenerationTasks` in MSBuild and strings
- temporarily fixed up T4 templates, adding Resources.tt (will remove custom generation soon)
2018-10-10 14:52:53 -07:00
Doug Bunting 95b4dc8ca0
Add first cut of Microsoft.Extensions.ApiDescription.Client package / project
- WIP in a number of ways
2018-10-10 14:52:36 -07:00
Hao Kung 5c174a3d7d Fix login.cshtml 2018-10-10 14:49:57 -07:00
Chris Ross (ASP.NET) b2d53bd328 Merge branch 'release/2.2' 2018-10-10 14:35:57 -07:00
Pavel Krymets bfa583a9aa
Guard OnAsyncCompletion from completing request before OnExecuteRequestHandler exits (#1489) 2018-10-10 14:34:55 -07:00
Chris Ross (ASP.NET) 5a3c664566 Merge branch 'release/2.2' 2018-10-10 14:33:17 -07:00
Pavel Krymets ab124fc344
Fix applicationInitialization tests and disconnect handler (#1484) 2018-10-10 12:41:11 -07:00
Ryan Brandenburg 7d09ec6ccc
Low hanging fruit (#763)
Clean up low hanging fruit
2018-10-10 12:12:11 -07:00
James Newton-King f6e20a38e2 HostString throws ArgumentNullException for null host (#1045) 2018-10-10 08:27:33 -07:00
James Newton-King 9daf5ff7a4
Fix PageRouteTransformerConvention with custom page routes (#8576) 2018-10-10 18:33:30 +13:00
Pavel Krymets 7a09638afe
Modernize startup error pages (#1476) 2018-10-09 16:12:01 -07:00
Pavel Krymets f2fbd803b9
Flow request trace context to CreateApplication (#1480) 2018-10-09 16:11:52 -07:00
Ryan Nowak bb3a30a2fc
Merge branch 'master' into merge/release/2.2-to-master 2018-10-09 13:31:31 -07:00
Pavel Krymets 27e4e1aca3
Remove RestoreOnPublish parameter (#1533) 2018-10-09 10:41:52 -07:00
Justin Kotalik 23db53eae6
Add more FREB events/ tests for FREB events (#1461) 2018-10-09 10:25:12 -07:00
Ryan Nowak 93dc6dd5f5
Merge pull request #846 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-08 18:05:41 -07:00
Ryan Nowak 1f31e0556d
Add IHealthCheckPublisher for push-based checks (#498)
IHealthCheckPublisher allows you to configure and run health checks
regularly inside an application, and push the notifications elsewhere.

All publishers are part of a single queue with a configurable period and
timeout.
2018-10-08 17:58:45 -07:00
Stephen Halter 8bca6b3877
Add HTTP/2 keep-alive and request header timeouts (#2992) 2018-10-08 17:06:15 -07:00
Pavel Krymets 1be7cd1f74
Disconnect the disconnect handler when request processing ends (#1471) 2018-10-08 16:05:28 -07:00
Ryan Nowak 7b16053f27 Misc polishing
Rename `IEndpointFinder<>` -> `IAddressScheme<>`

Address the two 'marker' metadata types that I'm aware of.
2018-10-08 15:45:44 -07:00
David J. Quiroga 956441aa68 Ignore created URI if Assembly.CodeBase contains a fragment (#8556)
* Fixes #8367
2018-10-08 10:41:04 -07:00
Pavel Krymets 4347a45f29
Always add event source logger (#287) 2018-10-08 09:31:44 -07:00
Steve Sanderson 7012ea9d03 Avoid OnAfterRender allocating to capture 'this' 2018-10-08 09:39:18 +01:00
Ryan Nowak 3eb50aebff
Merge pull request #497 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-06 16:57:30 -07:00
Ryan Nowak 9722d89572 Adjust log levels 2018-10-06 16:18:55 -07:00
Ryan Nowak abc169f6ea
Merge pull request #841 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-06 16:13:56 -07:00
Ryan Nowak 67a1f2dda9 Add security text about Host header 2018-10-05 22:26:37 -07:00
Ryan Nowak ce9ace84fd
Merge pull request #839 from aspnet/rynowak/fix-837
Fix Routing#837
2018-10-05 22:26:27 -07:00
Ryan Nowak 13d293ff86 Merge branch 'release/2.2' 2018-10-05 21:30:56 -07:00
Ryan Nowak 81fb93a896 Fix Routing#837
Fixes a few issues with how we initialize the middleare.
- Always completes the intitialization task
- Avoids capturing the ExecutionContext
- Allows initialization to occur repeatedly when it fails
2018-10-05 21:24:57 -07:00
Ryan Nowak 9db2833fc2 Make endpoint selector policies per-candidate-set
This allows us to filter `IEndpointSelectorPolicy` instance based on
whether the apply to a given candidate set. This should allow us to
remove some HAXXX from MVC.

The idea here is the ESP becomes much more pay-for-play if you can
statically eliminate many of the cases where it would usually no op.
2018-10-05 21:03:59 -07:00
Ryan Nowak 384b814349 React to IEndpointSelectorPolicy changes 2018-10-05 21:03:53 -07:00
Ryan Nowak d4ef24ab2c
Merge pull request #836 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-10-05 20:14:12 -07:00
Ryan Nowak af47b27f0d Add blurb about Host header 2018-10-05 19:03:21 -07:00
John Luo 5b90028fe3 Expose status code of BadHttpRequestException 2018-10-05 16:08:33 -07:00
Chris Ross (ASP.NET) daf6e1ecd7 Http/2 response trailers #622 2018-10-05 12:50:46 -07:00
Chris Ross (ASP.NET) 7fd01fb90d Merge branch 'release/2.2' 2018-10-05 11:49:02 -07:00
Chris Ross (ASP.NET) 89b0430bda Add IHttpResponseTrailersFeature and extensions 2018-10-05 11:46:52 -07:00
Pranav K 6f76189846
Normalize internationalized domain names when adding to CORS
Fixes https://github.com/aspnet/Home/issues/3353
2018-10-05 11:08:02 -07:00
George Drak e9eea50966 Implement #2230 - Consume BindingAddress instead of ServerAddress (#2975)
* #2230 Mark ServerAddress as obsolete

* #2230 suppress CS0618 errors for obsoleted ServerAddress class

* #2230 Use BindingAddress instead of ServerAddress
2018-10-05 10:34:00 -07:00
Luke Latham e30ae8cc3d Fix typo (#1559) 2018-10-05 08:11:04 -07:00
Jo Ham fc6ac2361e Fix Typo (#1044) 2018-10-05 07:52:15 -07:00
Stephen Halter f91ae20a3c
Improve RequestAborted token handling (#2977)
- Improve test reliability of tests verifying the RequestAborted token gets tripped
- Once the response body is completed, don't fire the token for that request even if it is accessed later on.
2018-10-04 16:48:50 -07:00
Andrei Amialchenia df2ad98743 Use logical 'or' instead of bitwise in IsConnectionReset method. (#2983) 2018-10-04 15:37:24 -07:00
Doug Bunting 5bddd226a3
Use Internal.AspNetCore.Sdk as an MSBuild SDK
- should resolve issues with occasional strange MSBuild caching issues in this repo
- modeled after aspnet/Scaffolding#905
- follows aspnet/BuildTools#729 recommendation to check in global.config file
  - see also Microsoft/msbuild#2914
- use newer KoreBuild
  - `.\build.cmd -update /t:noop`
2018-10-04 15:12:38 -07:00
Pranav K 153165f9ad
Handle OPTIONS requests without a handler in Razor Pages (#8528)
* Handle OPTIONS requests without a handler in Razor Pages

Fixes #7438
2018-10-04 12:25:36 -07:00
Chris Ross (ASP.NET) 35d35f22a3 Disallow any frames after a reset is received #2154 2018-10-04 09:40:21 -07:00
James Newton-King 94101a9cde
Add PageRouteTransformerConvention (#8541) 2018-10-04 17:34:26 +13:00
James Newton-King 7854d65c11
Support page parameter in attribute route (#8530) 2018-10-04 14:39:40 +13:00
Stephen Halter 5bd2a41517
Make transport logs for connection close more detailed and consistent (#2978) 2018-10-03 12:41:00 -07:00
Nate McMaster ef18c467aa
Merge branch 'release/2.2' 2018-10-02 14:45:17 -07:00
Nate McMaster f2691ee4b6
Add a copy of scripts from dotnet-deb-tool 2.0.0 to this repo (#1442)
We currently build .deb files using dotnet-deb-tool, which comes from a package feed. We're not completely sure where the source code is for this tool, so this moves the scripts from the dotnet-deb-tool 2.0.0 package into this repo for safe keeping.
2018-10-02 14:32:12 -07:00
Alexej Timonin 70ddf15cbc MethodMatches 🚿 2018-10-02 12:57:18 -07:00
Pranav K a48e75dfb4
Implicitly set content type for ObjectResults containing ProblemDetails (#8512)
* Implicitly set content type for ObjectResults containing ProblemDetails

Fixes #8467
2018-10-02 10:24:38 -07:00
Nate McMaster 1e41958884
Merge branch 'release/2.2' 2018-10-02 09:23:42 -07:00
Nate McMaster 4c49d5ce80
Resolve flaky tests (#497)
1. Prevent an ObjectDisposedException in dotnet-watch on slower machines
2. Fix flakiness caused by PID reuse
3. Fix flakiness in tests that await the restart of dotnet-watch. The `.TimeoutAfter` method doesn't cancel the long-running task. This left 2 readers running on dotnet-watch output which caused indeterminate test outcome.
2018-10-02 09:17:04 -07:00
Daniel Roth 04b87ef066 Update Microsoft.AspNetCore.Blazor.Templates.nuspec 2018-10-02 16:59:47 +01:00
Ryan Nowak 737a6003f5 Add required fields to build nuspec 2018-10-02 10:39:21 +01:00
James Newton-King 5f75c07bbf
Add RoutesValues to HttpRequest (#1042) 2018-10-02 16:03:58 +13:00
MikaelMengistu c6a1c7463a Merge branch 'release/2.2' 2018-10-01 16:19:06 -07:00
Nate McMaster 18e245ecf0
Merge branch 'release/2.2' 2018-10-01 16:00:30 -07:00
Nate McMaster 7d3628b8ac
Merge branch 'release/2.1' into release/2.2 2018-10-01 15:58:37 -07:00
Brian Chavez 78a0a68cd1 Typos/spelling errors in XML doc comments and source. #Hacktoberfest (#3039) 2018-10-01 14:41:05 -07:00
Ryan Nowak f0623fff60 Merge branch 'release/2.2' 2018-10-01 13:38:48 -07:00
Ryan Nowak 014e7eb963 Add EFCore DbContext check 2018-10-01 13:33:00 -07:00
Nate McMaster f6b64e5d26 Upgrade KoreBuild (#1498)
* remove sources.props and use NuGet.config. Source.props is only necessary for products that bulid in ProdCon, which Blazor does not
* Remove code signing glue code. This is part of KoreBuild now
* Update SDK to 2.1.400
* Update certificate names used for code-signing to use SHA2
2018-10-01 11:13:09 -07:00
Justin Kotalik 3ddc86a428
Fix mof file (#1457) 2018-10-01 08:00:44 -07:00
Steve Sanderson 234f089a0a Always use forward-slashes in template primaryOutputs. Fixes #1497. 2018-10-01 13:17:11 +01:00
Ryan Nowak 3863601f1d
Merge pull request #832 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-09-30 16:50:15 -07:00
Ryan Nowak 3227de8c0b Fix #629 - Add logging to DfaMatcther
Adds logging for the most common things that can prevent an endpoint
from matching.

Note that we already have good logging in other parts of the system, the
stuff here completes the story by providing details at the debug level.
2018-09-30 15:59:25 -07:00
Ryan Nowak 3667b0481a React to routing API changes
Reaction for: https://github.com/aspnet/Routing/pull/822
2018-09-30 14:26:06 -07:00
Ryan Nowak 632d980cd1 Merge branch 'release/2.2' 2018-09-30 14:14:48 -07:00
Ryan Nowak b7939328b8 feedback 2018-09-30 14:09:59 -07:00
Ryan Nowak a2f404f4d5 Perf improvements for EndpointSelector 2018-09-30 14:09:59 -07:00
Ryan Nowak ed15bad5fb Make CandidateState (publicly) immutable 2018-09-30 14:09:59 -07:00
Ryan Nowak 1f5eec1d55 Rename EndpointFeature -> EndpointSelectorContext 2018-09-30 14:09:59 -07:00
Ryan Nowak cb1393cbb1 Adding functional tests for LinkGenerator 2018-09-29 20:34:48 -07:00
James Newton-King 87084945a6
Merge release/2.2 2018-09-30 09:51:30 +13:00
Ryan Nowak 8b99832eaf Add ASCII optimized jump tables 2018-09-29 12:55:10 -07:00
James Newton-King d1f3b90a0e
RouteValuesAddressMetadata ctors and XML docs (#818) 2018-09-30 08:54:59 +13:00
Nate McMaster 72cd5eedcf
Prepare the 2.1.6 patch (#1434) 2018-09-28 17:57:33 -07:00
Nate McMaster 00e2b6201e
automated: merge branch release/2.2 2018-09-28 17:28:07 -07:00
Nate McMaster ada2b17160
automated: merge branch release/2.2 2018-09-28 17:27:35 -07:00
Nate McMaster 3483a32505
automated: merge branch release/2.2 2018-09-28 17:27:30 -07:00
Nate McMaster f1bb7acd5a
automated: merge branch release/2.2 2018-09-28 17:27:28 -07:00
Nate McMaster 0eb57b2a29
automated: bulk infrastructure updates. Update bootstrapper scripts and remove unnecessary signing properties 2018-09-28 17:19:45 -07:00
Nate McMaster 2a1cf12ae9
Merge branch 'release/2.2' 2018-09-28 11:54:18 -07:00
Nate McMaster 3825c24959
Merge branch 'release/2.2' 2018-09-28 11:50:15 -07:00
Simon Cropp d4ab8b27a9 typos, inline outs, redundant usings (#2965) 2018-09-28 11:14:59 -07:00
Chris Ross (ASP.NET) 0143da672c Merge branch 'release/2.2' 2018-09-28 11:06:41 -07:00
Chris Ross (ASP.NET) 09a7b3bef5 Add logging to the response compression middleware #222 2018-09-28 11:05:20 -07:00
Chris Ross (ASP.NET) dd29e9de9d Merge branch 'release/2.2' 2018-09-28 10:53:03 -07:00
Nate McMaster 89fccf3ac5
Enable MicroBuild code signing (#1456)
Fixup the paths to files to be signed.
2018-09-28 10:37:18 -07:00
Nate McMaster ef21286792
Fix microbuild code signing configuration (#8511)
Fixup the paths to files to be signed.
2018-09-28 10:36:56 -07:00
Nate McMaster 47ae0c15cc
Fix microbuild signing configuration 2018-09-28 10:36:24 -07:00
Pranav K ccb6579cd7
Do not return ProblemDetails for < 4xx status codes
Fixes #8504
2018-09-28 10:33:45 -07:00
John Luo 7cf1cf2a54 Update API check baselines to 2.1.0 2018-09-28 10:30:50 -07:00
Unai Zorrilla fa961b003f Added execution time duration (HealthReportEntry TotalDuration) (#493)
* Added execution time duration into HealthReportEntry and TotalDuration on HealthReport

* review PR feedback from @rynowak.

* added the same duration into HealthReportEntry and log when the health check throw
2018-09-28 09:14:58 -07:00
Justin Kotalik 45a52ebff5
Move Log call before starting application (#1453) 2018-09-28 08:53:32 -07:00
BrennanConroy 370702f1a2
Merge pull request #3023 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-09-27 21:41:42 -07:00
Simon Cropp df1f72d3d2 make StaticFileResponseContext constructable (#250)
* make StaticFileResponseContext constructible so people can instantiate it for testing purposes
2018-09-27 20:32:58 -07:00
BrennanConroy 1f91b523f7
Add error to negotiate (#2998) 2018-09-27 20:27:06 -07:00
Simon Cropp 8dcc011324 spelling, inline outs, redundant braces (#252) 2018-09-27 20:24:42 -07:00
Stephen Halter e9c2acf4dc
Add HTTP/2 response draining timeout (#2956)
* Move drain timeout to Http1Connection
* Add TimeoutControl class
2018-09-27 17:59:12 -07:00
Roma Marusyk c7eaf77953 Fix XML documentation for IFormFileCollection (#1041) 2018-09-27 17:13:28 -07:00
Justin Kotalik 33b5575017 Merge branch 'release/2.2' 2018-09-27 16:54:43 -07:00
Justin Kotalik fc39ea3bec
Make hosting bundle get prodcon runtime versions (#1435) 2018-09-27 16:44:40 -07:00
Nate McMaster 73062c89f6
Change spec test packages to depend on xunit.execution.core, not the xunit metapackage (#1979) 2018-09-27 16:40:38 -07:00
Nate McMaster 594b5fafe4
Enable MicroBuild code signing 2018-09-27 16:11:54 -07:00
Chris Ross 601bf83bda
Merge pull request #370 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-09-27 15:54:53 -07:00
Nate McMaster 4baa07ccae
Update code signing properties and configuration 2018-09-27 12:55:40 -07:00
andrewslavin cc610955db Support mime-type wildcards #121 @andrewslavin 2018-09-27 12:52:24 -07:00
James Newton-King 6c1c594b83
Merge remote-tracking branch 'origin/release/2.2' 2018-09-27 10:53:30 -07:00
Roma Marusyk cbed7393a2 Add XML documentation for IFormFileCollection. #3528 (#1040) 2018-09-27 09:53:39 -07:00
James Newton-King 95753825ef
Comment registered key (#816) 2018-09-27 07:06:30 -07:00
John Luo f56b682b36 Impose integer decode limit in HPACK 2018-09-26 17:18:24 -07:00
Nate McMaster 6637e8f128
Merge branch 'release/2.2' 2018-09-26 17:05:30 -07:00
Pranav K 8311fd870b
Include the response type in ProducesResponseType for client errors (#8490)
* Include the response type in ProducesResponseType for client errors

* Refactor ActualApiResponseMetadata discovery in to a separate more manageable type
* Annotate action result ctors and helper methods that specify the "object" value with attribute
* Modify the discovery of parameters to match ActionResultObjectValueAttribute and ActionResultStatusCodeAttribute by name
  to allow users to write and annotate custom helper methods and action results, a la NotNullAttribute.

Fixes #8345
2018-09-26 15:51:49 -07:00
Nate McMaster e4ebae107c
Fix the path to SignedPackageFile items and include the VSIX .dll in code signing 2018-09-26 15:19:28 -07:00
Nate McMaster 0157e38a23
Fix the path for SignedPackageFile and include the VSIX .dll in signing 2018-09-26 15:06:06 -07:00
Nate McMaster 59dd2a05ca
Merge branch 'release/2.2' 2018-09-26 14:25:35 -07:00
Pavel Krymets bac0f44fa7 Revert "Disconnect the disconnect handler when request processing ends (#1413)"
This reverts commit f808bdc331.
2018-09-26 14:17:40 -07:00
Ryan Brandenburg b07338b618
Don't use depricated methods (#751)
Don't use depricated methods
2018-09-26 12:50:24 -07:00
MikaelMengistu a260d44fe2 Merge branch 'release/2.2' 2018-09-26 12:37:17 -07:00
Ryan Nowak 831937c86c Add LinkGenerator extensions for MVC 2018-09-26 09:37:46 -07:00
Steve Sanderson e9621c8add Update aspnet-webpack-react type declarations 2018-09-26 17:24:02 +01:00
Tomasz Jaskula 59ca023f46 Deleting references to 'react-hot-loader/webpack' and 'react-hot-loader/patch' as it was removed in v4 of react-hot-loader. Bumping peer dependency of webpack to 3 and 4 2018-09-26 16:50:43 +01:00
Ryan Brandenburg c6347f035f Conditionally include RootNamespace 2018-09-25 15:48:08 -07:00
Ryan Brandenburg 0745266c17 Razor->WebApp 2018-09-25 15:47:23 -07:00
Justin Kotalik 1eb5da31e5
Improve error messages and add static html pages for failure to start site. (#1421) 2018-09-25 15:40:15 -07:00
Chris Ross (ASP.NET) 3832019027 Update Facebook to v3.1 endpoints #92 2018-09-25 13:56:58 -07:00
Ryan Nowak 959b45f4e6 Fix #1478 - Razor.Design not getting replaced in templates (#1479)
* Fix #1478 - Razor.Design not getting replaced in templates
2018-09-25 09:27:28 +01:00
Ryan Nowak cfcedff233 Merge branch 'release/2.2' 2018-09-24 22:30:41 -07:00
Ryan Nowak 49c2317c14 Fix #810 2018-09-24 21:55:56 -07:00
Ryan Nowak 7c16c92317 Fix a bug in GetUriByRouteValues
Pride cometh before the fall...
2018-09-24 20:46:20 -07:00
Chris Ross (ASP.NET) 01b35bc391 Make HTTP/2 connection and stream windows configurable #2814 2018-09-24 15:31:50 -07:00
Ryan Brandenburg afbf3f1e04 Merge branch 'merge/release/2.2-to-master' 2018-09-24 15:05:43 -07:00
Pranav K 50cef4822a
Invoke FlushAsync before disposing the HttpResponseWriter in JsonResultExecutor
Fixes #8486
2018-09-24 13:00:56 -07:00
Ryan Nowak 6f383a0f0f Adds support for 'Context' parameters on components (#1470)
Adds support for 'Context' parameters on components

This change allows you to set the parameter name of a parameterized child content by using the `Context` attribute on the component. The `Context` attribute will be defined (and shown by completion) when the component has one or more declared parameterized (`RenderFragment<>`) child content parameters.

This is nice for cases where you are using implicit child content:

```
<ol>
  <Repeater Items="People" Context="person">
    <li>@person.FirstName</li>
  </Repeater>
</ol>
```

 or, when you have multiple child content elements and want them all to have the same parameter name:

 ```
<MyComponent Items="People" Context="person">
    <ChildContent1><div>@person.FirstName</div></ChildContent1>
    <ChildContent2><div>@person.LastName</div></ChildContent2>
</Repeater>
```

The parameter name can be overridden by using the `Context` parameter on the child content element:

 ```
<MyComponent Items="People" Context="person">
    <ChildContent1 Context="item"><div>@item.FirstName</div></ChildContent1>
    <ChildContent2><div>@person.LastName</div></ChildContent2>
</Repeater>
```

If the component defines a `Context` parameter already then we won't synthesize one - your component's parameter will work exactly as it did before this feature.
2018-09-24 12:22:16 -07:00
Ryan Nowak 071a49e4da
Merge branch 'master' into merge/release/2.2-to-master 2018-09-24 11:12:00 -07:00
John Luo ceaa3c86fc Add configurability for max header field size in HPACK 2018-09-24 10:53:15 -07:00
Ryan Nowak 204ff0a785 Set cache headers in health check middleware 2018-09-24 10:43:57 -07:00
Ryan Nowak 984fabb89f Correct template package reference 2018-09-24 10:42:59 -07:00
David Fowler f17142b2ec
Delay resolution until after application services are built (#1553)
- Resolve the logger from the right service provider to log duplicate hosting startup assemblies.
- Don't create a 3rd IServiceProvider if we resolved the default implementation.
2018-09-24 10:41:30 -07:00
Ryan Nowak 7a52baf18f Fix #2054 - make TagHelperResolutionResult internal
This type isn't used by WTE anymore.
2018-09-24 10:35:17 -07:00