2016-12-09 30 views
4

Visual StudioのデバッグC#のスクリプトで終了preLaunchTask「ビルド」は、エラーを表示.jsonファイルは:PLS ???エラー:終了コードで終了 preLaunchTask「ビルド」これは打ち上げのコピーである1</p> <p>:終了コードOSX上の1

私はこれを解決するにはどうすればよい

{ 
    // See https://go.microsoft.com/fwlink/?LinkId=733558 
    // for the documentation about the tasks.json format 
    "version": "0.1.0", 
    "command": "dotnet", 
    "isShellCommand": true, 
    "args": [], 
    "tasks": [ 
     { 
      "taskName": "build", 
      "args": [ ], 
      "isBuildCommand": true, 
      "showOutput": "silent", 
      "problemMatcher": "$msCompile" 
     } 
    ] 
} 

{ 
    "version": "0.2.0", 
    "configurations": [{ 
      "name": ".NET Core Launch (console)", 
      "type": "coreclr", 
      "request": "launch", 
      "preLaunchTask": "build", 
      "program": "${workspaceRoot}/bin/Debug/netcoreapp1.0/hwapp.dll", 
      "args": [], 
      "cwd": "${workspaceRoot}", 
      "stopAtEntry": false, 
      "externalConsole": false 
     }, 
     { 
      "name": ".NET Core Launch (web)", 
      "type": "coreclr", 
      "request": "launch", 
      "preLaunchTask": "build", 
      "program": "${workspaceRoot}/bin/Debug/netcoreapp1.0/hwapp.dll", 
      "args": [], 
      "cwd": "${workspaceRoot}", 
      "stopAtEntry": false, 
      "launchBrowser": { 
       "enabled": true, 
       "args": "${auto-detect-url}", 
       "windows": { 
        "command": "cmd.exe", 
        "args": "/C start ${auto-detect-url}" 
       }, 
       "osx": { 
        "command": "open" 
       }, 
       "linux": { 
        "command": "xdg-open" 
       } 
      }, 
      "env": { 
       "ASPNETCORE_ENVIRONMENT": "Development" 
      }, 
      "sourceFileMap": { 
       "/Views": "${workspaceRoot}/Views" 
      } 
     }, 
     { 
      "name": ".NET Core Attach", 
      "type": "coreclr", 
      "request": "attach", 
      "processId": "${command.pickProcess}" 
     } 
    ] 
} 

これはtasks.jsonファイルのコピーです

+0

[Rider](https://www.jetbrains.com/rider/)を使用してデバッグしようとすると、エラーが発生します。 =( – Justin

答えて

0

MacPortsを使用している場合は、(これは私用)の問題である可能性があります。

私は、OpenSSLのMacPortsのバージョンにリンクして、私の.zshrc、または.profileなどでこれを持っている:

export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib:~/lib:/usr/local/lib:/lib:/usr/lib 

.NETのコアはここから作品。

VSCodeまたはRiderのいずれも、はデバッグされません(エラーが発生します)

マインはOmniSharpの問題です。ここでは、エラーが発生したファイルのlinkです。インストールがVSCodeのコマンドパレット内Debug: Download .NET Core Debuggerを入力して失敗を検証することができます

これを解決するには、私には、OpenSSL のための2つのシンボリックリンクを作成した(スーパーエレガントな、しかし...ない)
(おそらくよもはや、コマンドパレットで

% sudo ln -s /opt/local/lib/libcrypto.1.0.0.dylib /usr/local/lib/ 
% sudo ln -s /opt/local/lib/libssl.1.0.0.dylib /usr/local/lib/ 

それから私VSCodeための再インストールC#のプラグイン、および再実行Debug: Download .NET Core Debugger)これらのシンボリックリンクと上記の輸出を必要としません。私は今、両方のVSCodeとライダーでデバッグすることができます。 *


これはあなたのために動作しない場合は、上記のVSCodeコマンドからのいくつかの有用な出力/情報を得ることができます。

関連する問題