Commit Graph

242 Commits

Author SHA1 Message Date
Kiran Challa 13585f711f Using Routing feature branch package 2018-06-28 13:27:15 -07:00
ASP.NET CI f15457c026 Update dependencies.props
[auto-updated: dependencies]
2018-06-25 11:23:45 -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
Ajay Bhargav Baaskaran 3d32b6da2f
Upgrade deps and unskip tests (#7936) 2018-06-19 14:58:40 -07:00
Pranav K 4634a97fae Use older shared runtime 2018-06-18 09:20:08 -07:00
Pranav K bc49a82d02
Use feature branch package of Localization 2018-06-15 11:12:57 -07:00
Pranav K a7bc5d6d40
Use feature branch build of Routing to fix build break 2018-06-15 10:34:11 -07:00
James Newton-King a7406d4497
Add MvcEndpointDataSource and functional tests (#7886) 2018-06-14 11:03:45 +12:00
Pranav K 6c2ef122f8 Add support for conventions in DefaultApiDescriptionProvider 2018-06-11 16:07:09 -07:00
Ryan Brandenburg b7064c576d Use templates for VSTS builds 2018-06-07 12:37:01 -07:00
ASP.NET CI 839223756b Update dependencies.props
[auto-updated: dependencies]
2018-06-03 19:22:37 +00:00
ASP.NET CI dacbb41478 Update dependencies.props
[auto-updated: dependencies]
2018-05-27 19:23:26 +00:00
ASP.NET CI 330b74f0ab Update dependencies.props
[auto-updated: dependencies]
2018-05-20 19:40:46 +00:00
Pranav K e1eaf6a6e0
Cleanup TestCommon 2018-05-18 10:45:57 -07:00
Pavel Krymets a736441ca5
Enable analyzers (#7789) 2018-05-18 10:26:42 -07:00
ASP.NET CI 57eb52ad47 Update dependencies.props
[auto-updated: dependencies]
2018-05-13 14:17:20 -07:00
Ryan Brandenburg 9f7629b448 Upgrade to netcoreapp22 2018-05-08 10:51:17 -07:00
Pranav K f52c9c0f97 Update analyzer tests to use Microsoft.AspNetCore.Analyzer.Testing 2018-05-07 16:06:01 -07:00
Ryan Nowak 9007f5422d Bump Roslyn dependency to 2.8.0
(cherry picked from commit a8e1a1fd40)
2018-05-07 12:38:10 -07:00
ASP.NET CI 4e97bfe957 Update dependencies.props
[auto-updated: dependencies]
2018-05-06 12:24:44 -07:00
ASP.NET CI b3087ab774 Update dependencies.props
[auto-updated: dependencies]
2018-04-29 12:25:33 -07:00
ASP.NET CI 1b9372f5b0 Update dependencies.props
[auto-updated: dependencies]
2018-04-23 12:18:21 -07:00
Pranav K d0b0c6ae34
Update dependencies.props and KoreBuild version 2018-04-20 14:41:40 -07:00
Pranav K 9875fffc80
Merge remote-tracking branch 'origin/release/2.1' into dev 2018-04-20 14:37:27 -07:00
ASP.NET CI 31f9432a39 Update dependencies.props
[auto-updated: dependencies]
2018-04-19 22:30:20 -07:00
Nate McMaster 8ec3870a92
Set NETStandardImplicitPackageVersion via dependencies.props 2018-04-19 16:43:15 -07:00
Ryan Brandenburg 864a4e39c3 Branching for 2.1.0-rc1 2018-04-16 17:00:28 -07:00
Pranav K d8fc2d4009 Fix test failures
* Disable deps file generation in class library project. This workarounds known issue - https://github.com/dotnet/core-setup/issues/3726
* Update RazorProjectRouteModelProvider to not specify a trailing slash. This produces paths with a single slash as opposed to two slashes messing with route creation.
* React to Microsoft.AspNetCore.Mvc.Razor.Extensions.Reference that shows up in the deps file.
2018-04-15 16:31:41 -07:00
ASP.NET CI 128c7e0a17 Update dependencies.props
[auto-updated: dependencies]
2018-04-15 14:19:34 -07:00
Pranav K 3db924003e Use VirtualRazorProjectSystem for Razor tests 2018-04-09 15:27:03 -07:00
ASP.NET CI 8e323a8e1e Update dependencies.props
[auto-updated: dependencies]
2018-04-03 22:35:30 +00:00
Pranav K 133dd964ab Introduce ViewDataAttribute
Allow properties on controllers, Razor Page and Razor Page models annotatted with [ViewDataAttribute]
to populate ViewDataDictionary

Fixes https://github.com/aspnet/Mvc/issues/6525
2018-03-30 14:19:52 -07:00
Pranav K dae280b06a
Update dependencies.props 2018-03-28 11:29:27 -07:00
Pranav K 711a0d7003
Merge remote-tracking branch 'origin/release/2.1' into dev 2018-03-27 12:15:34 -07:00
Pranav K 62fec52a9f Add a framework specific reference to Microsoft.DiaSymReader.Native
Fixes https://github.com/aspnet/Mvc/issues/7478
2018-03-27 12:08:46 -07:00
Kiran Challa 203ebb64ed Updated dependencies.props 2018-03-27 10:07:35 -07:00
Kiran Challa 1186fa66ab Merge branch 'release/2.1' into dev 2018-03-27 10:06:51 -07:00
Kiran Challa 0c084fa28a [Fixes #7518] NullReferenceException thrown when Controller method uses Guid parameter default value 2018-03-27 05:22:20 -07:00
ASP.NET CI fa629cd5e1 Update dependencies.props
[auto-updated: dependencies]
2018-03-25 15:48:27 -07:00
Pranav K 3141179344
Merge remote-tracking branch 'origin/release/2.1' into dev 2018-03-21 15:41:42 -07:00
Pranav K d6176ac7de ApplicationPartFactory: The works 2018-03-21 15:40:15 -07:00
Pranav K 3d251549c8
Merge pull request #7502 from aspnet/release/2.1
Stop building\testing on netcoreapp2.0
2018-03-19 11:01:07 -07:00
Pranav K e7b2e3fe2d Stop building\testing on netcoreapp2.0 2018-03-19 10:09:51 -07:00
Pranav K fd713f64d5
Branching for 2.1.0-preview2 2018-03-16 11:16:07 -07:00
Pranav K 190424fd59
Enable dotnet-build bot 2018-03-15 17:11:23 -07:00
Ajay Bhargav Baaskaran 90b07a9e9a Enable RazorCompileOnBuild of test website 2018-03-14 15:37:49 -07:00
Ajay Bhargav Baaskaran 4acdebc5be
Temporary workaround issue with Sdk mismatch (#7472) 2018-03-12 13:29:49 -07:00
Pranav K 62fdf3a472 Fix issues with RazorCompileOnBuild=true being default 2018-03-09 14:39:18 -08:00
ASP.NET CI 68deb40719 Update dependencies.props
[auto-updated: dependencies]
2018-03-08 13:07:49 -08:00
Pranav K 69d5573bb5
Use dotnet-core feed in repos 2018-03-06 10:05:13 -08:00
Pranav K e35d0bc43f Add more fine grained logging to RazorViewCompiler 2018-02-26 19:44:26 -08:00
ASP.NET CI bdcf2a9bed Update dependencies.props
[auto-updated: dependencies]
2018-02-26 11:09:24 -08:00
Doug Bunting 049caf0c10 Use RTM `Microsoft.AspNet.WebApi.Client` package
- aspnet/Mvc#7212
2018-02-18 18:15:04 -08:00
ASP.NET CI b10c87d6e8 Update dependencies.props
[auto-updated: dependencies]
2018-02-18 12:25:34 -08:00
N. Taylor Mullen 43106f688a Re-enable "Move to RazorProjectEngine."
- This was initially reverted due to insufficient packages for local builds.

This reverts commit 5ac6fa77f8.
2018-02-16 16:13:54 -08:00
Ryan Nowak e27009528f Add reference to MVC.Razor.Extensions
Make sure the msbuild files from this package are includes
Update KoreBuild and deps
2018-02-15 15:43:04 -08:00
ASP.NET CI d40c60d15b Update dependencies.props
[auto-updated: dependencies]
2018-02-11 12:33:09 -08:00
ASP.NET CI 8139ee9631 Update dependencies.props
[auto-updated: dependencies]
2018-02-09 11:52:03 -08:00
Doug Bunting 50af871396 Use new `HttpRequest.EnableBuffering()` extension method
- aspnet/Home#2684
- update dependencies to pick up latest HttpAbstractions
2018-02-07 10:57:17 -08:00
ASP.NET CI 8e303249c5 Update dependencies.props
[auto-updated: dependencies]
2018-02-03 02:55:01 +00:00
Jass Bagga 930664de6e
Add INFO level logging (#7314)
Addresses #7171
2018-01-31 16:57:49 -08:00
Pranav K bc48de9c2f Merge branch 'release/2.1' into dev 2018-01-25 10:54:38 -08:00
Pranav K a74ef9dfd9 Error message for [ApiController] without attribute route needs to be better
Fixes #7277
2018-01-25 10:25:52 -08:00
Artak Mkrtchyan 4f3e0966d9 Enabling antiforgery tests, which were disabled because of the #7040 issue 2018-01-23 19:16:24 -08:00
Pranav K e2839053dd Branching for 2.1.0-preview1 2018-01-23 15:32:12 -08:00
Ryan Brandenburg ea14942525 React to Options change 2018-01-23 08:07:45 -08:00
Pranav K c6c77dd4d3 Introduce Mvc analyzers 2018-01-19 16:02:50 -08:00
Ryan Nowak 61d42825d7 Update deps 2018-01-19 13:33:35 -08:00
Ajay Bhargav Baaskaran f9b246e7ab Update dependencies 2018-01-11 14:14:12 -08:00
Ryan Nowak a88adcbeab Update dependencies 2018-01-09 12:25:11 -08:00
Ryan Nowak e0471d059b update dependencies 2018-01-08 17:37:19 -08:00
Doug Bunting bab520f4dd Use latest `Microsoft.AspNet.WebApi.Client` package
- #5822
- update `Microsoft.AspNet.WebApi.Client` package version
- remove remaining few `$(PackageTargetFallback)` settings
- remove .NET Standard-specific files
  - they duplicate what Microsoft.AspNet.WebApi.Client now provides
  - necessary only if cross-compiling a PCL version of the WebApiCompatShim
  - add type forwarding for the removed `public` types
- reenable .NET Framework WebApiCompatShim tests
- add breaking change record for `MediaTypeFormatterMatchRanking` value change
  - version of this type in the shim lacked the `MatchOnRequestWithMediaTypeMapping` value
2018-01-05 16:42:28 -08:00
Kiran Challa 9fd60ff864 Marked CookieTempDataProvider's cookie as non-essential
[Fixes #7160] Determine if the temp data cookie is considered essential
2018-01-05 15:41:01 -08:00
Pavel Krymets 997544077a
Use common BDN runner and config (#7186) 2018-01-04 09:13:11 -08:00
ASP.NET CI 4abf2909ae Update dependencies.props
[auto-updated: dependencies]
2018-01-04 01:47:36 +00:00
Pranav K 0e21bab125 React to naming change in Razor 2018-01-03 12:38:16 -08:00
ASP.NET CI 64a11e2093 Update dependencies.props
[auto-updated: dependencies]
2017-12-31 21:40:05 +00:00
Ryan Nowak 514381f16f Add Razor.Design as a dependency of MVC
This reverts commit 6981c29394.

Also updated the deps to get the latest, which has some fixes we need to
start using this.
2017-12-29 11:21:34 -08:00
Ryan Nowak 455cf2e0c3 Add the Razor.Design dependency to MVC 2017-12-20 18:31:21 -08:00
ASP.NET CI 55fdbc24ed Update dependencies.props
[auto-updated: dependencies]
2017-12-13 21:24:30 +00:00
ASP.NET CI e24c44f243 Update dependencies.props
[auto-updated: dependencies]
2017-12-10 13:27:14 -08:00
Pranav K 41104bff7e Specify runtime versions to install 2017-11-29 14:09:28 -08:00
Pranav K 24d245c16c Replace aspnetcore-ci-dev feed with aspnetcore-dev 2017-11-21 15:48:29 -08:00
Nate McMaster 86ef25e007 Use MSBuild to set NuGet feeds instead of NuGet.config 2017-11-20 12:18:25 -08:00
Pranav K b26f64e554 Updating dependencies to make samples work 2017-11-17 15:16:36 -08:00
Pranav K 905bdea095 Use MicrosoftNETCoreApp21PackageVersion to determine the runtime framework in netcoreapp2.1 2017-11-17 13:00:26 -08:00
Pranav K a01e23250f Preparing to update to 2.2 SDK 2017-11-09 16:25:51 -08:00
Nate McMaster 2e4bc548f5
Pin tool and package versions to make builds more repeatable (#7013) 2017-10-31 19:18:14 -07:00
Nate McMaster b811e69d00 Use PackageLineup to manage PackageReference versions
- Move the Mvc.Performance project from test/ to benchmarks/.
 - Remove the Version attribute on PackageReference.
 - Add a reference to two PackageLineup's.
 - Add snippet to README explaining the additional requirement to run build.cmd /t:restore.
 - Add a target to check that packages have been pinned.
2017-08-30 12:14:11 -07:00
Nate McMaster 3a710c3d64 Upgrade to xunit 2.3.0-beta4 2017-08-17 10:45:03 -07:00
Nate McMaster b43b244830 Use Directory.Build.props/targets 2017-08-16 12:30:13 -07:00
Nate McMaster 8e1a337e31 Update bootstrappers to use the compiled version of KoreBuild
[ci skip]
2017-07-25 16:33:52 -07:00
Pranav K b00c13ae7e Updating to InternalAspNetCoreSdkVersion 2.1.1-* 2017-07-25 15:14:16 -07:00
Ryan Brandenburg 96e9b8d239 Set AspNetCoreVersion 2017-07-24 17:57:43 -07:00
Mike Harder 161b6e7b94 Update Roslyn to 2.3.1 (#6571) 2017-07-20 10:48:37 -07:00
Mike Harder f94605df47 Update FSharp.Core and FSharp.NET.Sdk to latest (#6538) 2017-07-12 18:07:01 -07:00
Pranav K 308d64277e Update to Roslyn 2.3.0 2017-07-12 07:58:46 -07:00
Mike Harder 5fe09f9df4 Upgrade Roslyn to 2.3.0-beta4-* (#6523) 2017-07-10 17:28:40 -07:00
Ryan Brandenburg fdb6a76a5b Remove NETStandard.Library.NETFramework 2017-07-07 10:27:34 -07:00
Ryan Brandenburg 8b9b8beb1d Set "TreatWarningsAsErrors" before NuGet restore
* Ensures our build stays clean of NuGet warnings
2017-07-06 13:42:25 -07:00
Nate McMaster 7eb4a8687e React to aspnet/BuildTools#293
[ci skip]
2017-07-06 10:38:37 -07:00
Ryan Brandenburg 057a853de7 DiagnosticSource to 4.4.1 2017-07-03 15:03:34 -07:00
Mike Harder 660b7df0e2 Upgrade Roslyn to 2.3.0-beta3-* 2017-06-30 12:17:58 -07:00
Pranav K b95ea8bcd2 Add NETStandardImplicitPackageVersion 2017-06-29 08:39:43 -07:00
Pranav K d278d6eedf Updating Moq to 4.7.49 2017-06-27 09:04:45 -07:00
Ryan Nowak 4a374f8a33 Merge branch 'rel/2.0.0-preview2' into dev 2017-06-14 12:06:47 -07:00
Ryan Nowak e14ab8f396 Revert "Revert "Update Roslyn dependency for C# 7.1""
This reverts commit 8fb5652f0a.
2017-06-14 12:00:47 -07:00
Nate McMaster e9362360c6 Remove unused dependency and update corefx version 2017-06-06 17:12:47 -07:00
Mike Harder 17a74a4c2d Merge remote-tracking branch 'origin/rel/2.0.0-preview2' into dev 2017-06-05 11:15:53 -07:00
Mike Harder 8fb5652f0a Revert "Update Roslyn dependency for C# 7.1"
This reverts commit e2c6eab554.
2017-06-05 10:40:38 -07:00
Ryan Nowak b1bc67e92e Merge branch 'rel/2.0.0-preview2' into dev 2017-06-03 17:56:16 -07:00
Ryan Nowak e2c6eab554 Update Roslyn dependency for C# 7.1 2017-06-03 17:38:13 -07:00
Pranav K 865a5d2f46 Branching for rel/2.0.0-preview2 2017-05-31 19:37:04 -07:00
Kiran Challa df75fd2188 Updated to use the latest shared runtime 2017-05-29 04:41:22 -07:00
Ryan Brandenburg 9ea37a1bbb Fix TFM build breaks 2017-05-25 13:12:39 -07:00
Ryan Brandenburg 03404cd3df Return to NetStandard 2017-05-25 10:34:16 -07:00
Nate McMaster d70bfdd1ea Upgrade test framework versions and fix test issues 2017-05-15 14:11:27 -07:00
Pavel Krymets cf64b335f6 Remove unnecessary package references (#6252) 2017-05-10 12:06:10 -07:00
Steve Sanderson a80594d706 Add FSharpWebSite plus simple functional test against it (#6231) 2017-05-05 19:08:36 +01:00
Pranav K 64ffcfaa89 Merge pull request #6236 from aspnet/rel/2.0.0-preview1
Change TFM to netcoreapp2.0 (#6234)
2017-05-04 22:18:48 -07:00
Pranav K 1c5e417606 Change TFM to netcoreapp2.0 (#6234)
* Change TFM to netcoreapp2.0
2017-05-04 18:11:26 -07:00
Pranav K 18b62c592f Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-01 22:02:27 -07:00
Pranav K 561a22e367 Use the bundled NETStandard.Library package in netstandard targeting libraries 2017-05-01 12:39:54 -07:00
Pranav K d2c9df7d2e Branching for 2.0.0-preview1 2017-04-25 22:04:15 -07:00
Pranav K ce4e94c1ac Use Bundled NETStandard.Library \ NETCoreApp versions instead of explicitly specifying one 2017-04-25 12:50:48 -07:00
N. Taylor Mullen 83faaebdb6 Upgrade Roslyn dependency to 2.0.0.
- Added C# 7 unit and functional test to validate features work end-to-end.

#6149
2017-04-21 11:41:31 -07:00
Kiran Challa f4d84f50cd Upgrading Moq to 4.7.1 2017-04-20 17:07:50 -07:00
Kiran Challa d65e77e4f7 Updated dependency model version to 2.0.0-* 2017-04-18 16:55:39 -07:00
Pranav K bc05f005ec Updating versions to 2.0.0-preview1 2017-04-04 06:57:28 -07:00
Pranav K b18e96717a React to https://github.com/aspnet/Razor/issues/1098 2017-04-03 16:41:55 -07:00
Ryan Nowak 7d4ccd9c58 Add benchmark project and boilerplate 2017-03-31 11:19:22 -07:00
Pranav K bd6520cc50 Updating to 2.0.0 Internal.AspNetCore.Sdk 2017-03-29 12:05:46 -07:00
Kiran Challa 9c5b33dd8a Upgraded Json.Net version to 10.0.1 2017-03-28 11:28:43 -07:00
Pranav K badb6ce8e5 Remove net451 as a cross-compile target 2017-03-22 06:32:50 -07:00
Nate McMaster 6f7717a381 Unify dependency versions to one file 2017-03-15 16:54:32 -07:00
N. Taylor Mullen acfad83aa6 Migrate to MSBuild
- thanx to @NTaylorMullen for initial conversion
  - e.g. AssemblyInfo.cs files were already minimized or removed :)
- allow `>=` RC3 CLI's to build and run MVC
- work around several dotnet migration issues; see #5482
- disable full .NET Framework runs of functional tests; see #5873
- remove `Microsoft.DotNet.InternalAbstractions` and `System.Xml.XmlDocument` dependencies
- remove project.json (!!), *.xproj, .notest, and web.config files

Redo earlier changes:
- apply test migration to .NET 4.5.2 in *.csproj world
  - see 63507c8 for previous, project.json work
- apply dependency version downgrade from 0097e40 in *.csproj world

Make other test-related changes:
- make Microsoft.AspNetCore.Mvc.TestDiagnosticListener a regular class library
- add support for `/p:GenerateBaselines=true` for functional and Razor.Host tests
- separate `GetCSharpTypeName_ReturnsCorrectTypeNames_ForOutParameter()` test
  - work around inability to deserialize a odd `ref` type
  - xUnit and vstest now serialize / deserialze test data more often
- skip poor test mentioned in #5768
- work around Microsoft/vstest#392
  - rename tests to avoid duplicates
- work around Microsoft/vstest#419
  - set up created `AppDomain`s with current `ApplicationBase`
2017-02-28 21:20:39 -08:00
David Fowler 75169fefff Updated the build. 2014-01-25 02:12:04 -08:00
David Fowler b0933fdd35 Updated the build and removed older projects. 2014-01-24 02:02:47 -08:00
David Fowler b54a0da6e8 Updated MVC.
- Use new HttpAbstractions
- Updated the build
- Added new projects
2014-01-24 01:55:17 -08:00
David Fowler c734eada6f Added restore to build. 2014-01-21 21:52:44 -08:00
David Fowler cd744ed7bd Nuke the bin folder 2014-01-21 20:16:13 -08:00
Pranav K 7b8a54cc24 * Updating project structure to use the src, test, build, samples format
* Adding build scripts to use K compilation.
2014-01-21 16:15:44 -08:00