我有一个带有以下project.json 的.NET Core库:
{
"version": "1.0.0-*",
"dependencies": {
"NETStandard.Library": "1.6.0"
},
"frameworks": {
"netstandard1.6": { }
},
"scripts": {
"postcompile": [
"dotnet pack --no-build --configuration Release",
"xcopy bin\\Release ..\\..\\lib\\ /Y"
]
}
}
Run Code Online (Sandbox Code Playgroud)
其中后编译脚本创建了一个nuget包,我按照这些说明在VS中添加了自定义Feed .这是因为我想从Windows通用应用程序中引用它,根据这个问题,它不能(否).但是当我尝试它时,我得到这样的信息:
Package AEther 1.0.0 is not compatible with uap10.0 (UAP,Version=v10.0).
Package AEther 1.0.0 supports: netstandard1.6 (.NETStandard,Version=v1.6)
One or more packages are incompatible with UAP,Version=v10.0.
Run Code Online (Sandbox Code Playgroud)
这是我不再理解的地方.根据这个,它应该适用于netstandard> = 1.6.0,而这个官方表说我需要目标netstandard <= 1.4.0,但这不会改变任何东西.更令人困惑的是,如果我将netstandard(依赖项和目标框架)的两个 …