omnisharp-vscode/README.md

79 строки
4.1 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
[![Wallaby.js](https://img.shields.io/badge/wallaby.js-configured-green.svg)](https://wallabyjs.com)
Welcome to the C# extension for Visual Studio Code! This extension 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.
* Debugging support for .NET Core (CoreCLR). NOTE: Mono debugging is not supported. Desktop CLR debugging has [limited support](https://github.com/OmniSharp/omnisharp-vscode/wiki/Desktop-.NET-Framework).
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)
2017-12-31 18:34:43 +03:00
* [Video Tutorial compiling with .NET Core](https://channel9.msdn.com/Blogs/dotnet/Get-started-VSCode-Csharp-NET-Core-Windows)
### What's new in 1.19.1
* Updated debugger to work correctly on Linux distributions with openssl 1.1 such as Ubuntu 19.04.
* Fixed OmniSharp hanging on wildcard Nuget package references.
* OmniSharp now uses correct 4.7.2 framework sku to prompt for installation of .NET 4.7.2 if missing.
2019-04-15 19:52:05 +03:00
### What's new in 1.19.0
2018-11-13 23:05:55 +03:00
2019-04-15 19:52:05 +03:00
* Improved support for .NET Core 3
2019-04-13 03:14:24 +03:00
* Added support for roslyn analyzers, code fixes and rulesets which can be enabled via`omnisharp.enableRoslynAnalyzers` setting.
* Improved Razor diagnostics
* Razor tooling support for tag helpers
2019-04-15 19:52:05 +03:00
See our [change log](https://github.com/OmniSharp/omnisharp-vscode/blob/v1.19.1/CHANGELOG.md) for more detail.
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
* X64 operating systems:
* Windows 7 SP1 and newer
* macOS 10.12 (Sierra) and newer
* Linux: see [.NET Core documentation](https://github.com/dotnet/core/blob/master/release-notes/2.0/2.0-supported-os.md#linux) for the list of supported distributions. Note that other Linux distributions will likely work as well as long as they include glibc and OpenSSL.
* ARM operating systems:
* Linux is supported as a remote debugging target
### Found a Bug?
2018-05-04 11:58:42 +03:00
2018-10-08 23:45:00 +03:00
To file a new issue to include all the related config information directly from vscode by entering the command pallette with <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>
2019-03-26 00:46:33 +03:00
(<kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> on macOS) and running `CSharp: Report an issue` command. This will open a browser window with all the necessary information related to the installed extensions, dotnet version, mono version, etc. Enter all the remaining information and hit submit. More information can be found on the [wiki](https://github.com/OmniSharp/omnisharp-vscode/wiki/Reporting-Issues).
2018-10-08 21:33:44 +03:00
Alternatively you could visit https://github.com/OmniSharp/omnisharp-vscode/issues and file a new one.
### Debugging
2018-05-04 11:58:42 +03:00
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:
2018-05-04 11:58:42 +03:00
* Node.js (8.11.1 or later)
* Npm (5.6.0 or later)
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).