dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.66k stars 1.06k forks source link

Support a new launch profile type to launch the project in a container #40880

Open baronfel opened 4 months ago

baronfel commented 4 months ago

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

The CLI doesn't have a native ability to run a project inside a container, while Visual Studio and Visual Studio Code do via Docker tools plugins for those respective editors. We should expand this support to the CLI via a new launch profile launch type, so that the intent to use a container can be uniformly expressed. Then any tooling that wants to launch a project as a container natively could interpret this launch profile type and map that to whatever mechanism of action was correct for that environment.

Describe the solution you'd like

We should define a new launch type that directs the host to create a container for the project in question, then executes it. This launch profile should be able to control key aspects of the container execution, including:

References

cc @DamianEdwards @davidfowl @danegsta

marcpopMSFT commented 3 months ago

Team Triage: Marking for 9 for now but it'd be good to understand prioritization here. Additionally, launch profiles were originally a web-focused feature and who would do this work as a bit nebulous. CC @vijayrkn for his thoughts around launch profiles going forward.

Cjewett commented 1 month ago

Just wanted to double check if this was still targeted for .NET 9? I know I've seen some other repositories start pausing additional feature additions in preparation of launch.