2017-04-17 2 views
0

.NET MicroFrameworkプロジェクトのためのナゲットパッケージを作成するのに苦労しています。NETMF Nugetの問題 - このpartUriは既にパッケージに含まれています

これは私のnuspecファイルです。それは私の.csprojファイルと同じフォルダに座ってい

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

。私がここで考えることができる唯一の事はbin/be、および/leフォルダがNetduino.Foundation.dllが含まれていることである

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

が、いないようですother NETMF .nuspec filesを検討中:私はnuget pack Netduino.Foundation.nuspec -verbosity detailedを実行すると、私は次のエラーを取得します問題になる

ここには何もありませんか?

答えて

0

解決済みファイルのターゲットは一意のフォルダを持っているので、これを確認する必要があります。

<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" /> 
関連する問題