简体   繁体   English

TFS 2012将复制控制台应用程序构建到_PublishedWebsites

[英]TFS 2012 build copy console application to _PublishedWebsites

I am using TFS 2012 build option to build my web application. 我正在使用TFS 2012构建选项来构建我的Web应用程序。 I have couple of console application in the solution. 我在解决方案中有几个控制台应用程序。 I want the console application output to be copied to the bin folder. 我希望将控制台应用程序的输出复制到bin文件夹中。 In visual studio, I am doing this by using the copy command in the Post build event command option. 在Visual Studio中,我通过使用“构建后事件”命令选项中的copy命令来执行此操作。 But this does not work in TFS builds. 但这在TFS构建中不起作用。 The generated exe is not copied to the _PublishedWebsites folder in the BuildAgent directory 生成的exe文件不会复制到BuildAgent目录中的_PublishedWebsites文件夹中

Possibility duplicate to Problems with MSBuild OutputPath and OutDir in TFS2010 . TFS2010中MSBuild OutputPath和OutDir问题的可能重复。

Also give a try wiht this NuGet package , you can install it which will do this. 还可以尝试使用此NuGet软件包 ,您可以安装它来执行此操作。

With TFS 2012 build process template, you need to custom build process template to run the script after building, like the post-build scripts feature in TFS 2013 build process template. 使用TFS 2012构建过程模板,您需要自定义构建过程模板以在构建后运行脚本,例如TFS 2013构建过程模板中的构建后脚本功能。

You can refer to this article to custom build process template to achieve your requirement. 你可以参考这个文章,自定义生成过程模板来实现您的要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM