简体   繁体   English

如何通过复制输出目录中的特定文件夹来配置Visual-Stuidio来构建我的解决方案?

[英]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.

相关问题 Visual Studio 将项目文件夹复制到 Output 目录(WPF 解决方案) - Visual studio Copying a project folder to Output Directory (WPF solution) 如何使用 Visual Studio(可能是 MsBuild)在特定目标目录中获取构建输出 - How to get the build output in a specific target directory using Visual Studio (maybe MsBuild) 如何在Visual Studio解决方案的项目中检查文件是否存在于文件夹中 - How to check if file exists in a folder in my project in Visual Studio solution 如何将现有文件从PC复制到解决方案目录? - how I can to copy an existing file from my Pc to my solution directory? 如何将我的解决方案从共享文件夹移动到我的本地计算机? - How can I move my solution from a shared folder to my local computer? 使用MSBuild,如何从命令行构建MVC4解决方案(在此过程中应用Web.config转换)并输出到文件夹? - Using MSBuild, how do I build an MVC4 solution from the command line (applying Web.config transformations in the process) and output to a folder? 如何才能直观地表示我的解决方案的依赖关系链和成员挂钩? - How can I get a visual representation of my solution's dependency chain and member hooks? 如何从.NET解决方案中构建“依赖关系树图” - How can I build a 'dependency tree diagram' from my .NET solution 如何在Visual Studio的post-build事件中获取解决方案目录的动态路径 - How to get the dynamic path of solution directory in post-build event of Visual Studio 如何在Visual Studio解决方案中找到所有名称空间? - How do I find all namespaces in my Visual Studio solution?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM