开发者

Add a postbuild event in a nuget package

开发者 https://www.devze.com 2023-02-11 07:51 出处:网络
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.

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 such a thing possible? If so, how would I do it?

Or is there a way to, somehow, embed unmanaged dll's (native C++) in my nuget package and have th开发者_Go百科em copied upon build to the target directory?


Well, I kinda figured it out by putting the unmanaged dll's in a Dependencies folder that I put inside the content directory of the nuget package.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号