Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to create nuget packages that include the headers without override other property?

$
0
0

I'm creating multiple NuGet packages from .nuspec files, each package needs to use a header file to work with native C++ projects.

I'm using a targets file for each NuGet package to include the files as following:

<ItemDefinitionGroup><ClCompile><AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)\..\native\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories><IncludeSymbols>true</IncludeSymbols></ClCompile></ItemDefinitionGroup>

NuGet packages are correct installed and including the headers the problem it's that the last package in to be installed overrides the AdditionalIncludeDirectories property .How can I update my targets files to avoid this behavior?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>