Skip to content

Commit e7425d9

Browse files
committed
Add instructions for use with .NET 6.0
1 parent cc9a3ae commit e7425d9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,21 @@ def CSharpSolutionFile( filepath ):
13931393
If the path returned by `CSharpSolutionFile` is not an actual file, YCM will
13941394
fall back to the other way of finding the file.
13951395

1396+
#### Use with .NET 6.0 and .NET SDKs
1397+
1398+
YCM ships with older version of OmniSharp-Roslyn based on Mono runtime.
1399+
It is possible to use it with .NET 6.0 and newer, but it requires manual setup.
1400+
1401+
1. Download NET 6.0 version of the OmniSharp server for your system from
1402+
[releases](https://github.com/OmniSharp/omnisharp-roslyn/releases/)
1403+
1. Set `g:ycm_roslyn_binary_path` to the unpacked executable `OmniSharp`
1404+
1. Create a solution file if one doesn't already exist, it is currently required
1405+
by YCM for internal bookkeeping
1406+
1. Run `dotnet new sln` at the root of your project
1407+
1. Run `dotnet sln add <project1.csproj> <project2.csproj> ...`
1408+
for all of your projects
1409+
1. Run `:YcmRestartServer`
1410+
13961411
### Python Semantic Completion
13971412

13981413
YCM relies on the [Jedi][] engine to provide completion and code navigation. By

0 commit comments

Comments
 (0)