2017-04-17 2 views
0

Je n'arrive pas à construire un paquet nuget pour un projet .NET MicroFramework.Problème avec Nuget NETMF - Cette partieUri est déjà contenue dans le package

Ceci est mon fichier Nuspec:

<?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> 

Il est assis dans le même dossier que mon dossier .csproj. Quand je lance nuget pack Netduino.Foundation.nuspec -verbosity detailed, je reçois l'erreur suivante:

System.InvalidOperationException: This partUri is already contained in the package

La seule chose que je peux penser ici est que le bin, /be et /le dossiers comprennent Netduino.Foundation.dll, mais dans l'examen other NETMF .nuspec files qui ne semble pas être un problème.

Une idée ici?

Répondre

0

Résolu ceci. Vous avez besoin de vous assurer que la cible pour les fichiers ont des dossiers uniques, donc ceci:

<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" /> 

devient:

<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" />