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.

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
315 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
9,981 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ken Tucker 5,841 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) 4,247 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