tfs build content output directory

此生再无相见时 提交于 2019-12-10 17:07:51

问题


I have the following scenario:

  • A C# Class library
  • TFS build 2012

In the project i have the following structure:

-Resources
---File.extension (type: content, copy always)

When I build this localy with visual studio I get the following:

bin\resources\File.extension

This is what I want and expect, but on the tfs build I get the following:

bin\File.extension

I haven't been able to figure out why this is happening. I would like to know why this could be happening.


回答1:


You can specify the Build Output Location in your Build Process→Build→Outputlocation. The default value is SingleFolder, this is why you got this. To achieve what you want, you can change it AsConfigured.

To control where the TFBuild places the build outputs, choose:

• SingleFolder :to place all the build output files together in the drop folder.

• PerProject :to group the build outputs into drop folder sub-folders for each solution or code project that you have specified in the Projects box.

• AsConfigured :to leave the binaries in the build agent sources folder, organized into the same sub-folder structure you see when you build your code on your dev machine in Visual Studio. This structure is defined in your code projects.



来源:https://stackoverflow.com/questions/33654495/tfs-build-content-output-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!