- 
                Notifications
    You must be signed in to change notification settings 
- Fork 10.5k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Description:
When retargeting apps with NET10.0, it will throw: “The following scoped CSS bundles do not have matching endpoints”.
Application Name: Hawaso, Blazor-Blogs, BootstrapBlazor, OpenMU, WorldExplorer
OS: Windows 10 21H2
CPU: X64
.NET Build Number: dotnet-sdk-10.0.100-preview.1.25103.13
App & Source Location checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2379240
Github Link:
https://github.com/VisualAcademy/Hawaso
https://github.com/ADefWebserver/Blazor-Blogs
https://github.com/MUnique/OpenMU
https://github.com/dotnetcore/BootstrapBlazor
https://github.com/VladislavAntonyuk/WorldExplorer
Expected Behavior
Build successfully.
Steps To Reproduce
Minimal Repro steps (Demo attached:BlazorTest.zip):
- Create a default 9.0 blazor web project.
- Right click on Solution>Properties, Retarget framework selection 10.0.
- Reference the NuGet package 'Blazored. Toast'(NuGet Gallery | Blazored.Toast 4.2.1).
- Build Solution.
Exceptions (if any)
Build Failed with below errors:
C:\Program Files\dotnet\sdk\10.0.100-preview.1.25103.13\Sdks\Microsoft.NET.Sdk.StaticWebAssets\targets\Microsoft.NET.Sdk.StaticWebAssets.ScopedCss.targets(415,3): error: The following scoped css bundles do not have matching endpoints: Blazored.Toast.bundle.scp.css
.NET Version
10.0.100-preview.1.25103.13
Anything else?
Dotnet info:
.NET SDK:
 Version:           10.0.100-preview.1.25103.13
 Commit:            9035d02b05
 Workload version:  10.0.100-manifests.bf5105ba
 MSBuild version:   17.14.0-preview-25073-02+291a81087
Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.26100
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\10.0.100-preview.1.25103.13\
Host:
  Version:      10.0.0-preview.1.25080.5
  Architecture: x64
  Commit:       b98cabca12
.NET SDKs installed:
 10.0.100-preview.1.25103.13 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
 Microsoft.AspNetCore.App 10.0.0-preview.1.25103.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
 Microsoft.NETCore.App 10.0.0-preview.1.25080.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 10.0.0-preview.1.25080.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
@dotnet-actwx-bot @dotnet/compat