Closed APriestman closed 3 years ago
Having the .targets file allows easier integration into Visual Studio - it sets up the include/library folders and copies the dlls.
Switching from "lib" to "build" for the base folder seems more consistent with other packages I've seen, and having it as "lib" was generating a warning when I ran nuget pack.
FYI the libvmdk.nuspec file is generated by https://github.com/libyal/libyal/blob/master/scripts/source-generate.py. Any documentation on these changes and the target file format?
Looking at it further, it seems like the .targets file does need to be in a build folder, but a lib folder also makes sense. Let me see if it works to only put the .targets file in build and leave the lib folder as-is.
ack, let me know how that turns out. I recall the lib folder was the advise/default for an earlier version of nuget creation tools. I've not followed this space too much.
It is still unclear to me how this is supposed to be done. But it's not that bad setting up the includes/libraries on our end for the existing nuget package so I think we can just stick with that. Sorry for the trouble.
Incidentally, any chance of getting a libewf nuget package?
Incidentally, any chance of getting a libewf nuget package?
yes, is building on AppVeyor as we speak. if that succeeds I'll deploy it
It is still unclear to me how this is supposed to be done.
What part? I thought VS pulls in the files using nuget and then you'll have to make sure the project files include the library and include paths.
built and deployed: https://www.nuget.org/packages/libewf/
Excellent!
Yes that is how I'm doing it now. Some nuget packages have a .targets file that will automatically add the include folders/lib folders and copy over the dlls at the end (the versions of openssl and zlib I have do this) so you don't need to edit the build file at all. What I'm still unclear about is how to properly have a lib folder like you have now but still support this. But as I said, editing the project files isn't that much work.
The nuget documentation is far from specific but maybe this is an indication into cause https://docs.microsoft.com/en-us/nuget/guides/native-packages
NuGet cannot directly add references to a C++ project
Change nuget paths to prevent warning.