2016-02-18 18:01:23 +03:00
## C# for Visual Studio Code (powered by OmniSharp)
2015-12-03 13:25:00 +03:00
2016-03-24 05:33:57 +03:00
|Master|Dev|
|:--:|:--:|
|[![Master Build Status](https://travis-ci.org/OmniSharp/omnisharp-vscode.svg?branch=master)](https://travis-ci.org/OmniSharp/omnisharp-vscode)|[![Dev Build Status](https://travis-ci.org/OmniSharp/omnisharp-vscode.svg?branch=dev)](https://travis-ci.org/OmniSharp/omnisharp-vscode)|
2016-03-24 05:27:19 +03:00
2016-05-16 20:16:03 +03:00
This is a preview of C# support in Visual Studio code. It is designed to work well with [.NET Core 1.0 ](http://dotnet.github.io/ ).
2016-03-04 04:07:09 +03:00
These new projects are based on project.json and the [.NET CLI ](https://dotnet.github.io/getting-started/ ).
2016-05-17 03:02:08 +03:00
### Support for .csproj and Mono on OS X and Linux
2016-05-16 20:16:03 +03:00
2016-05-17 03:02:08 +03:00
Support for .csproj projects will be improved in future versions of this extension. For now, if you are targeting Mono scenarios (ex: Unity or Xamarin) we suggest instead installing the 'Built-in Omnisharp' extension. Note that the name of the OmniSharp extension is no longer correct - the extension is no longer built into VS Code.
2016-05-16 20:16:03 +03:00
2016-05-17 03:02:08 +03:00
Use the following steps to install the older OmniSharp extension for Mono support:
2016-05-16 20:16:03 +03:00
1. Install ASP.NET 5 RC1 (NOTE: Do **NOT** use RC2)
* Windows: https://docs.asp.net/en/1.0.0-rc1/getting-started/installing-on-windows.html
* OSX: https://docs.asp.net/en/1.0.0-rc1/getting-started/installing-on-mac.html. Follow the instructions for using Mono.
* Linux: https://docs.asp.net/en/1.0.0-rc1/getting-started/installing-on-linux.html. Follow the instructions for using Mono.
2. Bring up the extension list in VS Code by opening the command pallet (F1 key) and type 'ext install'.
3. After VS Code has downloaded the extension list, type 'omnisharp' and select 'Built-in Omnisharp' from the list.
4. Open a C# file. If intellisense isn't working, open the output window (View->Toggle Output) and look at the 'OmniSharp Log'.
2016-03-04 04:07:09 +03:00
### Debugging
This version supports basic debugging capabilities.
See http://aka.ms/vscclrdebugger for details.
2015-12-07 11:37:18 +03:00
2016-03-04 04:07:09 +03:00
### Development
2015-12-03 13:25:00 +03:00
To **run and develop** do the following:
2016-02-18 18:01:23 +03:00
* 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"` )
2016-03-03 02:57:31 +03:00
* Press F5 to debug
2016-03-04 04:07:09 +03:00
2016-03-03 02:57:31 +03:00
## License
The Microsoft C# extension is subject to [these license terms ](RuntimeLicenses/license.txt ).
The source code to this extension is available on [https://github.com/OmniSharp/omnisharp-vscode ](https://github.com/OmniSharp/omnisharp-vscode ) and licensed under the [MIT license ](LICENSE.txt ).