Commit Graph

40322 Commits

Author SHA1 Message Date
Ryan Brandenburg e0fe30ce56
Remove ProjectTemplates ownership (#19066) 2020-02-14 11:34:34 -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
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
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
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
Steve Sanderson 4360535bab
Update to newer ws-proxy sources (#18760)
* Update to latest ws-proxy sources

* Changes needed inside ws-proxy sources for inclusion in Microsoft.AspNetCore.Blazor.Server

* Use ILogger in ws-proxy

* Fix for /json endpoint when on HTTPS
2020-02-03 13:49:44 -08:00
Pranav K bbafecc053
Update Web.JS scripts (#18635) 2020-01-28 13:18:31 -08:00
Pranav K bb1b2c4bf2
Use scenario name for measurements and metadata (#18609) 2020-01-28 09:08:57 -08:00
Ajay Bhargav B 24be2992de
Run Blazor E2E tests on SauceLabs (#18456)
* Run Blazor E2E tests on SauceLabs

* Added azure pipeline

* update yml

* Update meta

* More changes
2020-01-27 17:54:18 -08:00
Pranav K e24f73e14b
Fix build warnings in MonoProxy (#18573) 2020-01-24 16:04:11 -08:00
Pranav K 9bdf208631
Fixup bad merge (#18570) 2020-01-24 15:05:45 -08:00
Daniel Roth 5f43e7a8a8
Update survey link for 3.2.0-preview1 (#18513) 2020-01-23 09:01:15 -08:00
Javier Calvarro Nelson ffac687091
Revert "[Fixes #17014] Add an auth-enabled template for Blazor WASM projects (#18354)" (#18516)
This reverts commit e64b8a91ad.
2020-01-22 14:00:39 -08:00
Pranav K c7e6beec3c
Include compressed size in output (#18485) 2020-01-21 16:38:22 -08:00
Ryan Nowak 3111032dc0 Rework of Blazor startup experience
Fixes: #16874

This is a significant simplication of our startup code model for Blazor
wasm with the goal of removing concepts that don't make much sense here.
Previously in this area we've tried to be consistent with ASP.NET Core
on the server, but it's not helping up much in WASM.

We're still leveraging some of the lessons from server-size ASP.NET
(hello CreateDefaultBuilder) but consistency is no longer a goal.

This change actually makes a bunch of scenarios better (rather than
removing features) - it's now possible to access services from the
application's DI scope and initialize them before the UI is shown
`RunAsync`.

This change also adds configuration in a central way. There's nothing in
this change that populates configuration in an automatic way, that will
come next.
2020-01-21 15:48:49 -08:00
Pranav K ba08d60cb9
Update names and descriptions for benchmarks (#18430) 2020-01-21 14:43:34 -08:00
wtgodbe 419a1f11a9 Undo accidental merge 2020-01-21 14:38:56 -08:00
wtgodbe 41bc4ec129 Fix logic for _GetPackageVersionInfo 2020-01-21 14:35:16 -08:00
Steve Sanderson 05f2430bbd Update Mono debug proxy code (#18478) 2020-01-21 13:33:27 -08:00
Ajay Bhargav B 0f2e88a334
Added launchSettings.json for Blazor wasm templates (#18368)
* Added launchSettings.json for Blazor wasm templates

* Updated launchSettings

* removed windows auth option
2020-01-21 12:45:25 -08:00
William Godbe 1f61fc6cb1
Update dependencies from dotnet/blazor (#18424)
* Update dependencies from dotnet/blazor

* Update version of blazor package used

* Removed obsolete WipedMethod invocation test

* react to mono.wasm to dotnet.wasm rename

* Leftover code cleanup
2020-01-17 15:56:08 -08:00
Javier Calvarro Nelson e64b8a91ad
[Fixes #17014] Add an auth-enabled template for Blazor WASM projects (#18354)
* [Fixes #17014] Add an auth-enabled template for Blazor WASM projects
* The template enables auth using cookies.
* Includes a UserController to return the user claims/data to the user
* Includes an IdentityAuthenticationStateProvider that fetches the
  claims data from the application.
* It requires a hosted project.
2020-01-17 12:44:30 -08:00
Pranav K 4ab5fe6803
Handle satellite assemblies in the Blazor build targets (#18207)
* Handle satellite assemblies in the Blazor build targets

* Pass the same closure of assemblies that is used by the SDK's linker to Blazor's linker and ResolveBlazorRuntimeDependencies task
* Quote the mono linker path

Fixes https://github.com/dotnet/aspnetcore/issues/17644
Fixes https://github.com/dotnet/aspnetcore/issues/17754
2020-01-15 10:43:58 -08:00
Pranav K d4a348e17b
Add a benchmarking app for Blazor Wasm (#18015)
* Add a benchmarking app for Blazor Wasm
2020-01-14 11:10:52 -08:00