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.
我正在使用 Visual Studio 2008,C#,我有一个解决方案,它引用同一目录中的 3 个项目。我想在每次成功构建后将解决方案中包含的所有文件和文件夹复制到另一个位置。我怎样才能做到这一点?
您可以通过构建后事件来做到这一点。
在我看来,自定义MsBuild目标在这里会更合适,因为您可能只有一个定义副本的地方,更重要的是,该副本可能只应在所有项目成功构建时才执行,每个成功构建项目的副本。
如果您不喜欢 msbuild,您还可以查看PSake