Add postbuild event in nuget package

I am creating a nuget package and I want it to add a post-build event to my project that will copy some DLL files to its target directory.

Is this possible? If so, how do I do this?

Or is there a way to somehow embed an unmanaged dll (native C ++) into my nuget package and copy them into the assembly in the target directory?

+3
source share
1 answer

Well, I somehow figured this out by putting an unmanaged dll in the folder Dependenciesthat I entered in the contentnuget package directory.

Then my build / deployment process depends on this folder Dependencies. (Copy to output directory)

+1
source

Source: https://habr.com/ru/post/1792533/


All Articles