Recently, TFS was used as a new project and source code management tool in the project. Our project contains multiple websites, classes, and libraries in a solution. When using team build, we found that only DLL files were generated, but not websites ?!
This problem puzzles our configuration staff for a long time. However, after searching, we finally found the answer in links 1 and 2.
The solution is simple. When creating a team build, select the compilation platform as follows:Mixed platforms.
The reason is also very simple: the website compilation platform is ". Net", the compilation platform of class Lib is "any CPU", and only "mixed platforms" can be compiled. Why not select this option by default !!!
In the search process, we also found a fun thing: Visual Studio 2005 web deployment projects. You are interested in it. It is used in team build. See this reference.