/omnisharp-vscode

Official C# support for Visual Studio Code (powered by OmniSharp)

Primary LanguageTypeScriptMIT LicenseMIT

C# for Visual Studio Code (powered by OmniSharp)

Master Dev
Master Build Status Dev Build Status

Welcome to the C# extension for Visual Studio Code! This preview provides the following features inside VS Code:

  • Lightweight development tools for .NET Core.
  • Great C# editing support, including Syntax Highlighting, IntelliSense, Go to Definition, Find All References, etc.
  • Debugging support for .NET Core (CoreCLR). NOTE: Mono and Desktop CLR debugging is not supported.
  • Support for project.json projects on Windows, OS X and Linux, and csproj projects on Windows.

The C# extension is powered by OmniSharp.

Important! Breaking Changes as of 1.0.10

  • The C# extension now only supports .NET Core RC2. It no longer supports .NET Core RC1 or ASP .NET 5 RC1.
  • Support for .csproj projects has been temporarily disabled on OS X and Linux. This will impact anyone doing .csproj development on OS X or Linux (e.g. Unity, Xamarin, etc.). Rest assured that this will be restored in the near future. However, for now, you can use the Legacy C# Support extension.

Found a Bug?

Please file any issues at https://github.com/OmniSharp/omnisharp-vscode/issues.

Debugging

The C# extension now supports basic debugging capabilities! See http://aka.ms/vscclrdebugger for details.

What's new in C# extension version 1.1

  • Preliminary support for dotnet test
  • Fix for OmniSharp installation problems on networks with an http proxy
  • Debugger support for an external console
  • Debugger support for environment variables
  • Support for debugging .NET Core 1.0.0 post RC2 builds
  • Automatic web vs. console debugger configuration detection
  • Detach support
  • Fix expression evaluation errors when referencing assemblies which aren't currently loaded
  • Fix expression evaluation on Windows 7

Development

First install:

  • Node.js (newer than 4.3.1)
  • Npm (newer 2.14.12)

To run and develop do the following:

  • Run npm i
  • Open in Visual Studio Code (code .)
  • Optional: run tsc -w, make code changes (on Windows, try start node ".\node_modules\typescript\bin\tsc -w")
  • Press F5 to debug

License

The Microsoft C# extension is subject to these license terms.
The source code to this extension is available on https://github.com/OmniSharp/omnisharp-vscode and licensed under the MIT license.