当前位置:网站首页>What's the best way to get TFS to output each project to its own directory?

What's the best way to get TFS to output each project to its own directory?

2022-07-06 21:06:00 Technology feast

problem :

I'm putting a large codebase into Team Foundation Server. I am putting a large code base into Team Foundation Server.I would like the build process to create a "ready to deploy" build of our projects. I want the build process to create a “ Prepare to deploy ” The construction of .

The normal way we've been doing this is to have each project's output be in its own folder. The normal way we have been doing this is to put the output of each project in its own folder .So, for example, we wind up with something like therefore , for example , We'll end up with something similar

C:\project1\            assembly1.dll            assembly2.dll            project1.exe            project1.exe.configC:\project2\            assembly2.dll            assembly3.dll            project2.exe            project2.exe.configC:\project3\            assembly1.dll            assembly3.dll            project3.exe            project3.exe.config

Which is the way we like it. This is the way we like it .

TFS, though, seems to want to stick everything in the same directory. however ,TFS It seems that you want to put all the contents in the same directory .

C:\output\          assembly1.dll          assembly2.dll          assembly3.dll          project1.exe          project1.exe.config          project2.exe          project2.exe.config          project3.exe          project3.exe.config

which, although it saves some amount of disk space (the assemblies are only there one time each) is not how we want it. Although it saves some disk space ( Each assembly exists only once ), But it's not what we want .

What's the best way to specify where TFS/MSBuild should put the output files? Appoint TFS/MSBuild What is the best way to place the output file ?Do I need to edit sln/csproj files individually to achieve this or can I do it in the TFSBuild.proj file? Do I need to edit it separately sln/csproj File to achieve this , It can still be done in TFSBuild.proj In file ?(ie, in a MSBuild-specific file)( namely , Be specific to MSBuild In the file of )


Solution :

Reference resources : https://stackoom.com/en/question/2vnr
原网站

版权声明
本文为[Technology feast]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131129228014.html