Vscode, use c# extension with docker dotnet

Fabrizio Stellato 1 Reputation point
2021-11-19T19:56:28.763+00:00

Is it possible to use vs code c# extension in conjunction with docker dotnet image ?
I don't want to install dotnet SDK locally nor visual studio.

Developer technologies | .NET | .NET CLI
Developer technologies | C#
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ken Tucker 5,861 Reputation points
    2021-11-20T11:29:50.15+00:00

    You can use C# with VS code by installing this extension https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp

    There is also a docker extension for vs code
    https://code.visualstudio.com/docs/containers/overview

    1 person found this answer helpful.
    0 comments No comments

  2. Lex Li (Microsoft) 6,037 Reputation points Microsoft Employee
    2021-11-20T15:31:08.373+00:00

    If you rather use a Docker container to host the developer bits, you can use VSCode Remote to connect to that container,

    https://code.visualstudio.com/docs/remote/containers

    That does not only work for .NET, but also Python and others.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.