OSX El Capitan (10.11.4) に最新バージョンの Visual Studio Code (1.1.1) をインストールしました。Core RC2 の最新バージョンもインストールしました。dotnet --versionは1.0.0-preview1-002702を提供します。私が読んだ Web スレッドの 1 つで、OmniSharp の古いバージョンを削除して最新バージョンをインストールするように言われました。Brew経由でOpenSSLもインストールしました。
aspnet 用の最新の yo ジェネレーターをインストールしてサンプル アプリを作成したところ、問題なく動作しました。Visual Studio Code でそのフォルダーを開こうとすると、[出力] ウィンドウに次のように表示されます。
.NET Core Debugger をダウンロードして構成しています... info : 復元をコミットしています... log : ロック ファイルは変更されていません。ロックファイルの書き込みをスキップしています。パス: /Users/rheckart/.vscode/extensions/ms-vscode.csharp-0.3.7/coreclr-debug/project.lock.json ログ: /Users/rheckart/.vscode/extensions/ms-vscode.csharp-0.3 .7/coreclr-debug/project.json ログ : 復元は 632 ミリ秒で完了しました。
使用される NuGet 構成ファイル: /Users/rheckart/.vscode/extensions/ms-vscode.csharp-0.3.7/coreclr-debug/NuGet.config
使用されるフィード: https://www.myget.org/F/dotnet-core/api/v3/index.json https://api.nuget.org/v3/index.json https://www.myget.org /F/coreclr-debug/api/v3/index.jsonテレメトリ: 有効エラー: ターゲット ランタイムの 1 つと互換性のあるフレームワーク 'DNXCore,Version=v5.0' のランタイム ターゲットが見つかりません: 'osx.10.11-x64 '。考えられる原因: 1. プロジェクトが復元されていないか、復元に失敗しました - 実行
dotnet restore
2. プロジェクトの「ランタイム」セクションに「osx.10.11-x64」のいずれもリストされていません。エラー:System.InvalidOperationException: ターゲット ランタイムの 1 つと互換性のあるフレームワーク 'DNXCore,Version=v5.0' のランタイム ターゲットが見つかりません: 'osx.10.11-x64'。考えられる原因: 1. プロジェクトが復元されていないか、復元に失敗しました - 実行
dotnet restore
2. プロジェクトの「ランタイム」セクションに「osx.10.11-x64」のいずれもリストされていません。Microsoft.DotNet.ProjectModel.BuildWorkspace.GetRuntimeContext (ProjectContext コンテキスト、 System.Collections.Generic.List 1 コレクション1 runtimeIdentifiers) at System.Linq.Enumerable.WhereSelectListIterator
で IEnumerable 2.MoveNext() ) で System.Linq.Enumerable.ToList[TSource](IEnumerable`1 ソース) で Microsoft .DotNet.Tools.Publish.PublishCommand.TryPrepareForPublish()1..ctor(IEnumerable
Microsoft.DotNet.Tools.Publish.PublishCommand.<>c__DisplayClass0_0.b__0() で Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args) で Microsoft.DotNet.Tools.Publish.PublishCommand.Run(String) [] args) dotnet は、.NET Core デバッガーのインストール中にエラー コード 1 エラーで終了しました。
手順 1 と 2 の両方を実行しようとしましたが、それでも同じエラーが発生します。私の project.json ファイルは次のようになります。
{
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0-rc2-3002702",
"type": "platform"
},
"Microsoft.AspNetCore.Mvc": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-final",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc2-final",
"Microsoft.Extensions.Configuration.FileExtensions": "1.0.0-rc2-final",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc2-final",
"Microsoft.Extensions.Logging": "1.0.0-rc2-final",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc2-final",
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc2-final"
},
"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-preview1-final",
"imports": "portable-net45+win8+dnxcore50"
}
},
"frameworks": {
"netcoreapp1.0": {
"imports": [
"dotnet5.6",
"dnxcore50",
"portable-net45+win8"
]
}
},
"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true
},
"runtimeOptions": {
"gcServer": true
},
"publishOptions": {
"include": [
"wwwroot",
"Views",
"appsettings.json",
"web.config"
]
},
"scripts": {
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
},
"tooling": {
"defaultNamespace": "rc2api"
},
"runtimes": {
"osx.10.11-x64": { }
}
}
.NET Core Launch (web)を使用して VS Code でデバッグを実行しようとすると、エラーが発生します。
デバッグ アダプターの実行可能ファイル '/Users/rheckart/.vscode/extensions/ms-vscode.csharp-0.3.7/coreclr-debug/debugAdapters/OpenDebugAD7' が見つかりません。
なぜこれが機能しないのかについてのアイデアはありますか?