“AnyCPU” vs “Any CPU” in TFS 2010

前端 未结 3 1985
遇见更好的自我
遇见更好的自我 2020-12-14 15:43

I spent a great many hours trying to work out why my project builds with the default (blank) configuration on TFS2010 but tells me there\'s no output path if I set it to any

3条回答
  •  抹茶落季
    2020-12-14 16:32

    This seems to be a known bug in VS2010.
    See http://connect.microsoft.com/VisualStudio/feedback/details/503935/msbuild-inconsistent-platform-for-any-cpu-between-solution-and-project for more details.

    What I've found :

    All project files in a solution have the platform set to "AnyCPU" even though you select "Any CPU" in the configuration window. So if you build this solution in VS, everything works fine. When you try to build using the TFS "Any CPU" platform, solutions work fine, but projects have to be set (on the msbuild task) to use /p:AnyCPU.

提交回复
热议问题