Kubuntu 15.04 の VSCode (v. 0.10.3) で C# 上の既存の MSBuild プロジェクト (実際には VS 2012 から) を含むフォルダーを開きます。OmniSharp は、開始後にエラーをスローします:
[INFO] Starting OmniSharp at '/home/tezaurismosis/Development/NET/ConsoleApp/ConsoleApp.sln'...
[INFO] Started OmniSharp from '/home/tezaurismosis/VSCode/resources/app/extensions/csharp-o/bin/omnisharp' with process id 14956...
System.InvalidOperationException: Failed to resolve the following dependencies for target framework 'DNX,Version=v4.5.1':
framework/System.Collections
framework/System.Collections.Concurrent
framework/System.Globalization
framework/System.IO
framework/System.Net.Http.WebRequest
framework/System.Reflection
framework/System.Runtime
framework/System.Text.Encoding
framework/System.Threading.Tasks
Searched Locations:
... some paths ...
Try running 'dnu restore'.
at Microsoft.Framework.ApplicationHost.Program.Main (System.String[] args) <0xb71f6a58 + 0x0035b> in <filename unknown>:0
[ERROR] Error: Failed to start OmniSharp
Mono (4.2.1) の最新バージョンと、Mono アセンブリを含むすべてのサブパッケージをインストールし、 installdnvm
と run dnvm upgrade -r mono
、 runをインストールしdnu restore
ましたが、OmniSharp は何度も失敗し、IntelliSence は VSCode で機能しませんでした。
どうすれば修正できますか?
PS ASP.NET ではなく、単なるコンソール C# プロジェクトです。