Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一个 nuget 包,我希望它向我的项目添加一个构建后事件,该事件会将一些 dll 文件复制到其目标目录。
这样的事情可能吗?如果是这样,我会怎么做?
或者有没有办法以某种方式将非托管 dll(本机 C++)嵌入到我的 nuget 包中,并在构建时将它们复制到目标目录?
好吧,我通过将非托管 dll 放在Dependencies我放在contentnuget 包目录中的文件夹中来解决这个问题。
Dependencies
content
然后我的构建/部署过程取决于该Dependencies文件夹。(复制到输出目录)