Vscode, use c# extension with docker dotnet

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

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.
289 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.
6,923 questions
No comments
{count} votes

2 answers

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

    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

    No comments

  2. answered 2021-11-20T15:31:08.373+00:00
    Lex Li (Microsoft) 3,201 Reputation points

    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.

    No comments