1

尝试在我的 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

项目.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 将项目输出到与尝试运行项目不同的目录中?我怎样才能解决这个问题?

4

0 回答 0