UWP类库问题的Nuget包
我正在尝试将自定义UWP usercontrol打包到nuget包中。 当测试应用程序引用控件使用该项目时,该项目可以很好地构建和工作 我生成了一个.nuspec,并通过一个Azure管道对控件进行打包,然后在我们的包源上发布该包 当试图在一个空白的UWP应用程序上安装软件包以进行测试时,软件包安装失败,我收到几个NU1202错误:UWP类库问题的Nuget包,uwp,azure-devops,azure-pipelines,nuget-package,nuget-spec,Uwp,Azure Devops,Azure Pipelines,Nuget Package,Nuget Spec,我正在尝试将自定义UWP usercontrol打包到nuget包中。 当测试应用程序引用控件使用该项目时,该项目可以很好地构建和工作 我生成了一个.nuspec,并通过一个Azure管道对控件进行打包,然后在我们的包源上发布该包 当试图在一个空白的UWP应用程序上安装软件包以进行测试时,软件包安装失败,我收到几个NU1202错误: NU1202: Package ***** 1.0.14 is not compatible with uap10.0.17134 (UAP,Version=v10
NU1202: Package ***** 1.0.14 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134). Package ***** 1.0.14 does not support any target frameworks.
NU1202: Package ***** 1.0.14 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134) / win10-arm. Package ***** 1.0.14 does not support any target frameworks.
NU1202: Package ***** 1.0.14 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134) / win10-arm-aot. Package ***** 1.0.14 does not support any target frameworks.
NU1202: Package ***** 1.0.14 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134) / win10-arm64-aot. Package ***** 1.0.14 does not support any target frameworks.
NU1202: Package ***** 1.0.14 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134) / win10-x64. Package ***** 1.0.14 does not support any target frameworks.
NU1202: Package ***** 1.0.14 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134) / win10-x64-aot. Package ***** 1.0.14 does not support any target frameworks.
NU1202: Package ***** 1.0.14 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134) / win10-x86. Package ***** 1.0.14 does not support any target frameworks.
NU1202: Package ***** 1.0.14 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134) / win10-x86-aot. Package ***** 1.0.14 does not support any target frameworks.
我想这是.nuspec文件的依赖项部分的一个问题,但是我找不到任何关于这种类型的项目应该包含哪些依赖项的明确答案
以下是.nuspec的依赖项和文件部分:
<dependencies>
<dependency id="Microsoft.NETCore.UniversalWindowsPlatform" version="6.2.9" />
</dependencies>
</metadata>
<files>
<file src="bin\Release\*****.pdb" target="lib\uap10.0" />
<file src="bin\Release\*****.pri" target="lib\uap10.0" />
<file src="bin\Release\*****\*.*" target="lib\uap10.0\*****" />
</files>
谢谢您好,您是否已将此nuget软件包安装到UWP项目中?错误表明当前项目与nuget软件包不兼容。因此,请检查是否为nuget创建了
类库(通用窗口)
。此外,在安装此nuget包之前,请检查nuget的旧版本是否导致此行为。