У меня есть проект Visual Studio C ++, который создает DLL для архитектур x86 и x64 в режимах отладки и выпуска. Я должен опубликовать этот пакет как пакет nuget с учетом этих спецификаций. Так что в моем пакете должно быть 4 библиотеки DLL. У меня вопрос, как указать x86, x64 в моем файле nuspec. Я думал, следует ли его указывать в поле target каждого файла, но я не могу найти никакой документации о том, как точно указать эти спецификации. Мой файл nuspec выглядит следующим образом:
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<!-- Required elements-->
<id>counterpartylookup</id>
<version>0.0.0</version>
<description>counterpartylookup/v140/win32/x86/x64</description>
<authors>***</authors>
<!-- Optional elements -->
<!-- ... -->
<owners>...</owners>
<licenseUrl>***</licenseUrl>
<projectUrl>***</projectUrl>
<dependencies>
***
</dependencies>
<tags> {vc140, win32, x64, x86, dynamic, C++, native}</tags>
</metadata>
<files>
<file src="..\shared\v140\bin\x64\Release\CounterPartyLookup.dll" target="lib" />
<file src="..\shared\v140\bin\x64\Debug\CounterPartyLookup.dll" target="lib" />
<file src="..\shared\v140\bin\x86\Release\CounterPartyLookup.dll" target="lib" />
<file src="..\shared\v140\bin\x86\Debug\CounterPartyLookup.dll" target="lib" />
</files>
<!-- Optional 'files' node -->
</package>