The MsBuild targets file in NuGet build directory should have a name of the package - HDF.PInvoke.targets not hdf5.targets.
After install of the HDF.PInvoke in .NET Console application project it does not add import statement in csproj file. I have created new NuGet Package and rename targets file into HDF.PInvoke.targets.
After installation csproj file have new content
`
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.`
and during build native components are copied into output directory.
The MsBuild targets file in NuGet build directory should have a name of the package - HDF.PInvoke.targets not hdf5.targets. After install of the HDF.PInvoke in .NET Console application project it does not add import statement in csproj file. I have created new NuGet Package and rename targets file into HDF.PInvoke.targets. After installation csproj file have new content `