Thanks for your reply Gerd. I was trying to use the HDF.PInvoke.dll directly from the NuGet gallery, which I believe is built for .Net 4.5. When I fetched the code and build the HDF.PInvoke.dll myself for .Net 4.0 all was well.
You can set the target .NET Framework in the Properties
of the Visual Studio Project(s) to anything you like.
I haven?t tried .NET 1.0, but I?d be somewhat optimistic
that .NET 4.0 will build and work just fine.
From: Hdf-forum [mailto:[hidden email]] On Behalf Of Chris Hargreaves
Sent: Thursday, September 15, 2016 5:48 PM
To: [hidden email]
Subject: [Hdf-forum] HDF.Pinvoke and .Net Framework 4.0