Commit Graph

704 Commits

Author SHA1 Message Date
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
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 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
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
Steve Sanderson 05f2430bbd Update Mono debug proxy code (#18478) 2020-01-21 13:33:27 -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
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 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
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
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
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
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
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
Pranav K d6c88a36ff
More cleaning up Blazor.Build package (#17157)
* More cleaning up Blazor.Build package

* Clean up MonoRuntime targets
* Convert executables in to tasks
* Add tests
2019-11-22 09:54:20 -08:00
Pranav K 5bdf75f3e1
Use System.Reflection.Metadata to generate BootConfig (#17156)
* Use System.Reflection.Metadata to generate BootConfig

* Remove reference to Mono.Cecil
* Remove support for auto embedded css \ js
* Remove blazor.webassembly.js
2019-11-19 10:19:57 -08:00
Pranav K ff4791ea90
Use mono wasm method to invoke entry point (#17050) 2019-11-18 14:54:27 -08:00
Doug Bunting 92767967c0
Merge branch 'blazor-wasm' into merge/release/3.1-to-blazor-wasm 2019-11-16 12:43:11 -08:00
Ryan Nowak 8f8b5f55a9 Make constraint cache thread safe (#17146)
* Make constraint cache thread safe

Fixes: #17101

This changes the constraint cache to use ConcurrentDictionary. This code
is invoked in a multithreaded way in Blazor server resulting in internal
failures in dictionary.

Since this is a threading issue there's no good way to unit test it, but
I noticed we're missing tests in general for this class, so I added a
few for the caching behavior.

* PR feedback
2019-11-15 21:21:11 -08:00
William Godbe 19ca6e9a59
Merge pull request #16829 from aspnet/johluo/blazor-prerelease
Keep Blazor at pre-release for 3.1
2019-11-12 20:51:52 -08:00
Steve Sanderson 5b30797592
Blazor WebAssembly move to netstandard2.1 (#16808)
* Now works on ns2.1, but links too much

* Now only link System.* assemblies

* Clean up. Also link Microsoft.Extensions.* now too, since it works.

* x-plat slash consistency

* Change all Blazor.* projects to netstandard2.1

* Further TFM updates

* Stop linking Microsoft.Extensions for now, since it requires a more detailed treatment to avoid breaking things
2019-11-12 16:16:40 +00:00
Kevin Pilch 5195d15939 Update some tests 2019-11-05 11:24:48 -08:00
John Luo e7e29105cc Keep Blazor at pre-release for 3.1 2019-11-04 13:43:24 -08:00
Ryan Brandenburg 41e15c3d90
Prevent VS warning for empty attribute (#16719) 2019-11-01 10:57:00 -07:00
dotnet-maestro[bot] 3c140121de
[release/3.1] Update dependencies from 3 repositories (#16685)
* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191030.2

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview3.19530.2
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview3.19530.2
- dotnet-ef - 3.1.0-preview3.19530.2
- Microsoft.EntityFrameworkCore - 3.1.0-preview3.19530.2
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview3.19530.2
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview3.19530.2
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview3.19530.2

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191030.3

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview3.19530.3
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview3.19530.3
- dotnet-ef - 3.1.0-preview3.19530.3
- Microsoft.EntityFrameworkCore - 3.1.0-preview3.19530.3
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview3.19530.3
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview3.19530.3
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview3.19530.3

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20191030.4

- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.1.0-preview3.19530.4
- Microsoft.AspNetCore.Razor.Language - 3.1.0-preview3.19530.4
- Microsoft.CodeAnalysis.Razor - 3.1.0-preview3.19530.4
- Microsoft.NET.Sdk.Razor - 3.1.0-preview3.19530.4

* Dependency coherency updates

- Microsoft.AspNetCore.Analyzer.Testing - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.ActivatorUtilities.Sources - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Caching.Abstractions - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Caching.Memory - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Caching.SqlServer - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Caching.StackExchangeRedis - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.CommandLineUtils.Sources - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.Abstractions - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.AzureKeyVault - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.Binder - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.CommandLine - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.EnvironmentVariables - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.FileExtensions - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.Ini - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.Json - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.KeyPerFile - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.UserSecrets - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.Xml - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.DependencyInjection.Abstractions - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.DependencyInjection - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.DiagnosticAdapter - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Diagnostics.HealthChecks - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.FileProviders.Abstractions - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.FileProviders.Composite - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.FileProviders.Embedded - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.FileProviders.Physical - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.FileSystemGlobbing - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Hosting.Abstractions - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Hosting - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.HostFactoryResolver.Sources - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Http - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Localization.Abstractions - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Localization - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.Abstractions - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.AzureAppServices - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.Configuration - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.Console - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.Debug - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.EventSource - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.EventLog - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.TraceSource - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.Testing - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.ObjectPool - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Options.ConfigurationExtensions - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Options.DataAnnotations - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Options - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.ParameterDefaultValue.Sources - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Primitives - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.TypeNameHelper.Sources - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.ValueStopwatch.Sources - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.WebEncoders - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Internal.Extensions.Refs - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.JSInterop - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Mono.WebAssembly.Interop - 3.1.0-preview2.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Internal.AspNetCore.Analyzers - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.AspNetCore.Testing - 3.1.0-preview3.19530.4 (parent: Microsoft.EntityFrameworkCore)

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

- Microsoft.AspNetCore.Blazor.Mono - 3.1.0-preview3.19531.1

* React to Mono WebAssembly changes for 3.1 preview 3
2019-10-31 13:47:48 +00:00
Steve Sanderson 0faf339143
Fix mouse events occurring on children of a disabled form field (#16671)
* Add E2E tests, some of which fail to represent the issue

* Implement handling for disableable mouse events, making the new E2E tests pass
2019-10-31 09:29:15 +00:00
Steve Sanderson 2d4b110b94 Correctly handle AddMultipleAttributes terminated by OpenRegion. Fixes #16570 2019-10-30 17:58:19 +00:00
Javier Calvarro Nelson ebd87a8f20
[Blazor][Fixes #15413] Notify client of errors during initialization (#16636) 2019-10-30 10:04:30 +01:00
Javier Calvarro Nelson 8197e99c25
[Blazor] Move webassembly only functions to Boot.WebAssembly.ts (#13249) 2019-10-29 12:06:04 +01:00
Javier Calvarro Nelson c94b2dd061
[Blazor][Fixes #15399]The Blazor descriptor can contain two consecutive dashes (#15412)
* We Base64 encode the descriptor instead of Base64Url encode it as data protection does with its string overload.
* It uses "+/" instead of "-_", both of which are safe inside HTML
  comments.
* The descriptors are not sent in any url, nor are present inside headers
  or similar, so Base64 encoding them is fine.
2019-10-28 10:59:43 +01:00
Javier Calvarro Nelson bf846cb845
[Blazor][Fixes #14959] NavLink match should be case-insensitive (#15401) 2019-10-25 17:46:03 +02:00
Javier Calvarro Nelson 4b3054265e
[Blazor] Reliability improvements for the E2E tests (#15320) 2019-10-24 18:59:07 +02:00
dotnet-maestro[bot] c82a95e009
[release/3.1] Update dependencies from 3 repositories (#15218)
* Update dependencies from https://github.com/dotnet/arcade build 20191017.3

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19517.3
- Microsoft.DotNet.GenAPI - 1.0.0-beta.19517.3
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19517.3

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.2

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.2
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.2
- dotnet-ef - 3.1.0-preview2.19521.2
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.2
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.2
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.2
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.2

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.4

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.4
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.4
- dotnet-ef - 3.1.0-preview2.19521.4
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.4
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.4
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.4
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.4

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.5

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.5
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.5
- dotnet-ef - 3.1.0-preview2.19521.5
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.5
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.5
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.5
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.5

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.7

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.7
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.7
- dotnet-ef - 3.1.0-preview2.19521.7
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.7
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.7
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.7
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.7

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.8

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.8
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.8
- dotnet-ef - 3.1.0-preview2.19521.8
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.8
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.8
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.8
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.8

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.9

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.9
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.9
- dotnet-ef - 3.1.0-preview2.19521.9
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.9
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.9
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.9
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.9

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.11

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.11
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.11
- dotnet-ef - 3.1.0-preview2.19521.11
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.11
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.11
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.11
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.11

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.12

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.12
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.12
- dotnet-ef - 3.1.0-preview2.19521.12
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.12
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.12
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.12
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.12

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.13

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.13
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.13
- dotnet-ef - 3.1.0-preview2.19521.13
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.13
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.13
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.13
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.13

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191022.1

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19522.1
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19522.1
- dotnet-ef - 3.1.0-preview2.19522.1
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19522.1
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19522.1
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19522.1
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19522.1

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191022.3

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19522.3
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19522.3
- dotnet-ef - 3.1.0-preview2.19522.3
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19522.3
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19522.3
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19522.3
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19522.3

* Remove duplicate icon url

* Remove more duplicate icon elements

* Remove more package icons

* Remove packageIcon

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

- Microsoft.AspNetCore.Blazor.Mono - 3.1.0-preview2.19523.1

* Undo bad deletion of eng/common file
2019-10-24 00:07:47 +00:00
Pranav K 9f9fbd0290
Fix some issues with Ignitor (#15276)
* Avoid null ref when FormatException is not set
* Handle errors when the client is canceled but an operation is in progress
2019-10-23 15:40:27 -07:00
Brennan 3d93e095db
Add support for hub specific IHubProtocols that don't affect other hubs (#15177) 2019-10-22 12:35:12 -07:00
Javier Calvarro Nelson 08608af68a
[Blazor] Fixes reliability issues in the blazor reliability tests (#15223)
Some tests get stuck when run on the CI likely due to spikes on the CI machine load. This fix doubles the startup timeout of the reliability tests to account for that.
2019-10-22 12:04:07 +02:00
Javier Calvarro Nelson 394445f0b4
[Blazor] Improve the reliability of 'JSInteropThrowsInUserCode' (#15219)
* Moves the Dispose logic into `DisposeAsync` instead
  of `IAsyncLifetime.DisposeAsync`.
* Adds a `try{...}catch{...}` around output.WriteLine to prevent
  situations where writing a log into the ITestOutput outside of the
  context of the test causes an exception that makes the test fail.
2019-10-21 19:32:42 +02:00
Daniel Roth a1fea20157 Update Blazor survey link for 3.1.0-preview2 (#15173) 2019-10-18 21:31:01 -07:00
Pranav K 3d3d5f699e
Add MS Edge support for debugging (#15176)
* Add MS Edge support for debugging

Addresses #10163
2019-10-18 18:59:41 -07:00
N. Taylor Mullen 5f3037df3f Add support for `EnableStopPropagation` and `EnablePreventDefault`.
- For our current world Blazor both of these properties are always `true`. However, for other non-web Blazor scenarios the `EventHandler` attributes at that layer will turn off these features because they're specific to web.

#14517
2019-10-18 14:45:43 -07:00
Javier Calvarro Nelson 19718f6011 [Blazor][Fixes #15155] Clarifies the message to turn on detailed erro… (#15156)
Fixes https://github.com/aspnet/AspNetCore/issues/15155
2019-10-18 13:03:52 -07:00
Pranav K c298c94fe1
Validation fixes for Blazor (#14972)
* Validation fixes for Blazor

* Ensure validation result that are not associated with a member are recorded. Fixes https://github.com/aspnet/AspNetCore/issues/10643
* Add support for showing model-specific errors to ValidationSummary
* Add support for nested validation and a more suitable CompareAttribute. Fixes https://github.com/aspnet/AspNetCore/issues/10526
2019-10-18 11:26:17 -07:00
Stephen Halter a4af6185ea
Add "allowReconnect" to SignalR CloseMessages (#14908) 2019-10-17 13:31:25 -07:00
Steve Sanderson 1b2c44313b In Blazor Server template, show login UI on small screens too. Fixes #13003 2019-10-17 06:10:18 +01:00
Adrian Wright e8c9952a2b Add .sidebar to .nav-item so to just target the nav in the template and not any other .nav-item's in the html 2019-10-17 03:36:08 +01:00
Javier Calvarro Nelson 1046cc2daa
[Blazor] Fix sample and turn debug logs and detailed errors client and server-side on the sample (#15052) 2019-10-16 22:12:25 +02:00
Steve Sanderson d3f1f5a6ea Make InputBase respond to validation state notifications (#14818)
* InputBase subscribes to OnValidationStateChanged. Fixes #11914

* E2E test
2019-10-16 11:35:34 -07:00
William Godbe 2c6d7a0cb8
Merge pull request #14602 from dotnet-maestro-bot/merge/release/3.0-to-release/3.1
[automated] Merge branch 'release/3.0' => 'release/3.1'
2019-10-16 10:27:06 -07:00
Javier Calvarro Nelson efc2f024f3
[Blazor][Fixes #14959] Update navlink to perform case-insensitive matches (#14991)
Otherwise the link doesn't get highlighted even though the route matches (routing is case insensitive).
2019-10-16 19:04:19 +02:00
Pranav K 30b31d7086
Account for Layout ordering in Blazor (#15001)
The server requires that clients send descriptors in sequence. Since MVC executes
Layouts in an inside-out manner, modify the client to explicitly order descriptors

Fixes https://github.com/aspnet/AspNetCore/issues/14474
2019-10-15 13:17:58 -07:00
wtgodbe 8deeed2fa8 Merge branches 2019-10-14 13:21:58 -07:00
Pranav K d299ae2491
Introduce ComponentTagHelper (#14592)
* Introduce ComponentTagHelper
Fixes https://github.com/aspnet/AspNetCore/issues/13726
2019-10-11 15:59:52 -07:00
Pranav K 79a1769e47
fixup 2019-10-11 13:46:45 -07:00
Pranav K d1faff4126
Fixup 2019-10-11 13:32:47 -07:00
Javier Calvarro Nelson 80d019d726
Introduce ComponentTagHelper
Fixes https://github.com/aspnet/AspNetCore/issues/13726
2019-10-11 13:32:46 -07:00
Pranav K 8c39137944 Port Throw when UseAuthorization is incorrectly configured (#14893)
* Port Throw when UseAuthorization is incorrectly configured

* fixup
2019-10-10 14:14:43 -07:00
Adrian Wright 0cf058711f Rename class "error-ui" to "blazor-error-ui" 2019-10-10 19:57:23 +01:00
Artak 1141654673
Fix the TargetFramework for Blazor WASM server app (#14865) 2019-10-09 22:22:24 -07:00
Ryan Brandenburg a68c961a58
Dev exception notifications (#14636)
Blazor dev exception notification
2019-10-09 16:37:57 -07:00
John Luo 354d859d50
Manually add TypeForwardedTo in ref assemblies (#14538)
* Manually add TypeForwardedTo in ref assemblies

* Pin ref assembly version to Major.Minor.0.0

* Disable MSB3243 warning

* Pin pinning implementation assembly version

* Use nuget.exe v5.3.0 which support icon metadata

* Fixup nuspec packing
2019-10-07 21:00:34 -07:00
Ryan Brandenburg c3ccf5ba7f
InputNumber Long (#14741)
InputNumber Long
2019-10-07 16:12:48 -07:00