Commit Graph

44832 Commits

Author SHA1 Message Date
dotnet-bot 9a67dfeef9 Merge in 'release/5.0' changes 2021-01-13 06:45:02 +00:00
Javier Calvarro Nelson 94804f3100
[SPA] Updates outdated npm dependencies (#29234)
## Description

Updates outdated dependencies for the Angular, React and React redux templates.

## Customer Impact

Customers creating new projects get obsolete versions of some javascript dependencies and need to update them manually.

## Regression?
- [ ] Yes
- [X] No

[If yes, specify the version the behavior has regressed from]

## Risk
- [ ] High
- [ ] Medium
- [X] Low

The changes only update dependencies and have been tested manually.

## Verification
- [X] Manual (required)
- [ ] Automated

## Packaging changes reviewed?
- [ ] Yes
- [ ] No
- [X] N/A
2021-01-12 22:43:10 -08:00
Matt Mitchell 2670c128d5 Fixup shas/uris for runtime 5.0.1 bits 2020-12-13 10:03:33 -08:00
DotNet Bot 8937f4c08f [internal/release/5.0] Update dependencies from dnceng/internal/dotnet-efcore 2020-12-12 09:20:58 +00:00
DotNet Bot 6a87a2d862 [internal/release/5.0] Update dependencies from dnceng/internal/dotnet-runtime 2020-12-12 07:06:32 +00:00
DotNet Bot 4cf2feb9dd [internal/release/5.0] Update dependencies from dnceng/internal/dotnet-runtime 2020-12-12 01:24:14 +00:00
DotNet Bot 489d2cc201 [internal/release/5.0] Update dependencies from dnceng/internal/dotnet-runtime 2020-12-12 00:02:20 +00:00
dotnet-bot 236ee6408e Merge in 'release/5.0' changes 2020-12-11 20:50:29 +00:00
James Newton-King bbc2e9f63a
Update gRPC packages to 2.34.0 to fix MacOS tooling issue (#28549) 2020-12-11 12:47:45 -08:00
DotNet Bot 75759a8109 [internal/release/5.0] Update dependencies from dnceng/internal/dotnet-efcore 2020-12-11 20:33:27 +00:00
DotNet Bot 51f7b665e6 [internal/release/5.0] Update dependencies from dnceng/internal/dotnet-efcore 2020-12-11 19:04:14 +00:00
dotnet-bot 03ac1f2c9a Merge in 'release/5.0' changes 2020-12-11 17:16:50 +00:00
dotnet-maestro[bot] a14235b80f
Update dependencies from https://github.com/dotnet/arcade build 20201130.4 (#28598)
[release/5.0] Update dependencies from dotnet/arcade
2020-12-11 17:14:11 +00:00
DotNet Bot 6b3724c21a [internal/release/5.0] Update dependencies from dnceng/internal/dotnet-runtime 2020-12-11 03:17:08 +00:00
DotNet Bot 7933df4827 [internal/release/5.0] Update dependencies from dnceng/internal/dotnet-runtime 2020-12-10 22:52:20 +00:00
dotnet-bot 94bda420a8 Merge in 'release/5.0' changes 2020-12-10 21:52:11 +00:00
Javier Calvarro Nelson b7abe1ed90
[Blazor] Fix publish with different combinations of SWA base paths (#28539)
Description
#28017

In 5.0.1 we fixed a publish scenario where Blazor webassembly wasn't respecting the StaticWebAssetBasePath defined for the project. Unfortunately the logic for handling the path composition was not robust enough and while it fixed the publish output layout, it introduced an integration issue later on at runtime.

The current fix makes the handling of the path more tolerant to initial and final slashes and includes a new end to end test that validates this scenario.

Customer Impact
Customers can't host blazor applications outside the root path (/)

Regression?
Yes. Worked in 3.2

Risk
Low.

We've included additional tests and E2E automation to verify this case.

Validation
 Automated
 Manual
2020-12-10 13:49:49 -08:00
dotnet-bot d873bafc56 Merge in 'release/5.0' changes 2020-12-10 20:05:08 +00:00
Matt Mitchell 5b92756c41 Merged PR 11687: Set publishing to temporarily use internal/release-publishing branch
Set publishing to temporarily use internal/release-publishing branch
2020-12-10 20:04:49 +00:00
William Godbe a8646e3022
Fix .msi names (#28572) 2020-12-10 12:01:51 -08:00
dotnet-bot c26780f2e2 Merge in 'release/5.0' changes 2020-12-10 18:32:59 +00:00
Safia Abdalla f45bf46312
Add error handling for token acquisition in getUser and fix state retrieval (#28498)
* Add error handling for token acquisition in getUser

* Clean up fetching state key from URL
2020-12-10 10:30:23 -08:00
dotnet-bot 6fd0174e84 Merge in 'release/5.0' changes 2020-12-10 17:25:50 +00:00
Steve Sanderson 1d2877ed33
Restore Razor v3 whitespace behavior when langversion < 5. Fixes #28085 (#28191)
* Add legacy 3.1 fork of the whitespace tests, with baselines based on 5.0 behavior

* Remove non-applicable Legacy_3_1_WhiteSpace_WithPreserveWhitespace test

* Set the legacy tests to run with RazorLanguageVersion.Version_3_0

* Add legacy fork of the whitespace pass

* Consolidate both versions of whitespace pass and show it doesn't affect the baselines

* Revert BOM change

* Fix test
2020-12-10 09:23:28 -08:00
Brennan Conroy 8e57b5e3b6 Merged PR 11157: Run callbacks outside of locks 2020-12-10 00:19:53 +00:00
Sourabh Shirhatti e47cbf6de6
[release/5.0] DelegationRule.Dispose() unsets delegation property on the queue (#28514)
* Unset delegation propery from source queue. This removes the process from the target URL group and allows the delegation rule to be added back later on in the processes lifetime

* Add test

* Add disposing pattern

Co-authored-by: Nolan Glore <nglore@microsoft.com>
2020-12-09 13:33:10 -08:00
John Luo 8a3c8653cd
Remove redundant site extension fix (#27855) 2020-12-09 13:11:31 -08:00
Pranav K dbba347f20
Provide a better error message if a blazorwasm app references ASP.NET Core (#28493)
Fixes https://github.com/dotnet/aspnetcore/issues/28478
2020-12-09 13:06:05 -08:00
Sourabh Shirhatti 050c257590
[release/5.0] Fix null ref in UrlGroup.Dispose due to logger not set (#28494)
* Fix null ref in UrlGroup.Dispose due to logger not set

* PR Feedback: make _logger readonly

Co-authored-by: Nolan Glore <nglore@microsoft.com>
2020-12-09 13:00:16 -08:00
Pranav K 894f4cabae
Add JWT and OpendId only if they are needed (#28495)
Remove MicrosoftAspNetCoreAuthenticationJwtBearerPackageVersion and MicrosoftAspNetCoreAuthenticationOpenIdConnectPackageVersion if there are not need eg. user wants only OpenApi.

Co-authored-by: Andrzej Król <andkrul@gmail.com>
2020-12-09 13:00:05 -08:00
Sourabh Shirhatti 9654539fe7
[release/5.0] Don't call HttpCloseUrlGroup if you didn't create it (#28511)
* Add created bool

* Be explicit in setting the flag
2020-12-09 12:59:53 -08:00
Pranav K 78d44383c8
Allow RazorTagHelper task to be invoked by MSBuild targets that do not specify ToolExe (#28416)
The RazorTagHelper task in the SDK is invoked by targets outside the SDK.
Consequently, any new requirements on the tasks need to be compatible with these versions.

In 5.0, we changed the task to expect the path to be passed in by the ToolExe property. This changes allows
using dotnet.exe from the ambient PATH to be used instead (the previous behavior)
2020-12-08 14:17:29 -08:00
William Godbe a4f30aeec3
Make sure SharedFx & TargetingPack msi names match (#28298)
* Make sure SharedFx & TargetingPack msi names match

* Insert packageVersion into OutputName when available

* Move props around again
2020-12-08 14:14:21 -08:00
William Godbe f17c23bf98
Increase height for longer strings (#28332)
* Increase height for longer strings

* Update thm.xml

* Move fix to Hosting Bundle

* Fixup

* Fixup

* fixup

* Temporarily upload installers

* Fix height
2020-12-08 14:14:10 -08:00
William Godbe 637ca31d20
[release/5.0] Upload ProductVersion.txt to blob feed (#28482)
* Upload ProductVersion.txt to blob feed

* Only upload file during Winx64/x86 build

* Deduplicate prop name
2020-12-08 14:13:54 -08:00
William Godbe 462cb8955a
Update branding to 5.0.2 (#28515) 2020-12-08 14:13:30 -08:00
Javier Calvarro Nelson fc93e595ce
[Blazor] Update template to pass in attribute as boolean (#28285)
Description
We introduced a public property as part of #27907 to enable users to opt-in. Turns out that this caused issues since we didn't update the target pack.

As a result, the Razor compiler treats this new property as a regular HTML attribute (of type string) instead of as a boolean.

In turn this causes the template to error at runtime when the application starts.

Customer Impact
Customers using 5.0.1 won't be able to create and run new blazor apps out of the box. They can fix the template code by preceding the true value in the attribute with @ to force the compiler to interpret it as C#. (Which is the same fix we are applying).

Regression?
Yes, 5.0.0. Users were able to create new blazor templates without this issue.

Risk
Low. We've manually validated the fix against a new project from a 5.0.1 template.
2020-12-01 14:40:10 -08:00
dotnet-maestro[bot] f255fad942
Update dependencies from https://github.com/dotnet/efcore build 20201125.9 (#28260)
[release/5.0] Update dependencies from dotnet/efcore
2020-12-01 00:09:29 +00:00
dotnet-maestro[bot] d0f09018c0
[release/5.0] Update dependencies from dotnet/efcore dotnet/runtime (#28087)
[release/5.0] Update dependencies from dotnet/efcore dotnet/runtime


 - Merge branch 'release/5.0' into darc-release/5.0-d4478e43-6d04-47a1-8a7c-c6c2dcd90d64

 - Tweak tests

 - Remove Extensions.Internal.Transport from Runtime

- Microsoft.AspNetCore.App.Runtime project does not expect compilation-only references

 - !fixup! Rearrange a `Condition`
- slight change to 49cc13cb5ac6 workaround

 - Do not compile against assemblies with newer assembly versions
- avoid problems with e.g. System.Extensions.DependencyInjection in 5.0.1

 - Revert "Remove package version pinning for ref/ assemblies in servicing (#25851)"
- dotnet/runtime assembly versions are unexpectedly changing in servicing

This reverts commit bfc1ec6792.

 - Update `SharedFxTests` to handle dotnet/runtime version changes
- assemblies with non-0.0 versions end up in Microsoft.AspNetCore.App
- future-proofs these tests because more dotnet/runtime versions may change

 - !fixup! Revert of bfc1ec6792 messed up `RepoTasks`
- need the RTM-versioned packages on all platforms
  - we only target `net472` on Windows
2020-11-30 03:46:55 +00:00
Pranav K 5c1f6ffc8c
Update compiler version to 3.8.0 (#28125)
Razor requires referencing two different versions of Roslyn

Razor compiler (rzc) that ships as part of the SDK. rzc ships copies of compiler binaries (Microsoft.CodeAnalysis.CSharp and Microsoft.CodeAnalysis.Common).
Razor runtime compilation is shipped as a NuGet package and needs to reference a version of Roslyn that ships as a NuGet package.
Roslyn doesn't follow the runtime ship schedule so to reliably the 2nd item, ASP.NET Core manually updates this package version. As part of 5.0.1, it was discovered that there's two different versions of these binaries in the SDK (a 3.8.0 version carried by the compiler and a 3.7.0 version carried by Razor). This is a bit vexxing, more so in source build which only builds the newer version.

Fixes #28096

Description
Update the Roslyn version referenced by Razor to 3.8.0

Customer impact
Razor compilation uses a newer version of the compiler consistent with the rest of the SDK.
Users updating to the 5.0.1 version of runtime compilation package will now use a newer version of the compiler. While it's slightly unusual to update a reference by a minor version as part of a patch release, we do not see users taking a hard dependency on the compiler version to be affected by this.
Regression
No

Risk
Low.
2020-11-24 19:38:35 -08:00
Jan Vorlicek 045882af9d
[release/5.0] Enable MUSL ARM support (#27942)
This change adds support for building MUSL ARM packages of ASP.NET Core.
2020-11-23 11:49:10 -08:00
Brennan 4731c87476
[Java] Don't call onClose when WebSocket connection is not open (#28004) 2020-11-23 11:40:58 -08:00
Matt Mitchell 4b46b26896
[release/5.0] Fixup 5.0.0 Package shas to be 5.0 RTM (#27915)
* Fixup 5.0.0 Package shas to be 5.0 RTM

* Fixup

Co-authored-by: William Godbe <wigodbe@microsoft.com>
2020-11-23 11:29:52 -08:00
Brennan af907cdea5
Fix #if for full framework SignalR client (#27999) 2020-11-23 10:30:27 -08:00
dotnet-maestro[bot] 20e2c6fcae
Update dependencies from https://github.com/dotnet/efcore build 20201121.1 (#28046)
[release/5.0] Update dependencies from dotnet/efcore
2020-11-21 10:50:52 +00:00
Pranav K d9dd46ec8e
Use StaticWebAssetBasePath if specified to calculate blazorwasm publish paths (#27896)
In 3.2, Blazor WebAssembly had a feature which allowed prefix the relative path within the PublishDir
by configuring a StaticWebAssetBasePath property in the project file. As part of migrating to 5.0, this
feature was (accidentally) not brought forward which is remedied by this commit.

* Use StaticWebAssetBasePath to calculate asset base paths
* Add publish tests to verify hosted and standalone scenarios

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

Co-authored-by: Artak <34246760+mkArtakMSFT@users.noreply.github.com>
2020-11-20 23:46:31 -08:00
Pranav K 26c2891c60
Default the timezone to UTC if it is not resolved. (#27505)
Browsers may not correctly resolve the machine's timezone in some cases. In the current implementation,
this results in an exception being thrown by .NET Core (WASM). This code defaults the timezone to UTC
when the timezone cannot be resolved.

Fixes https://github.com/dotnet/runtime/issues/44154
Port of https://github.com/dotnet/aspnetcore/pull/27444

Co-authored-by: Artak <34246760+mkArtakMSFT@users.noreply.github.com>
2020-11-20 23:45:49 -08:00
dotnet-maestro[bot] cdd67cb443
Update dependencies from https://github.com/dotnet/runtime build 20201120.12 (#28043)
[release/5.0] Update dependencies from dotnet/runtime
2020-11-21 05:28:23 +00:00
Hao Kung a2c983c1fb
Ship the Identity.Specification.Tests package again (#28024)
Description
This package is a collection of tests which we have shipped which allows customers who have implemented their own identity stores to verify that their stores behave as expected. Our quarantine process introduced some internal dependencies to this package during 5.0, which resulted in us no longer shipping this package.

Customer impact
Customers were relying on using this library to ensure that their implementations worked against our identity manager implementations.

Regression
Yes. Regression from 3.2

Risk
Low. We currently run our CI tests against this package, this just allows customers to once again be able to run our tests on their CI builds.
2020-11-20 15:02:20 -08:00
Javier Calvarro Nelson 6bb4a3f370
[Blazor] Fixes issues with route precedence (#27907)
Description
In 5.0 we introduced two features on Blazor routing that enable users to write routing templates that match paths with variable length segments. These two features are optional parameters {parameter?} and catch all parameters {*catchall}.

Our routing system ordered the routes based on precedence and the (now false) assumption that route templates would only match paths with an equal number of segments.

The implementation that we have worked for naïve scenarios but breaks on more real world scenarios. The change here includes fixes to the way we order the routes in the route table to match the expectations as well as fixes on the route matching algorithm to ensure we match routes with variable number of segments correctly.

Customer Impact
This was reported by customers on #27250

The impact is that a route with {*catchall} will prevent more specific routes like /page/{parameter} from being accessible.

There are no workarounds since precedence is a fundamental behavior of the routing system.

Regression?
No, these Blazor features were initially added in 5.0.

Risk
Low. These two features were just introduced in 5.0 and their usage is not as prevalent as in asp.net core routing. That said, it's important to fix them as otherwise we run the risk of diverting in behavior from asp.net core routing and Blazor routing, which is not something we want to do.

We have functional tests covering the area and we've added a significant amount of unit tests to validate the changes.
2020-11-20 11:43:11 -08:00