HDFGroup / HDF.PInvoke

Raw HDF5 Power for .NET
http://www.hdfgroup.org/HDF5
Other
80 stars 29 forks source link

NuGet won't add import hdf5.targets in csproject and native components won't copy in output directory #143

Closed olejniczak closed 6 years ago

olejniczak commented 6 years ago

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.
gheber commented 6 years ago

Is this related to #142 ?

olejniczak commented 6 years ago

Yes. Sorry I haven't noticed that. Fix is easy: you have to rename the targets file and then it works fine.

gheber commented 6 years ago

👍