Commit Graph

30385 Commits

Author SHA1 Message Date
Doug Bunting 928a81155e
Add external dependencies used only in MVC benchmarks apps
- part of aspnet/Mvc#7805
2018-06-22 16:46:42 -07:00
Doug Bunting 53857d052f
Add BasicApi and BasicViews apps
- #7805
- make initial copy of apps from aspnet/Performance repo
  - add apps to solution
  - add Readme for the benchmark apps
- update BasicApi app to actually do authentication and authorization
  - bug in the ported app
- refactor `Main` methods and add `CreateWebHostBuilder(...)` methods
- change projects to understand `$(BenchmarksTargetFramework)`
  - use NuGet.org EF packages to avoid changing the Universe build graph
- use SQLite instead of LocalDb by default
  - remove unnecessary appsettings.json files and JSON configuration support
- add EF migrations
  - (greatly) reduce startup times compared to creating / deleting databases
- add MySql, PostgreSQL, and SqlServer support
  - load BasicApi data in a `DbContext.OnModelCreating(...)` override
    - no longer need seed.sql
  - generalize migrations to support multiple providers
  - use negative seeding indices to work around npgsql/Npgsql.EntityFrameworkCore.PostgreSQL#36
  - work around Pomelo lack of strong name (PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#603)
  - use BenchmarksOnly* properties for EF dependencies
    - see also aspnet/Universe#1224
- drop databases (if SQLite) or migrations (otherwise) in `IApplicationLifetime.ApplicationStopping` handlers
- add functional tests
  - drop SQLite database at end of test run
- add benchmarks automation
  - add anonymous BasicApi action i.e. require no authorization
  - add non-antiforgery BasicViews actions

Address PR comments
- remove `AntiforgeryTestHelper` workarounds
- use `[ApiController]`
- use `ActionResult<Pet>`
- remove unused classes

nits:
- take VS suggestions in added files
- optionally display create and delete SQL scripts for per-database migrations
- merge `InsertData(...)` calls for consistency with most supported EF providers
  - SQLite is the only one that requires separate `INSERT`s and EF does the splitting
2018-06-22 16:41:17 -07:00
ASP.NET CI 5fd7a5512b Updating submodule(s)
IISIntegration => 32121abde3

[auto-updated: submodules]
2018-06-22 15:34:00 -07:00
Justin Kotalik 32121abde3
Fixes exit(0) with hostable webcore (#966) 2018-06-22 15:29:28 -07:00
John Luo 2cd777f061 Bust MSBuild cache on retries 2018-06-22 10:26:49 -07:00
ASP.NET CI 984535093f Updating submodule(s)
Microsoft.Data.Sqlite => 9ee211fe013e39cf1739e4446282236e8f217dc8

[auto-updated: submodules]
2018-06-22 10:16:48 -07:00
ASP.NET CI 0a5285bed3 Updating submodule(s)
IISIntegration => 9d1ffa2d06

[auto-updated: submodules]
2018-06-22 09:42:16 -07:00
Pavel Krymets 9d1ffa2d06
Use guid for temp directories and delete them after tests (#963) 2018-06-22 09:38:21 -07:00
ASP.NET CI 55bae4d118 Updating submodule(s)
IISIntegration => b12c9b33f7

[auto-updated: submodules]
2018-06-22 07:41:14 -07:00
Pavel Krymets b12c9b33f7
Cleanup where.exe invocation (#958) 2018-06-22 07:36:46 -07:00
ASP.NET CI b09a994818 Updating submodule(s)
Mvc => 6911e192e4

[auto-updated: submodules]
2018-06-22 07:02:32 -07:00
Pranav K 6911e192e4
Add IsRequired and DefaultValue to ApiParameterDescription 2018-06-22 06:51:58 -07:00
ASP.NET CI 0363147749 Updating submodule(s)
IISIntegration => da206e8afe

[auto-updated: submodules]
2018-06-21 18:40:56 -07:00
Justin Kotalik da206e8afe
Create a separate sln for V1 (#944) 2018-06-21 18:00:22 -07:00
ASP.NET CI c3c885aca9 Updating submodule(s)
Routing => 30fcfb65ea

[auto-updated: submodules]
2018-06-22 00:25:24 +00:00
Ryan Nowak 30fcfb65ea Productionize Path tokenization 2018-06-21 17:13:03 -07:00
ASP.NET CI 34ef728e33 Updating submodule(s)
IISIntegration => 306ab78b88

[auto-updated: submodules]
2018-06-21 16:53:12 -07:00
Justin Kotalik 306ab78b88
Fix App_offline and start adding tests (#953) 2018-06-21 16:35:11 -07:00
ASP.NET CI bed1bfa3d3 Updating submodule(s)
SignalR => 6b3437deb7

[auto-updated: submodules]
2018-06-21 16:23:22 -07:00
Mikael Mengistu 6b3437deb7
Initial Java Client(#2521) 2018-06-21 16:12:32 -07:00
John Luo a296fe4cdf Add retries for restores during LZMA generation 2018-06-21 15:54:01 -07:00
ASP.NET CI a0517c3fdc Updating submodule(s)
IISIntegration => cd81cfc243
Razor => 9b000397b3
Routing => 6efd679ce3

[auto-updated: submodules]
2018-06-21 22:47:46 +00:00
James Newton-King 6efd679ce3
Fix TreeMatcher with route constraints (#576) 2018-06-22 10:33:44 +12:00
Pavel Krymets cd81cfc243
Remove extra arguments from CreateApplication (#952) 2018-06-21 15:29:03 -07:00
N. Taylor Mullen 9b000397b3 Add NoBuild test that includes content.
- Also fixed wording of existing nobuild test.
2018-06-21 14:36:07 -07:00
ASP.NET CI a7496c513a Updating submodule(s)
IISIntegration => de197bfcd1

[auto-updated: submodules]
2018-06-21 14:32:32 -07:00
Hao Kung de197bfcd1
Use dynamic ports for Https/Ntlm tests (#874) 2018-06-21 14:27:48 -07:00
ASP.NET CI a5ce853f40 Updating submodule(s)
EntityFrameworkCore => 3e99ace20c0569e4e524151ba96fd499ece879f1

[auto-updated: submodules]
2018-06-21 13:20:12 -07:00
ASP.NET CI 8627f169b9 Updating submodule(s)
IISIntegration => e5505ceefc
KestrelHttpServer => 61e16e2b31

[auto-updated: submodules]
2018-06-21 12:41:08 -07:00
Justin Kotalik e5505ceefc
Fixing build issues (#957) 2018-06-21 12:32:13 -07:00
Pavel Krymets 93de3f83ce
Reenable precompiled headers in AspNetCore project (#937) 2018-06-21 11:32:56 -07:00
Chris Ross (ASP.NET) c2874d923d Add Microsoft.Internal.AspNetCore.H2Spec.All dependency 2018-06-21 11:21:20 -07:00
Chris Ross (ASP.NET) 61e16e2b31 Automation for h2spec functional tests #2640 2018-06-21 11:17:16 -07:00
ASP.NET CI b0043db464 Updating submodule(s)
Scaffolding => 2ad31dbd843fb2ac7b9f5c586dc9d3b269209f52

[auto-updated: submodules]
2018-06-21 10:34:40 -07:00
ASP.NET CI b6972b2286 Updating submodule(s)
AADIntegration => c6cc1ef6d6
AuthSamples => 323e7c7205
EntityFrameworkCore => 7b7000dba9e40fe5b6a1ee21172fd2cb1b4f3bc1
Identity => 77693ccdc5
IISIntegration => d7bcb19c79
KestrelHttpServer => 324565772c
Mvc => 17d2545b55
Razor => fc17ee0749
Routing => db95a8c624
Scaffolding => 556bd08626a0c463eccb0c585b0596f086e36040
SignalR => 8a69fb7f51

[auto-updated: submodules]
2018-06-21 09:51:50 -07:00
Pranav K 323e7c7205 Use PartialTagHelper instead of Html.Partial 2018-06-21 09:46:12 -07:00
Ryan Brandenburg d7bcb19c79 Update deps 2018-06-21 09:39:24 -07:00
Pranav K 17d2545b55
Throw if the type parameter for ActionResult<T> is an action result (#7942)
Fixes #7931
2018-06-21 07:51:12 -07:00
= a7d70164be Merge branch 'public/release/2.1' into release/2.1-msrc 2018-06-20 18:15:44 -07:00
John Luo ea5ed2250d Pin aspnetcore runtime version for LZMA generation 2018-06-20 18:02:07 -07:00
Pavel Krymets ed1fa44a3d
Add diagnostics to hostfxrutil (#951) 2018-06-20 16:22:19 -07:00
N. Taylor Mullen 2599e0f5cc Fix up a few pieces for the fallback integrity check feature.
- Regenerated test baselines.
- Update code styling in TagHelpers.
- Modified some comments for clarity.
- Renamed fallback integrity attribute for both script and link tags.

#7845
2018-06-20 16:10:52 -07:00
jmhmaine 8a77ed23d3 Added support for ignoring integrity attribute on fallback for the Link TagHelper
- Do not include integrity attribute when asp-fallback-intergrity-check is false
 - Added Unit Tests, manual tests

Addresses #7845
2018-06-20 16:10:52 -07:00
Mike Harder e395b9240a
Add support for SDK 2.1.302 (#12) 2018-06-20 15:53:49 -07:00
Pranav K 4f7e849cc1
Setting up for ApiConventionAttribute analyzers (#7912)
* Setting up for ApiConventionAttribute analyzers
2018-06-20 15:22:53 -07:00
N. Taylor Mullen fc17ee0749 Update Razor SDK packing logic to not include Pack at properties layer.
- Added test to verify that no-build scenarios work as expected.

#2378
2018-06-20 15:20:01 -07:00
Mike Harder d1afd66362
Remove all generated hashes from SPA templates (#11) 2018-06-20 14:29:21 -07:00
Mike Harder daebec95f3 Add SdkVersion to Template.ToString()
- Documents which SdkVersion was tested
2018-06-20 12:51:22 -07:00
N. Taylor Mullen c7e0207d9d Revert "Update Razor SDK packing logic to not include Pack at properties layer."
This reverts commit 620105cc5e.
2018-06-20 11:39:55 -07:00
N. Taylor Mullen bcd292620a Update dependencies.props and korebuild. 2018-06-20 11:39:46 -07:00