Skip to content

Could not find a suitable .NET 6 runtime version matching SDK version: 7.0.100 #2719

Open
@nojaf

Description

@nojaf

Description

I cannot my FAKE using dotnet 7 sdk.

Repro steps

global.json:

{
  "sdk": {
    "version": "7.0.100"
  }
}

install fake-cli 6.0.0-alpha003.
Create empty fsx file.
Run dotnet fake run build.fsx

Consider adding your dependencies via `#r` dependencies, for example add '#r "paket: nuget FSharp.Core //"'.
See https://fake.build/guide/fake-modules.html for details.
If you know what you are doing you can silence this warning by setting the environment variable 'FAKE_ALLOW_NO_DEPENDENCIES' to 'true'
Updating group Main in C:\Users\nojaf\Projects\fake-dotnet7-repro\.fake\build.fsx\paket.dependencies
Resolving dependency graph...
Updated packages:
  Group: Main
    - FSharp.Core: 7.0.0 (added)
Starting full restore process.
Starting task 'DotNet:version': running dotnet --version
7.0.100
Finished (Success) 'DotNet:version' in 00:00:00.1310713
Performance:
 - Cli parsing: 91 milliseconds
 - Packages: 639 milliseconds
   - Resolver: 498 milliseconds (1 runs)
      - Runtime: 28 milliseconds
      - Blocked (retrieving package details): 50 milliseconds (1 times)
      - Blocked (retrieving package versions): 419 milliseconds (1 times)
   - Disk IO: 14 milliseconds
   - Average Request Time: 144 milliseconds
   - Number of Requests: 2
   - Creating Runtime Graph: 1 millisecond
   - Retrieve Assembly List: 2 seconds
 - Script analyzing: 11 milliseconds
 - Runtime: 2 seconds
There was a problem while setting up the environment:
-> Could not find a suitable .NET 6 runtime version matching SDK version: 7.0.100

Expected behavior

It should not fail.

Actual behavior

I find it weird to see a complaint about finding no dotnet 6 runtime.
The check above did find the correct 7.0.100 version

Known workarounds

/

Related information

  • Operating system: Win 11
  • .NET 7
  • Version of FAKE (4.X, 5.X) 6.0.0-alpha003

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions