开发者

Add a postbuild event in a 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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜