当我尝试在我的 MAC 上运行 .NET Core 示例程序时。在 VScode 上。
在终端上没问题。
bogon:projectApp JCNetwork-Mecil9$ dotnet run
Project projectApp (.NETCoreApp,Version=v1.1) was previously compiled. Skipping compilation.
What is your name?
mecil9
Hello, mecil9, on 12/10/2016 at 17:11
Run Code Online (Sandbox Code Playgroud)
但是在 VSCode 上,抛出错误:
What is your name?
mecil9
Unable to perform this action because the process is running.
Run Code Online (Sandbox Code Playgroud) Visual Studio 在 OSX 上调试 c# 脚本,显示错误:preLaunchTask 'build' 以退出代码 1 终止。
这是 launch.json 文件的副本:
{
"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" …Run Code Online (Sandbox Code Playgroud)