Commit Graph

40803 Commits

Author SHA1 Message Date
William Godbe 7fc314f73b
Use nonshipping package to determine publish location for installers (#19067) 2020-02-14 14:28:58 -08:00
John Luo c41cd63942
Update branding to 2.1.17 (#19045) 2020-02-14 12:21:22 -08:00
Ryan Brandenburg e0fe30ce56
Remove ProjectTemplates ownership (#19066) 2020-02-14 11:34:34 -08:00
Pranav K e29c495166
Transfer endpoint metadata from PageActionDescriptor to CompiledPageActionDescriptor (#19061)
Fixes https://github.com/dotnet/aspnetcore/issues/17300
2020-02-14 10:53:46 -08:00
thetownfool 8fb412e960
allow valid error message to be displayed on linux (#18997)
when attempting to enable client debugging on blazor-wasm an attempt to
provide a helpful message casues an ¨Unknown OS platform¨ exception

relates to #16366 #12970
2020-02-14 10:37:23 -08:00
dotnet-maestro[bot] a085554993
Update dependencies from https://github.com/dotnet/arcade build 20200213.5 (#19036)
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.20113.5
- Microsoft.DotNet.GenAPI - 1.0.0-beta.20113.5
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.20113.5
2020-02-14 09:44:12 -08:00
Stephen Halter 439f4af49c
Cache _absoluteRequestTarget when reusing strings (#18547) 2020-02-14 09:38:31 -08:00
Stephen Halter f3e2b4d4d1
Keep Pipe readable after FormPipeReader error (#18939) 2020-02-14 09:36:57 -08:00
James Newton-King 89ab8633a4
Update Grpc.AspNetCore template reference to 2.27.0 (#18995) 2020-02-14 09:35:41 -08:00
Brennan ba74c35f0e
Build 3.1 site extension (#18568) 2020-02-14 09:35:01 -08:00
Alessio Franceschelli d05c9f465c
HeaderPropagation: reset AsyncLocal per request (#18300)
As Kestrel can bleed the AsyncLocal across requests,
see https://github.com/aspnet/AspNetCore/issues/13991.
2020-02-14 09:33:26 -08:00
Stephen Halter 7fa6d19644
Add option to interpret request headers as Latin1 (#18255) 2020-02-14 09:32:36 -08:00
Jacques Eloff a633c66dc6
Fix layout of installer help page for non-ENU locales, #18152 (#18246) 2020-02-14 09:31:17 -08:00
Pranav K e8d31697ad
Add an option to enable runtime compilation (#18648) 2020-02-14 08:35:06 -08:00
Pranav K d7f98bd562
Use reference equality to compare model instances in EditContext (#18172) (#18649)
* Use reference equality to compare model instances in EditContext

Fixes https://github.com/aspnet/AspNetCore/issues/18069
2020-02-14 08:34:44 -08:00
Pranav K 1027e5372f
Use the analyzer from the SDK when available (#18885)
* Use the analyzer from the SDK when available

This prevents a build warning when building a project that contains a reference to
Microsoft.AspNetCore.Components and a netcoreapp3.0 or newer targeting Web project.

The Web SDK implicitly adds the Components.Analyzer for netcoreapp3.0 or newer targeting projects.
If the project additionally referenced this package (directly or transitively), the package would
set up a property that prevented the implicit analyzer reference. This prevented the analyzer from
being referenced twice.

There were two issues with the current approach:

a) The props file wasn't propogated via buildTransitive. Consequently transitive project references
would reference two copies of the analyzer. When these were different versions, it resulted in a compiler
warning.

b) Forward looking, this prevents newer versions of the analyzer shipped from the SDK from ever being used.
This is particularly problematic since apps are likely to reference component libraries that were previously
compiled against 3.x.

This change attempts to mitigate both of these issues:

a) We add a buildTransitive so our build targets flow
b) We knock out the analyzer added by the package if the SDK's already added it.

Fixes https://github.com/dotnet/aspnetcore/issues/18563

* Update Microsoft.AspNetCore.Components.Analyzers.targets

* Update Microsoft.AspNetCore.Components.Analyzers.targets

* Add a description

* Update Microsoft.AspNetCore.Components.Analyzers.targets
2020-02-14 08:34:23 -08:00
Steve Sanderson 04b4602c2b
PWA template (#18878)
* Add service worker

* Add manifest

* Bring back BaselineTest.cs

* Add baselines for blazorwasm templates

* Add publishing test for PWA template

* Baseline fixes

* Fix baseline test logic to allow for multi-project outputs

* Remove non-blazorwasm baselines, since this branch now only covers blazorwasm

* Add test for PWA publish output

* Beginning generation of assets manifest

* Generate assets manifest including blazor outputs

* Tweaks

* Write assets manifest in JSON form

* Publish service worker

* Better API

* More resilience

* Better API again

* Make ComputeBlazorAssetsManifestItems public as people will need to customize the list

* Exclude service worker files from assets manifest

* Use web standard format for hash

* Update project template

* In assets manifest, only include items being published

* Renames

* Compute default assets manifest version by combining hashes

* Emit sw manifest in .js form

* Update service worker in project

* Actually isolate browser instances when requested during E2E tests

* E2E test for published PWA operating offline

* Fix SWAM path in template

* Clarify targets
2020-02-14 15:52:23 +00:00
dotnet-maestro[bot] 52f46367b0
Update dependencies from https://github.com/dotnet/blazor build 20200213.1 (#19039)
- Microsoft.AspNetCore.Blazor.Mono - 3.2.0-preview1.20113.1
2020-02-14 01:25:31 +00:00
John Luo d10a352e8c
Remove non-existing dependency in Identity.Specification.Tests (#18790) 2020-02-13 16:29:28 -08:00
dotnet-maestro[bot] 75ca750e59
Update dependencies from https://github.com/dotnet/arcade build 20200213.5 (#19034)
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.20113.5
- Microsoft.DotNet.GenAPI - 1.0.0-beta.20113.5
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.20113.5
2020-02-14 00:24:43 +00:00
Doug Bunting a6c43b14a1
Mark AspNetCore projects that aren't packaged explicitly (#18767)
* Mark AspNetCore projects that aren't packaged explicitly
- avoid NU5104 warnings due to confusing versioning
- `$(IsShippingPackage)` was semantically incorrect in any case

* Remove redundant `$(IsShippingPackage)` settings in `$(IsAspNetCoreApp)` projects
- default is `true` for all implementation projects

* Use `$(IsPackable)` when deciding how `$(IsAspNetCoreApp)` projects are handled
- remove all use of `$(IsShippingPackage)` for shared framework composition
- update documentation to match these changes

nits:
- remove odd default for `$(IsPackable)` in Directory.Build.targets
  - no longer relevant since all `$(IsAspNetCoreApp)` projects are `$(IsShippingPackage)` too
- include more information in docs/ProjectProperties.md

* Add direct System.Text.Json references
- avoid MSB3277 warnings
2020-02-13 15:51:27 -08:00
William Godbe 131f427194
Don't include ref assembly from Microsoft.AspNetCore.Testing (#18803) 2020-02-13 15:50:08 -08:00
William Godbe 09aadd6efa
Pin dependency on 3 CoreFx packages (#18542) 2020-02-13 15:49:25 -08:00
William Godbe 49920aa9d0
Update branding to 3.1.3 (#19015)
* Update branding to 3.1.3

* TargetingPackVersionPrefix -> 3.1.0
2020-02-13 15:45:36 -08:00
Pranav K fb50111c92
No-op if ValidateComplexType is validated without the right context (#18935)
Fixes https://github.com/dotnet/aspnetcore/issues/17316
2020-02-13 15:29:27 -08:00
dotnet-maestro[bot] 074f8faf58
Update dependencies from https://github.com/dotnet/blazor build 20200203.1 (#19017)
- Microsoft.AspNetCore.Blazor.Mono - 3.2.0-preview1.20103.1
2020-02-13 12:20:35 -08:00
Pranav K 1238c85f04
Build against the 3.1.0 AspNetCore (#18970)
* Build against the 3.1.0 AspNetCore

The version of the runtime that projects compile against
is stamped in to the runtimeconfig.json. In an earlier change, the AspNetCoreRef version
was bumped up to 3.1.2 which causes running dotnet dev-serve to fail
if you do not have the runtime installed.

In addition, the template json allows roll-forwards to major version (5.0 versions) if that's the only version
available. We do this with the razor compiler:
https://github.com/dotnet/aspnetcore-tooling/blob/master/src/Razor/src/Microsoft.AspNetCore.Razor.Tools/runtimeconfig.template.json
2020-02-12 17:10:24 -08:00
Pranav K fd9f20311d
Only update the dev-server 2020-02-12 14:20:10 -08:00
Pranav K c38765628d
Build against the 3.1.0 AspNetCore
The version of the runtime that projects compile against
is stamped in to the runtimeconfig.json. In an earlier change, the AspNetCoreRef version
was bumped up to 3.1.2 which causes running dotnet dev-serve to fail
if you do not have the runtime installed.

In addition, the template json allows roll-forwards to major version (5.0 versions) if that's the only version
available. We do this with the razor compiler:
https://github.com/dotnet/aspnetcore-tooling/blob/master/src/Razor/src/Microsoft.AspNetCore.Razor.Tools/runtimeconfig.template.json
2020-02-11 16:37:14 -08:00
Pranav K 376f378c0a
Ensure resolved assemblies works correctly when not linked + incremental build (#18797)
Fixes https://github.com/dotnet/aspnetcore/issues/18752
2020-02-11 09:12:17 -08:00
William Godbe cae6a9cfb3
Use non-stable versioning in blazor-wasm (#18894)
* Use stable versioning in blazor-wasm

* This branch never builds the targeting pack

* Update eng/Versions.props

* Undo changes to patchconfig.props

Co-authored-by: Pranav K <prkrishn@hotmail.com>
2020-02-10 14:05:36 -08:00
Ryan Nowak 82cbdc604e Remove Auto-Rebuild dead-code
Fixes: #17248

Removes the (*unused*) auto-rebuild code left over from early Blazor
previews.
2020-02-10 08:01:58 -08:00
dotnet-maestro[bot] 3b91f2d787
Update dependencies from https://github.com/dotnet/arcade build 20200127.3 (#18922)
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.20077.3
- Microsoft.DotNet.GenAPI - 1.0.0-beta.20077.3
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.20077.3
2020-02-10 13:34:49 +00:00
Artak d39ed09c29 Auto-generate random port and proper project settings for the server project (#18842) 2020-02-09 12:21:47 -08:00
Pranav K f5f51f5fd5
Fixup xml (#18881) 2020-02-07 09:25:06 -08:00
Pranav K 679ed5d5ca
Purge the blazor-wasm branch (#18770)
* Purge the blazor-wasm branch
2020-02-06 19:57:02 -08:00
Pranav K aa2d1057cf
Workaround analyzer 2020-02-05 14:56:36 -08:00
Pranav K 2562464cf0
Skip installing dotnet on xplat 2020-02-05 13:44:29 -08:00
Pranav K 63f28f7b98
fixup2 2020-02-05 13:32:14 -08:00
Pranav K 6a522be969
Fixup 2020-02-05 13:17:46 -08:00
Pranav K dd893339ef
Pin all the things 2020-02-05 13:10:53 -08:00
Pranav K ac15a78f8e
Let's try this 2020-02-05 13:10:01 -08:00
Pranav K 9450e95f2e
Merge branch 'blazor-wasm' into prkrishn/purge 2020-02-05 12:29:19 -08:00
Steve Sanderson 27b2872344 Support VS Code "pwa-chrome" debug type 2020-02-05 18:35:06 +00:00
Pranav K 96db485508
Remove extra sln 2020-02-05 10:26:43 -08:00
Pranav K 58fd885ffe
Undo changes to baseline 2020-02-05 10:23:40 -08:00
William Godbe e7a92c4e9d
Cleanup version.details.xml (#18786)
* Cleanup version.details.xml

* Cleanup version.details.xml
2020-02-04 15:08:01 -08:00
Pranav K 65fb07fe26
Also Versions.Details.xml 2020-02-04 12:38:31 -08:00
Pranav K af8aa0fe6e
Fixup error on SDK restore 2020-02-04 11:45:29 -08:00
Pranav K f54902f169
Purge the blazor-wasm branch 2020-02-03 17:49:41 -08:00