Skip to content

Seeing No .NET SDKs were found. despite the SDK being present and runningΒ #51115

@ericstj

Description

@ericstj

Describe the bug

I'm seeing this on all my machines using .NET 10.0

Any command I run will emit No .NET SDKs were found. and then proceed to run the command.

dotnet build /?
No .NET SDKs were found.

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

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
Description:
  .NET Builder

Usage:
  dotnet build [<PROJECT | SOLUTION | FILE>...] [options]

Arguments:
  <PROJECT | SOLUTION | FILE>  The project or solution or C# (file-based program) file to operate on. If a file is not
                               specified, the command will search the current directory for a project or solution.

Options:
  --ucr, --use-current-runtime         Use current runtime as the target runtime. [default: False]
  -f, --framework <FRAMEWORK>          The target framework to build for. The target framework must also be specified
                                       in the project file.
  -c, --configuration <CONFIGURATION>  The configuration to use for building the project. The default for most projects
                                       is 'Debug'.
  -r, --runtime <RUNTIME_IDENTIFIER>   The target runtime to build for.
  --version-suffix <VERSION_SUFFIX>    Set the value of the $(VersionSuffix) property to use when building the project.
  --no-restore                         Do not restore the project before building. [default: False]
  --interactive                        Allows the command to stop and wait for user input or action (for example to
                                       complete authentication). [default: True]
  -v, -verbosity <LEVEL>               Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal],
                                       n[ormal], d[etailed], and diag[nostic].
  --debug                              [default: False]
  -o, --output <OUTPUT_DIR>            The output directory to place built artifacts in.
  --artifacts-path <ARTIFACTS_DIR>     The artifacts path. All output from the project, including build, publish, and
                                       pack output, will go in subfolders under the specified path.
  --no-incremental                     Do not use incremental building. [default: False]
  --no-dependencies                    Do not build project-to-project references and only build the specified project.
                                       [default: False]
  --nologo                             Do not display the startup banner or the copyright message. [default: False]
  --sc, --self-contained               Publish the .NET runtime with your application so the runtime doesn't need to be
                                       installed on the target machine.
                                       The default is 'false.' However, when targeting .NET 7 or lower, the default is
                                       'true' if a runtime identifier is specified. [default: False]
  --no-self-contained                  Publish your application as a framework dependent application. A compatible .NET
                                       runtime must be installed on the target machine to run your application.
                                       [default: False]
  -a, --arch <ARCH>                    The target architecture.
  --os <OS>                            The target operating system.
  --disable-build-servers              Force the command to ignore any persistent build servers. [default: False]
  -?, -h, --help                       Show command line help.

To Reproduce

Install .NET 10.0 SDK
Run any command.

Exceptions (if any)

None

Further technical details

dotnet --info
.NET SDK:
Version: 10.0.100-rc.2.25462.101
Commit: 26861c107e
Workload version: 10.0.100-manifests.663d2eb1
MSBuild version: 17.15.0-preview-25462-101+26861c107

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-rc.2.25462.101\

.NET workloads installed:
[wasm-tools-net9]
Installation Source: VS 18.0.11101.79, VS 18.0.10830.194
Manifest Version: 10.0.100-rc.2.25462.101/10.0.100-rc.2
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100-rc.2\microsoft.net.workload.mono.toolchain.net9\10.0.100-rc.2.25462.101\WorkloadManifest.json
Install Type: Msi

[wasm-tools]
Installation Source: VS 18.0.11101.79, VS 18.0.10830.194
Manifest Version: 10.0.100-rc.2.25462.101/10.0.100-rc.2
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100-rc.2\microsoft.net.workload.mono.toolchain.current\10.0.100-rc.2.25462.101\WorkloadManifest.json
Install Type: Msi

[wasm-tools-net6]
Installation Source: VS 18.0.11101.79, VS 18.0.10830.194
Manifest Version: 10.0.100-rc.2.25462.101/10.0.100-rc.2
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100-rc.2\microsoft.net.workload.mono.toolchain.net6\10.0.100-rc.2.25462.101\WorkloadManifest.json
Install Type: Msi

[wasm-tools-net7]
Installation Source: VS 18.0.11101.79, VS 18.0.10830.194
Manifest Version: 10.0.100-rc.2.25462.101/10.0.100-rc.2
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100-rc.2\microsoft.net.workload.mono.toolchain.net7\10.0.100-rc.2.25462.101\WorkloadManifest.json
Install Type: Msi

[wasm-tools-net8]
Installation Source: VS 18.0.11101.79, VS 18.0.10830.194
Manifest Version: 10.0.100-rc.2.25462.101/10.0.100-rc.2
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100-rc.2\microsoft.net.workload.mono.toolchain.net8\10.0.100-rc.2.25462.101\WorkloadManifest.json
Install Type: Msi

Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
Version: 10.0.0-rc.2.25462.101
Architecture: x64
Commit: 26861c107e

.NET SDKs installed:
9.0.303 [C:\Program Files\dotnet\sdk]
10.0.100-preview.6.25358.103 [C:\Program Files\dotnet\sdk]
10.0.100-rc.1.25451.107 [C:\Program Files\dotnet\sdk]
10.0.100-rc.2.25462.101 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.0-preview.6.25358.103 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.0-rc.1.25451.107 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.0-rc.2.25462.101 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.0-preview.6.25358.103 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.0-rc.1.25451.107 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.0-rc.2.25462.101 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.0-preview.6.25358.103 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.0-rc.1.25451.107 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.0-rc.2.25462.101 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
DOTNET_ROLL_FORWARD_TO_PRERELEASE [1]

global.json file:
C:\src\dotnet\machinelearning\global.json

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedRequest triage from a team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions