Răsfoiți Sursa

Add instructions for use with .NET 6.0

Dominik Kaszewski 1 an în urmă
părinte
comite
e7425d9db6
1 a modificat fișierele cu 15 adăugiri și 0 ștergeri
  1. 15 0
      README.md

+ 15 - 0
README.md

@@ -1393,6 +1393,21 @@ def CSharpSolutionFile( filepath ):
 If the path returned by `CSharpSolutionFile` is not an actual file, YCM will
 fall back to the other way of finding the file.
 
+#### Use with .NET 6.0 and .NET SDKs
+
+YCM ships with older version of OmniSharp-Roslyn based on Mono runtime.
+It is possible to use it with .NET 6.0 and newer, but it requires manual setup.
+
+1. Download NET 6.0 version of the OmniSharp server for your system from
+[releases](https://github.com/OmniSharp/omnisharp-roslyn/releases/)
+1. Set `g:ycm_roslyn_binary_path` to the unpacked executable `OmniSharp`
+1. Create a solution file if one doesn't already exist, it is currently required
+by YCM for internal bookkeeping
+    1. Run `dotnet new sln` at the root of your project
+    1. Run `dotnet sln add <project1.csproj> <project2.csproj> ...`
+    for all of your projects
+1. Run `:YcmRestartServer`
+
 ### Python Semantic Completion
 
 YCM relies on the [Jedi][] engine to provide completion and code navigation. By