.net core dotnet运行尝试从不存在的路径运行

.net core dotnet运行尝试从不存在的路径运行,.net-core,dotnet-cli,.net Core,Dotnet Cli,试图在我的Ubuntu 16.04服务器上运行我的项目时,我遇到一个错误: $ dotnet -v run Telemetry is: Enabled Project TwitchbotCommons (.NETCoreApp,Version=v1.1) was previously compiled. Skipping compilation. Project ohbot-core (.NETCoreApp,Version=v1.1) was previously compiled. Skip

试图在我的Ubuntu 16.04服务器上运行我的项目时,我遇到一个错误:

$ dotnet -v run
Telemetry is: Enabled
Project TwitchbotCommons (.NETCoreApp,Version=v1.1) was previously compiled. Skipping compilation.
Project ohbot-core (.NETCoreApp,Version=v1.1) was previously compiled. Skipping compilation.
Running /home/ventic/ohbot-core/ohbot-core/bin/Debug/netcoreapp1.1/ubuntu.16.04-x64/ohbot-core --additionalprobingpath /home/ventic/.nuget/packages
No such file or directory
编译项目后,bin下的文件

$ tree bin
bin
└── Debug
    └── netcoreapp1.1
        ├── ohbot-core.deps.json
        ├── ohbot-core.dll
        ├── ohbot-core.pdb
        ├── TwitchbotCommons.dll
        └── TwitchbotCommons.pdb

$ dotnet --version
1.0.0-preview2-1-003177
Project.json

{
    "dependencies": {
        "Newtonsoft.Json": "9.0.1",
        "System.Collections.Specialized": "4.3.0",
        "Microsoft.NETCore.App": "1.1.0",
        "Microsoft.AspNetCore.WebSockets": "1.0.0",
        "TwitchbotCommons": "*"
    },
    "frameworks": {
        "netcoreapp1.1": {}
    },
    "runtimes": {
        "win": {},
        "ubuntu.16.04-x64": {},
        "ubuntu.16.10-x64": {},
        "debian.8-x64": {}
    }
}

为什么dotnet core在不同的目录中输出项目,而不是试图从中运行项目?如何修复此问题?

能否显示您的project.json?您是使用dotnet build还是使用某些IDE编译代码?@svick dotnet build在问题正文中添加了project.json您能显示您的project.json吗?您是使用dotnet build还是使用某些IDE编译代码?@svick dotnet build在问题正文中添加了project.json