dotnet / dotnet/sdk

[NETSDKE2E][Linux] With .NET July Update SDK, publishing blazorwasm app failed with error MSB3073 after installing wasm-tools workload on Linux

Open
#49,508 7 comments 0 reactions 1 assignee Claimed by @baronfel View on GitHub
Area-Workloads untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

Build: .NET SDK 9.0.302 or 8.0.412

### To Reproduce

1. Install .NET SDK with deb installer on Debian 12 or Ubuntu 24.04
2. Install wasm-tools with below command
`sudo dotnet workload install wasm-tools --skip-manifest-update --configfile ~/.nuget/NuGet/NuGet.Config`
4. Create a blazorwasm app then publish
```
dotnet new blazorwasm -o myblazorwasm
cd myblazorwasm
dotnet publish
```
5. Observe

### Exceptions (if any)
Publishing blazorwasm app failed with error MSB3073
8.0

![Image](https://github.com/user-attachments/assets/fd66ee5a-30cc-4ca2-a98d-df2037ab92cc)

9.0
![Image](https://github.com/user-attachments/assets/85debcd7-1fb7-4a8f-adfd-fdddb719b678)

### Excepted Result
Publishing blazorwasm app works fine

### Note
1. This issue is only reproduced on Linux
2. This issue is not reproduced without wasm-tools workload installed
3. This issue is not reproduced on .NET 8.0.411
### Further technical details
- Include the output of `dotnet --info`
```
nicole@ubu2404:~/myblazorwasm$ dotnet --info
.NET SDK:
Version: 8.0.412
Commit: 94b6f178ea
Workload version: 8.0.400-manifests.0c346719
MSBuild version: 17.11.31+933b72e36

Runtime Environment:
OS Name: ubuntu
OS Version: 24.04
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/8.0.412/

.NET workloads installed:
Configured to use loose manifests when installing new manifests.

[wasm-tools]
Installation Source: SDK 8.0.400
Manifest Version: 8.0.18/8.0.100
Manifest Path: /usr/share/dotnet/sdk-manifests/8.0.100/microsoft.net.workload.mono.toolchain.current/8.0.18/WorkloadManifest.json
Install Type: FileBased

Version: 8.0.18
Architecture: x64
Commit: ef853a7105

.NET SDKs installed:
8.0.412 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.18 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.18 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.