Skip to content

How to have multiple SDKs/Runtimes at the same time ? #24

@kedare

Description

@kedare

Hello.

I was trying to compile identity server ( https://github.com/DuendeSoftware/IdentityServer ) but it requires both SDK 5.0 and 3.1.0 to be available, I installed them both with asdf and set 5.0 as the global one but I am getting the following error

bash build.sh 
Tool 'signclient' (version '1.2.17') was restored. Available commands: SignClient
Tool 'dotnet-ef' (version '3.1.0') was restored. Available commands: dotnet-ef

Restore was successful.
~/Documents/Repositories/IdentityServer/src/Storage ~/Documents/Repositories/IdentityServer
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '3.1.0' was not found.
  - The following frameworks were found:
      5.0.0 at [/home/kedare/.asdf/installs/dotnet-core/5.0.100/shared/Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.0&arch=x64&rid=linuxmint.20-x6

A few info:

dotnet --list-sdks
5.0.100 [/home/kedare/.asdf/installs/dotnet-core/5.0.100/sdk]

dotnet --list-runtimes
Microsoft.AspNetCore.App 5.0.0 [/home/kedare/.asdf/installs/dotnet-core/5.0.100/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.0 [/home/kedare/.asdf/installs/dotnet-core/5.0.100/shared/Microsoft.NETCore.App]

asdf list dotnet-core
  3.1.404
  5.0.100

How can I fix that ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions