Skip to content

Commit 0d8d4e7

Browse files
author
msftbot[bot]
authored
Merge pull request #23282 from dotnet-maestro-bot/merge/release/5.0-preview7-to-master
[automated] Merge branch 'release/5.0-preview7' => 'master'
2 parents 7aa91ff + 30472b1 commit 0d8d4e7

File tree

162 files changed

+2913
-6703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+2913
-6703
lines changed

eng/ProjectReferences.props

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@
6464
<ProjectReferenceProvider Include="Microsoft.AspNetCore.SignalR.StackExchangeRedis" ProjectPath="$(RepoRoot)src\SignalR\server\StackExchangeRedis\src\Microsoft.AspNetCore.SignalR.StackExchangeRedis.csproj" />
6565
<ProjectReferenceProvider Include="Ignitor" ProjectPath="$(RepoRoot)src\Components\Ignitor\src\Ignitor.csproj" />
6666
<ProjectReferenceProvider Include="Microsoft.Authentication.WebAssembly.Msal" ProjectPath="$(RepoRoot)src\Components\WebAssembly\Authentication.Msal\src\Microsoft.Authentication.WebAssembly.Msal.csproj" />
67-
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Components.WebAssembly.Build" ProjectPath="$(RepoRoot)src\Components\WebAssembly\Build\src\Microsoft.AspNetCore.Components.WebAssembly.Build.csproj" />
68-
<ProjectReferenceProvider Include="blazor-brotli" ProjectPath="$(RepoRoot)src\Components\WebAssembly\Compression\src\Microsoft.AspNetCore.Components.WebAssembly.Build.BrotliCompression.csproj" />
6967
<ProjectReferenceProvider Include="Microsoft.JSInterop.WebAssembly" ProjectPath="$(RepoRoot)src\Components\WebAssembly\JSInterop\src\Microsoft.JSInterop.WebAssembly.csproj" />
7068
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Components.WebAssembly.Server" ProjectPath="$(RepoRoot)src\Components\WebAssembly\Server\src\Microsoft.AspNetCore.Components.WebAssembly.Server.csproj" />
7169
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" ProjectPath="$(RepoRoot)src\Components\WebAssembly\WebAssembly.Authentication\src\Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj" />

src/Components/Components.sln

Lines changed: 48 additions & 78 deletions
Large diffs are not rendered by default.

src/Components/ComponentsNoDeps.slnf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
"Server\\src\\Microsoft.AspNetCore.Components.Server.csproj",
1818
"Server\\test\\Microsoft.AspNetCore.Components.Server.Tests.csproj",
1919
"WebAssembly\\Authentication.Msal\\src\\Microsoft.Authentication.WebAssembly.Msal.csproj",
20-
"WebAssembly\\Build\\src\\Microsoft.AspNetCore.Components.WebAssembly.Build.csproj",
21-
"WebAssembly\\Build\\test\\Microsoft.AspNetCore.Components.WebAssembly.Build.Tests.csproj",
22-
"WebAssembly\\Compression\\src\\Microsoft.AspNetCore.Components.WebAssembly.Build.BrotliCompression.csproj",
2320
"WebAssembly\\DebugProxy\\src\\Microsoft.AspNetCore.Components.WebAssembly.DebugProxy.csproj",
2421
"WebAssembly\\DevServer\\src\\Microsoft.AspNetCore.Components.WebAssembly.DevServer.csproj",
2522
"WebAssembly\\JSInterop\\src\\Microsoft.JSInterop.WebAssembly.csproj",
@@ -32,8 +29,6 @@
3229
"WebAssembly\\WebAssembly\\test\\Microsoft.AspNetCore.Components.WebAssembly.Tests.csproj",
3330
"WebAssembly\\testassets\\HostedInAspNet.Client\\HostedInAspNet.Client.csproj",
3431
"WebAssembly\\testassets\\HostedInAspNet.Server\\HostedInAspNet.Server.csproj",
35-
"WebAssembly\\testassets\\MonoSanityClient\\MonoSanityClient.csproj",
36-
"WebAssembly\\testassets\\MonoSanity\\MonoSanity.csproj",
3732
"WebAssembly\\testassets\\StandaloneApp\\StandaloneApp.csproj",
3833
"Web\\src\\Microsoft.AspNetCore.Components.Web.csproj",
3934
"Web\\test\\Microsoft.AspNetCore.Components.Web.Tests.csproj",

src/Components/Directory.Build.targets

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
<Project>
2+
<PropertyGroup Condition="'$(UseBlazorWebAssembly)' == 'true'">
3+
<BlazorWebAssemblyJSPath>$(RepoRoot)src\Components\Web.JS\dist\$(Configuration)\blazor.webassembly.js</BlazorWebAssemblyJSPath>
4+
<BlazorWebAssemblyJSMapPath>$(BlazorWebAssemblyJSPath).map</BlazorWebAssemblyJSMapPath>
5+
6+
<_BlazorDevServerPath>$(RepoRoot)src/Components/WebAssembly/DevServer/src/bin/$(Configuration)/$(DefaultNetCoreTargetFramework)/blazor-devserver.dll</_BlazorDevServerPath>
7+
<RunCommand>dotnet</RunCommand>
8+
<RunArguments>exec &quot;$(_BlazorDevServerPath)&quot; serve --applicationpath &quot;$(TargetPath)&quot; $(AdditionalRunArguments)</RunArguments>
9+
</PropertyGroup>
10+
211
<ItemGroup>
312
<!-- Add a project dependency without reference output assemblies to enforce build order -->
413
<!-- Applying workaround for https://github.com/microsoft/msbuild/issues/2661 and https://github.com/dotnet/sdk/issues/952 -->
514
<ProjectReference
6-
Condition="'$(ReferenceBlazorBuildLocally)' == 'true' and '$(BuildNodeJS)' != 'false' and '$(BuildingInsideVisualStudio)' != 'true'"
15+
Condition="'$(UseBlazorWebAssembly)' == 'true' and '$(BuildNodeJS)' != 'false' and '$(BuildingInsideVisualStudio)' != 'true'"
716
Include="$(RepoRoot)src\Components\Web.JS\Microsoft.AspNetCore.Components.Web.JS.npmproj"
817
ReferenceOutputAssemblies="false"
918
SkipGetTargetFrameworkProperties="true"
1019
UndefineProperties="TargetFramework"
1120
Private="false" />
1221
</ItemGroup>
1322

14-
<Import Project="WebAssembly\Build\src\ReferenceFromSource.props" Condition="'$(ReferenceBlazorBuildLocally)' == 'true'" />
15-
1623
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)..\, Directory.Build.targets))\Directory.Build.targets" />
1724

1825
<ItemGroup Condition="'$(FixupWebAssemblyHttpHandlerReference)' == 'true'">

src/Components/Web.JS/dist/Release/blazor.webassembly.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function addScriptTagsToDocument(resourceLoader: WebAssemblyResourceLoader) {
142142
.filter(n => n.startsWith('dotnet.') && n.endsWith('.js'))[0];
143143
const dotnetJsContentHash = resourceLoader.bootConfig.resources.runtime[dotnetJsResourceName];
144144
const scriptElem = document.createElement('script');
145-
scriptElem.src = `_framework/wasm/${dotnetJsResourceName}`;
145+
scriptElem.src = `_framework/${dotnetJsResourceName}`;
146146
scriptElem.defer = true;
147147

148148
// For consistency with WebAssemblyResourceLoader, we only enforce SRI if caching is allowed
@@ -204,11 +204,11 @@ function createEmscriptenModuleInstance(resourceLoader: WebAssemblyResourceLoade
204204

205205
// Begin loading the .dll/.pdb/.wasm files, but don't block here. Let other loading processes run in parallel.
206206
const dotnetWasmResourceName = 'dotnet.wasm';
207-
const assembliesBeingLoaded = resourceLoader.loadResources(resources.assembly, filename => `_framework/_bin/${filename}`, 'assembly');
208-
const pdbsBeingLoaded = resourceLoader.loadResources(resources.pdb || {}, filename => `_framework/_bin/${filename}`, 'pdb');
207+
const assembliesBeingLoaded = resourceLoader.loadResources(resources.assembly, filename => `_framework/${filename}`, 'assembly');
208+
const pdbsBeingLoaded = resourceLoader.loadResources(resources.pdb || {}, filename => `_framework/${filename}`, 'pdb');
209209
const wasmBeingLoaded = resourceLoader.loadResource(
210210
/* name */ dotnetWasmResourceName,
211-
/* url */ `_framework/wasm/${dotnetWasmResourceName}`,
211+
/* url */ `_framework/${dotnetWasmResourceName}`,
212212
/* hash */ resourceLoader.bootConfig.resources.runtime[dotnetWasmResourceName],
213213
/* type */ 'dotnetwasm');
214214

@@ -217,7 +217,7 @@ function createEmscriptenModuleInstance(resourceLoader: WebAssemblyResourceLoade
217217
if (resourceLoader.bootConfig.resources.runtime.hasOwnProperty(dotnetTimeZoneResourceName)) {
218218
timeZoneResource = resourceLoader.loadResource(
219219
dotnetTimeZoneResourceName,
220-
`_framework/wasm/${dotnetTimeZoneResourceName}`,
220+
`_framework/${dotnetTimeZoneResourceName}`,
221221
resourceLoader.bootConfig.resources.runtime[dotnetTimeZoneResourceName],
222222
'timezonedata');
223223
}
@@ -267,7 +267,7 @@ function createEmscriptenModuleInstance(resourceLoader: WebAssemblyResourceLoade
267267
if (satelliteResources) {
268268
const resourcePromises = Promise.all(culturesToLoad
269269
.filter(culture => satelliteResources.hasOwnProperty(culture))
270-
.map(culture => resourceLoader.loadResources(satelliteResources[culture], fileName => `_framework/_bin/${fileName}`, 'assembly'))
270+
.map(culture => resourceLoader.loadResources(satelliteResources[culture], fileName => `_framework/${fileName}`, 'assembly'))
271271
.reduce((previous, next) => previous.concat(next), new Array<LoadingResource>())
272272
.map(async resource => (await resource.response).arrayBuffer()));
273273

src/Components/WebAssembly/Build/src/Microsoft.AspNetCore.Components.WebAssembly.Build.csproj

Lines changed: 0 additions & 112 deletions
This file was deleted.

src/Components/WebAssembly/Build/src/Microsoft.AspNetCore.Components.WebAssembly.Build.nuspec

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Components/WebAssembly/Build/src/ReferenceBlazorBuildFromSource.props

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/Components/WebAssembly/Build/src/ReferenceFromSource.props

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)