dotnet / vscode-dotnet-runtime

VSCode Extension for Installing .NET via VS Code
MIT License
128 stars 230 forks source link

Enable downloading other runtimes than the aspnet runtime #1763

Open baronfel opened 2 months ago

baronfel commented 2 months ago

Is your feature request related to a problem? Please describe.

Extensions that use us to download a runtime for them to run on currently get the 'base' dotnet runtime. Future tooling experiences may rely on the aspnetcore or windowsdesktop runtimes, however, and so we need to provide a way for those runtimes to be requested.

A clear and concise description of what you want to happen. Include any alternative solutions you've considered.

I want extension authors to be able to request runtimes other that the dotnetcore runtime.

Describe the solution you'd like

The underlying dotnet-install scripts allow specifying runtimes via the --runtime parameter, so it should be a matter of adding additional optional parameters to our 'install a local runtime' API to allow for requesting these other runtimes.

Additional context

As part of this, we will probably need to track which runtime(s) are requested by which extension(s), not just assuming that the runtime acquired is the dotnetcore runtime.