我有 aspnet 核心项目(在完整框架上),引用 Library.csproj 项目。
"frameworks": {
"net461": {
"dependencies": {
"Library": {
"target": "project"
}
}
}
}
我知道为我的 webapp 恢复包的唯一方法是dotnet restore
. 但这会创建不需要的 Library.xproj。
dotnet --version
1.0.0-preview2-1-003177
fragment.lock 包含
"Library/1.0.0": {
"type": "project",
"framework": ".NETFramework,Version=v4.6.1",
"compile": {
"bin/Debug/Library.dll": {}
},
"runtime": {
"bin/Debug/Library.dll": {}
},
"contentFiles": {
"bin/Debug/Library.pdb": {
"buildAction": "None",
"codeLanguage": "any",
"copyToOutput": true
}
}
},
project.lock.json 包含
"Library/1.0.0": {
"type": "project",
"path": "../Library/project.json"
},