title: How can I make my managed NuGet package support C++/CLI projects?
body: <p>I have made a NuGet package that works well when I use it from a C# project. It contains a DLL in the <code>lib/net40</code> directory, and the DLL gets added as a reference.</p>
  
  <p>Now that NuGet supports C++, how do I actually modify my package so that the DLL can be added as a managed reference in a C++/CLI project? I can't find any tutorials explaining this. If I try to just add the package as is, I get the following error:</p>
  
  <blockquote>
    <p>You are trying to install this package into a project that targets 'Native,Version=v0.0', but the package does not contain any assembly references or content files that are compatible with that framework.</p>
  </blockquote>
  
  <p>One would think that the solution is to put the files under lib/native, but according to <a href="http://docs.nuget.org/docs/reference/support-for-native-projects" rel="noreferrer">http://docs.nuget.org/docs/reference/support-for-native-projects</a>, that is not supported. Also, simply putting the DLL directly under lib doesn't seem to do anything.</p>
  
  <p>Apparently, I am supposed to do this with a <code>.props</code> or <code>.targets</code> file under build/native, but what do I need to put into those files to make this work ?</p>