omnisharp-vscode/README.md

76 строки
3.7 KiB
Markdown
Исходник Обычный вид История

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-08-29 19:55:56 +03:00
|Master|Release|
|:--:|:--:|
2016-08-29 19:55:56 +03:00
|[![Master Build Status](https://travis-ci.org/OmniSharp/omnisharp-vscode.svg?branch=master)](https://travis-ci.org/OmniSharp/omnisharp-vscode)|[![Release Build Status](https://travis-ci.org/OmniSharp/omnisharp-vscode.svg?branch=release)](https://travis-ci.org/OmniSharp/omnisharp-vscode)|
2016-03-24 05:27:19 +03:00
Welcome to the C# extension for Visual Studio Code! This preview provides the following features inside VS Code:
* Lightweight development tools for [.NET Core](https://dotnet.github.io).
* Great C# editing support, including Syntax Highlighting, IntelliSense, Go to Definition, Find All References, etc.
2016-05-18 21:45:27 +03:00
* Debugging support for .NET Core (CoreCLR). NOTE: Mono and Desktop CLR debugging is not supported.
2016-11-11 23:25:50 +03:00
* Support for project.json and csproj projects on Windows, macOS and Linux.
The C# extension is powered by [OmniSharp](https://github.com/OmniSharp/omnisharp-roslyn).
2016-11-15 01:43:27 +03:00
### Get Started Writing C# in VS Code
* [Documentation](https://code.visualstudio.com/docs/languages/csharp)
* [Video Tutorial compiling with .NET Core](https://channel9.msdn.com/Blogs/dotnet/Get-started-with-VS-Code-using-CSharp-and-NET-Core)
2017-11-07 19:31:31 +03:00
### What's New in 1.13.0
* Support for Cake files. (https://cakebuild.net/)
* The language service now runs on Mono >= 5.2.0 when it is globally installed on macOS or Linux, resulting faster project load times.
* If debugging is started when a launch.json is not present, picking ".NET Core" generates a launch.json dynamically that can correctly launch a .NET Core app without any additional changes.
* Better reliability loading projects when Visual Studio 2017 (Windows) or Mono >= 5.2.0 (macOS/Linux) is installed.
* Fixed issues with non-C# projects (such as F#) being treated as C# projects.
* Addressed bugs when renaming files.
* New options for controlling the display of the references and test CodeLens:
* `csharp.referencesCodeLens.enabled`
* `csharp.testsCodeLens.enabled`
* Fixed problems with running/debugging xUnit 2.3.0 or NUnit tests.
* Many other bug fixes!
See our [change log](https://github.com/OmniSharp/omnisharp-vscode/blob/v1.13.0/CHANGELOG.md) for all of the updates.
2016-11-11 23:25:50 +03:00
### Supported Operating Systems for Debugging
2016-07-20 21:10:11 +03:00
* Currently, the C# debugger officially supports the following operating systems:
2016-07-20 21:10:11 +03:00
* Windows (64-bit only)
* macOS 10.12 (Sierra) and newer
* Ubuntu 14.04+ (and distros based on it)
* Debian 8.7+
* Red Hat Enterprise Linux (RHEL) / CentOS / Oracle Linux 7.3+
* Fedora 23 / 24 / 25
* OpenSUSE 42.2+
This list is currently the same as the x64 .NET Core 2.0 operating systems (see [.NET Core list](https://github.com/dotnet/core/blob/master/roadmap.md#net-core-20---supported-os-versions)). Note that other Linux distributions will likely work as well as long as they include glibc, OpenSSL 1.0, and libunwind.
### 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.
2015-12-07 11:37:18 +03:00
### Development
2016-05-18 00:56:20 +03:00
First install:
* Node.js (newer than 4.3.1)
* Npm (newer 2.14.12)
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`
2016-11-11 23:25:50 +03:00
* Run `npm run compile`
2016-02-18 18:01:23 +03:00
* Open in Visual Studio Code (`code .`)
* *Optional:* run `npm run watch`, make code changes
2016-08-29 19:55:56 +03:00
* Press <kbd>F5</kbd> to debug
2017-02-08 04:50:00 +03:00
To **test** do the following: `npm run test` or <kbd>F5</kbd> in VS Code with the "Launch Tests" debug configuration.
### 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).