Commit Graph

18048 Commits

Author SHA1 Message Date
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
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 1e62df1a2d
Try self-contained 2020-01-13 17:05:01 -08:00
Pranav K dd524df6bb
Application started 2020-01-13 14:42:02 -08:00
Pranav K 17b1dc9841
Add a benchmarking app for Blazor Wasm 2020-01-13 14:42:02 -08:00
Pranav K 80a67874c6
Resolve merge conflicts 2020-01-10 10:43:25 -08:00
Pranav K 3fb171e282
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-10 10:03:02 -08:00
Steve Sanderson 2e2d0625e1 Write unlinked.output to disk 2020-01-10 16:31:34 +00:00
Steve Sanderson cb092258c3 Allow overwriting outputs with older inputs. Fixes #18192 2020-01-10 16:31:34 +00:00
Steve Sanderson a181fd5232
Link more assemblies (type granularity linking for real this time) (#18165) 2020-01-10 11:30:55 +00:00
Pranav K d4ada348fb
Use Blazor version for WASM templates (#18174) 2020-01-07 13:42:25 -08:00
Pranav K 66ecdab542
Ensure $(Configuration) is evaluated prior to using it (#18113)
Fixes https://github.com/aspnet/AspNetCore/issues/12779
2020-01-06 08:39:56 -08:00
Pranav K baf72c73c5 Avoid copying the shared fx in blazor-wasm 2020-01-03 15:05:53 -08:00
Pranav K 1c3ae1549e Add publish test for BlazorStandalone 2020-01-03 15:05:53 -08:00
Pranav K 62e2fb22e5
Use mono_bind_static_method for invoking JS methods (#17942)
* Use mono_bind_static_method for invoking JS methods
2019-12-18 12:18:18 -08:00
Javier Calvarro Nelson e4c0ec3ca6
[Blazor] Update branding for the next release (#17852) 2019-12-13 14:36:52 +01:00
Steve Sanderson 3a93704737
Support async main (#17673) 2019-12-12 15:05:12 +00:00
Pranav K 3fba107522
Fix typo in error message (#17741) 2019-12-10 11:30:13 -08:00
John Luo bb4f3a513d
Merge branch 'blazor-wasm' into merge/release/3.1-to-blazor-wasm 2019-12-08 13:31:02 -08:00
William Godbe 1f114dff50
Download runtime from suffixed location in dotnetcli blob storage (#17592) 2019-12-05 12:33:38 -08:00
Pranav K 51f0e07b63
Merge branch 'blazor-wasm' into merge/release/3.1-to-blazor-wasm 2019-12-05 10:59:13 -08:00
William Godbe 99979efaf6
Update branding to 3.1.1 (#17335)
* Update branding to 3.1.1

* Add *

* Skip RefPack tests

* Update baseline
2019-12-04 15:45:00 -08:00
Pranav K 7fc46862ea
Run build and publish tests for Blazor templates (#17410)
* Add build and publish tests for Blazor hosted
*  Add build tests for Blazor standalone
* Cleanup project template

Fixes https://github.com/aspnet/AspNetCore/issues/14866
Fixes https://github.com/aspnet/AspNetCore/issues/10269
Fixes https://github.com/aspnet/AspNetCore/issues/9168
2019-12-03 14:29:05 -08:00
Pranav K 76ae0a2e21
Build fewer things in blazor-wasm (#17533) 2019-12-03 13:47:33 -08:00
Javier Calvarro Nelson ca893e25a5
[Blazor] Fixes publish issue with static web assets on hosted scenarios (#17496) 2019-11-29 20:44:14 +01:00
Javier Calvarro Nelson e3dcd41304
[Blazor] Pins the SDK version to 3.1 and forces Blazor projects to compile against it (#17479) 2019-11-28 23:12:44 +01:00
Steve Sanderson 548ae26e21 Fix Blazor WebAssembly hosted publishing 2019-11-28 12:41:21 +00:00
Pranav K 0c11c75641 [Blazor] Fix Blazor.build package (#17463) 2019-11-28 04:50:50 +01:00
dotnet-maestro[bot] 1f15d60241
[blazor-wasm] Update dependencies from dotnet/arcade aspnet/Blazor (#17307)
* Update dependencies from https://github.com/aspnet/Blazor build 20191121.2

- Microsoft.AspNetCore.Blazor.Mono - 3.1.0-preview4.19571.2

* Update dependencies from https://github.com/aspnet/Blazor build 20191126.1

- Microsoft.AspNetCore.Blazor.Mono - 3.1.0-preview4.19576.1

* Update dependencies from https://github.com/aspnet/Blazor build 20191126.2

- Microsoft.AspNetCore.Blazor.Mono - 3.1.0-preview4.19576.2

* Add missing extensions feed

Seems like the feed with stable versions has been deleted in the updated. I've re-added it and that should fix the existing restore issues.

* Pass an empty array to entry point

Fixes https://github.com/aspnet/AspNetCore/issues/17419
2019-11-27 18:51:32 +00:00
Steve Sanderson 16195aaa3b Include .pdb files in blazor.boot.json to re-enable debugging 2019-11-27 14:59:54 +00:00
Steve Sanderson 99883719af Suppress msedge first run experience when debugging 2019-11-27 13:12:14 +00:00
Steve Sanderson 3579d8fca2 Fix swapped browser names. Fixes #16746 2019-11-27 13:12:14 +00:00
Steve Sanderson 46b95b2564 Fix wasm debugging when running on HTTPS. Fixes #17338 2019-11-27 13:12:14 +00:00
Pranav K 0c381d2402
Add some tests for hosted project building and publishing (#17398)
* Add some tests for hosted project building and publishing
2019-11-26 16:45:42 -08:00
Pranav K 3c6dc1c516
Try different MSBuild things to make build work (#17427)
Fixes https://github.com/aspnet/AspNetCore/issues/17418
2019-11-26 16:42:55 -08:00
John Luo 6c961ae4e2
Update branding for Blazor packages and update baseline (#17346)
* Disable baseline generation in CodeCheck
2019-11-25 16:17:22 -08:00
Javier Calvarro Nelson 4400467c15
[Blazor] Fixes publishing for standalone blazor-wasm applications (#17353)
* Updates the publish path on the static web assets to match the convention used by standalone blazor applications.
2019-11-25 23:16:29 +01:00
William Godbe ca948aae28
Merge pull request #17336 from dotnet-maestro-bot/merge/release/3.1-to-blazor-wasm
[automated] Merge branch 'release/3.1' => 'blazor-wasm'
2019-11-25 13:12:08 -08:00
Ryan Brandenburg 03dd93c473
Enable WASM debugging (#17162)
Changes needed so VS can connect to the Mono WebAssembly debugger via Chrome protocol
2019-11-25 13:00:24 -08:00
William Godbe 9cc3905c10
Don't ship blazor packages from release/3.1 (#17342) 2019-11-25 11:32:38 -08:00
Pranav K e862ce7cee
Use a task to launch the linker (#17313)
* Use a task to launch the linker


Fixes https://github.com/aspnet/AspNetCore/issues/17264
2019-11-25 10:09:06 -08:00
William Godbe ffb7b0d412
Merge branch 'blazor-wasm' into merge/release/3.1-to-blazor-wasm 2019-11-25 09:57:45 -08:00
Justin Kotalik c31f51e5c7 [3.1.x] Allow external startup hooks (#17116) 2019-11-23 10:06:25 -08:00
Pranav K e470aead3e Remove reference assembly for Blazor.HttpClient 2019-11-22 19:55:39 -08:00
Pranav K 3c06726d77 Move Mono.WebAssembly.Interop to blazor-wasm branch 2019-11-22 19:55:39 -08:00