Skip to content

Wrong "workload not found" message #31835

Open
@rmarinho

Description

@rmarinho

Describe the bug

When trying to build a project without any workloads for .NET Multi-platform App UI (MAUI) , the build process fails with an error related to "maui-tizen" even though it is not required for the current project.

To Reproduce

  • Create a new project in .NET MAUI that does not require maui-tizen workload.
  • Attempt to build the project without maui workload installed
  • Observe that the build process fails with an error related to "maui-tizen" even though it is not necessary for the project.

repo: https://github.com/rmarinho/DotNetTestTizen

Exceptions (if any)

To build this project, the following workloads must be installed: maui-tizen
To install these workloads, run the following command: dotnet workload restore

binlog : test-2.binlog.zip

Expected Result:
The build process should throw a error saying maui workload needs to be installed.

Further technical details

  • running on macOS Monterey

 Version:   7.0.202
 Commit:    6c74320bc3

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  12.6
 OS Platform: Darwin
 RID:         osx.12-x64
 Base Path:   /Users/runner/hostedtoolcache/dotnet/sdk/7.0.202/

Host:
  Version:      7.0.4
  Architecture: x64
  Commit:       0a396acafe

.NET SDKs installed:
  7.0.202 [/Users/runner/hostedtoolcache/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.4 [/Users/runner/hostedtoolcache/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.4 [/Users/runner/hostedtoolcache/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [/Users/runner/hostedtoolcache/dotnet]

global.json file:
  /Users/runner/work/1/s/global.json

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions