[英]How can I configure Visual-Stuidio to build my solution by copying a specific folder in the output directory?
I want to create a folder in TFS where I will put all my PowerShell Modules and Snapins. 我想在TFS中创建一个文件夹,我将放置所有PowerShell模块和Snapins。
What should I do in Visual Studio in order to have a solution to be build by having this 'Modules folder' to be copied in to the bin directory? 我应该在Visual Studio中做什么才能通过将“Modules文件夹”复制到bin目录来构建解决方案?
For example if the modules are in C:\\Source\\PSModules\\MyModules folder. 例如,如果模块位于C:\\ Source \\ PSModules \\ MyModules文件夹中。
And if I create a 2 new solutions in VS that is SolutionFoo.sln and SolutionBar.sln. 如果我在VS中创建一个2个新解决方案,即SolutionFoo.sln和SolutionBar.sln。
How can I reference C:\\Source\\PSModules\\MyModules folder from SolutionFoo.sln and SolutionBar.sln and configure it to have this folder to be copied into the Build directory? 如何从SolutionFoo.sln和SolutionBar.sln引用C:\\ Source \\ PSModules \\ MyModules文件夹并将其配置为将此文件夹复制到Build目录中?
您可以在特定项目上设置构建后事件,以将modules文件夹的内容从一个解决方案复制到另一个解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.