NETMF Nuget问题-此partUri已包含在包中
我正在努力为一个.NET微框架项目构建一个nuget包 这是我的nuspec文件:NETMF Nuget问题-此partUri已包含在包中,nuget,.net-micro-framework,Nuget,.net Micro Framework,我正在努力为一个.NET微框架项目构建一个nuget包 这是我的nuspec文件: <?xml version="1.0"?> <package > <metadata> <id>WildernessLabs.Netduino.Foundation</id> <title>Netduino.Foundation</title> <version>1.0.0.0</ve
<?xml version="1.0"?>
<package >
<metadata>
<id>WildernessLabs.Netduino.Foundation</id>
<title>Netduino.Foundation</title>
<version>1.0.0.0</version>
<authors>Bryan Costanich, Frank Krueger, Craig Dunn</authors>
<owners>Wilderness Labs</owners>
<licenseUrl>https://github.com/WildernessLabs/Netduino.Foundation/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/WildernessLabs/Netduino.Foundation</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Netduino.Foundation greatly simplifies the task of building complex .NET Microframework (MF) powered connected things with Netduino.</description>
<copyright>Copyright 2017 Wilderness Labs</copyright>
<tags>NETMF Netduino</tags>
</metadata>
<files>
<file src="bin/Release/Netduino.Foundation.*" target="lib/netmf" />
<file src="bin/Release/le/Netduino.Foundation.*" target="lib/netmf" />
<file src="bin/Release/be/Netduino.Foundation.*" target="lib/netmf" />
</files>
</package>
它与我的.csproj文件位于同一文件夹中。当我运行NuGET包NETDUION.Fuff.NUPEC -冗长详细时,我得到以下错误:
System.InvalidOperationException:此partUri已包含在包中
<> P>我唯一能想到的是bin、/be和/le文件夹包括NETDUION.Fuff.dLL,但在检查中,这似乎不是问题。
有什么想法吗?解决了这个问题。需要确保文件的目标具有唯一的文件夹,因此:
<file src="bin/Release/Netduino.Foundation.*" target="lib/netmf" />
<file src="bin/Release/le/Netduino.Foundation.*" target="lib/netmf" />
<file src="bin/Release/be/Netduino.Foundation.*" target="lib/netmf" />
变成:
<file src="bin/Release/Netduino.Foundation.*" target="lib/netmf43/" />
<file src="bin/Release/le/Netduino.Foundation.*" target="lib/netmf43/le" />
<file src="bin/Release/be/Netduino.Foundation.*" target="lib/netmf43/be" />