Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple SDKs not supported on Dotnet SDK installed as Snap #34593

Open
shakeelansari63 opened this issue Aug 13, 2023 · 3 comments
Open

Multiple SDKs not supported on Dotnet SDK installed as Snap #34593

shakeelansari63 opened this issue Aug 13, 2023 · 3 comments
Assignees
Labels
Area-Install untriaged Request triage from a team member

Comments

@shakeelansari63
Copy link

Describe the bug

I have installed Dotnet SDK from Snap store via latest beta channel and it is installed correctly. But there is no way to install and older version of SDK inside same installation. This restrict me from developing on projects which need older SDKs.

So now I have Dotnet SDK 8 with Dotnet Runtime 8.
But I also have some projects which use SDK 7, SDK 6 and SDK 5.

There is no way to install all these SDKs alongside SDK 8 which is already installed.

Though Dotnet Support having multiple SDKs alongside, the Snap version does not have this feature.

To Reproduce

Install Dotnet from Snap Store -

sudo snap install dotnet-sdk --beta --classic

Check the SDKs from installed dotnet

dotnet --list-sdks

And it will give only SDK.

Exceptions (if any)

Further technical details

  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and its version
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Install untriaged Request triage from a team member labels Aug 13, 2023
@md-owes
Copy link

md-owes commented Aug 20, 2023

I do have a similar issue and it would be inconsistent if i had stable dotnet v7 installed via snap and preview version v8 installed via apt or manual.

@soumyaDghosh
Copy link

You can have parallel installs of snaps. Though, it's an experimental features, but atleast it worked for me.

 soumyaxubuntu  soumyas-GF63-Thin-11UC  ~  which dotnet
/snap/bin/dotnet

 soumyaxubuntu  soumyas-GF63-Thin-11UC  ~  dotnet --version
8.0.204

 soumyaxubuntu  soumyas-GF63-Thin-11UC  ~  dotnet-sdk_7.dotnet --version
7.0.408

https://snapcraft.io/blog/parallel-installs-test-and-run-multiple-instances-of-snaps

@shakeelansari63
Copy link
Author

Yes that is possible. But in a scenario, if my solution has multiple projects and some projects use a different SDK version than others. This will not work.

This may be a niche case, but I have seen this scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Install untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

4 participants