0
我有dotnet的問題restore命令 我的項目具有以下結構: `錯誤時,試圖DOTNET恢復多項目解決方案
MyApp
-__gitsubmodule/Lib-bus/project.json (target NetStandart1.6)
Programe.cs
project.json (target NetCoreApp1.0)
當我運行的dotnet恢復我:
log : Restoring packages for /MyApp/__gitsubmodule/Lib-bus/project.json...
log : Restoring packages for /MyApp/project.json...
log : Lock file has not changed. Skipping lock file write. Path: MyApp/__gitsubmodule/Lib-bus/project.lock.json
log : MyApp/__gitsubmodule/Lib-bus/project.json
log : Restore completed in 715ms.
error: Unable to resolve 'Lib-bus (>= 1.0.0)' for '.NETCoreApp,Version=v1.0'.
log : Lock file has not changed. Skipping lock file write. Path: /MyApp/project.lock.json
log : /MyApp/project.json
log : Restore failed in 974ms.
Errors in MyApp/project.json
Unable to resolve 'Lib-bus(>= 1.0.0)' for '.NETCoreApp,Version=v1.0'.
我認爲dotnet無法正確找到Lib-bus。我找到解決方案更改結構並添加global.json,但這不方便。也許你現在是設定Lib-bus路徑的方法。謝謝。