uwp 的 nuget lib 文件夹是什么
what is the nuget lib folder for uwp
我有一个 nuget 包,我想添加它的 uwp 版本,
通常我会把 dll 放到 lib/net40
我想知道在哪里放置 uwp 的 dll,
这是 uwp 项目的 project.json 文件:
{
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
},
"frameworks": {
"uap10.0": {}
},
"runtimes": {
"win10-arm": {},
"win10-arm-aot": {},
"win10-x86": {},
"win10-x86-aot": {},
"win10-x64": {},
"win10-x64-aot": {}
}
}
如果 DLL 通常针对所有 Windows 商店平台(WinRT 8.0、8.1,Windows 10 的 UWP),请将其放入 lib/netcore
。如果它专为 Windows 10 设计并使用 UWP API,请将其放入 lib/uap
或 lib/uap10.0
.
查看 the Nuget docs for creating UWP packages, and the section New Target Frameworks in this Nuget blog post!
编辑:你应该不做的是,将任何DLL直接放在lib/
文件夹中。在以前的版本中,lib
中的所有库将用于所有未分配任何特定 DLL 的平台,而在 UWP 中,它们将被简单地忽略。
我有一个 nuget 包,我想添加它的 uwp 版本,
通常我会把 dll 放到 lib/net40
我想知道在哪里放置 uwp 的 dll,
这是 uwp 项目的 project.json 文件:
{
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
},
"frameworks": {
"uap10.0": {}
},
"runtimes": {
"win10-arm": {},
"win10-arm-aot": {},
"win10-x86": {},
"win10-x86-aot": {},
"win10-x64": {},
"win10-x64-aot": {}
}
}
如果 DLL 通常针对所有 Windows 商店平台(WinRT 8.0、8.1,Windows 10 的 UWP),请将其放入 lib/netcore
。如果它专为 Windows 10 设计并使用 UWP API,请将其放入 lib/uap
或 lib/uap10.0
.
查看 the Nuget docs for creating UWP packages, and the section New Target Frameworks in this Nuget blog post!
编辑:你应该不做的是,将任何DLL直接放在lib/
文件夹中。在以前的版本中,lib
中的所有库将用于所有未分配任何特定 DLL 的平台,而在 UWP 中,它们将被简单地忽略。