ませんOSX 10.13の私の端末でDOTNET実行-cリリースを実行すると、私は次のエラーを取得する:OSX 10.13 DOTNET RUN System.ComponentModel.Win32Exception(0x80004005が):そのようなファイルやディレクトリは
../../Properties/launchSettings.json...
System.ComponentModel.Win32Exception (0x80004005): No such file or
directory
at Interop.Sys.ForkAndExecProcess(String filename, String[] argv,
String[] envp, String cwd, Boolean redirectStdin, Boolean
redirectStdout, Boolean redirectStderr, Int32& lpChildPid, Int32&
stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.DotNet.Cli.Utils.Command.Execute()
at Microsoft.DotNet.Tools.Run.RunCommand.Start()
at Microsoft.DotNet.Tools.Run.RunCommand.Run(String[] args)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry
telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
.NETコマンドラインツール(2.2.0-preview1-007582)
製品情報: バージョン:2.2.0-preview1-007582 は、SHA-1ハッシュコミット:4845efe2ea
ランタイム環境: OS名:MacのOSをX OSバージョン:10.13 OSプラットフォーム:ダーウィンはRID :osx.10.12-x64の ベース・パスを:
のMicrosoft .NETのコア/usr/local/share/dotnet/sdk/2.2.0-preview1-007582/共有フレームワークホスト
バージョン:2.1.0-preview1-25919-02 ビルド:96a1025de48784825ac61e45ece24a4343e0bf01
がランタイム識別子は、Microsoftのドキュメントに指示されるようにOSX 10.12のために設定されています。 プロジェクトはWindows 10で動作します。OSXデバイスでは動作しません。 launchSettings.jsonファイルが存在します。ファイルをコピーしてnano化すると、ファイルが編集されます。私は今、アイデアが出ていません。
csprojに何も設定していませんか? 2.0+の唯一の有効なRIDは 'osx-x64'です、もう'10。* 'はありません。 –
私は両方を試みましたが、違いはありません。 RIDを設定しないと、他のエラーでアプリがクラッシュするため、アプリがそこにいる必要があります。 – user2330898