The precompilation target directory (C:\MyDirectory) cannot be in the same tree as the source application directory (C:\MyDirectory)

北城以北 提交于 2019-12-11 07:16:37

问题


I am working on continuous integration using VS 2015 and TFS, and I have already created the Team Project on TFS. I am now trying to create builds definition for the every project in that is in the workspace, but I am running into the following problem when a build is executed:

The configuration in the definition that I am using it's very basic:

Can someone please help me?


回答1:


Open the solution file with a notepad, in the ProjectSection of the .sln you must change the folder associated with this tag

Debug.AspNetCompiler.TargetPath 

There you should put a path that is not under the root of your solution.

Example:

Debug.AspNetCompiler.TargetPath = "..\..\MySolution\PrecompiledWeb"

If you run msbuild YourProject.sln, after making this change, that should work



来源:https://stackoverflow.com/questions/42474873/the-precompilation-target-directory-c-mydirectory-cannot-be-in-the-same-tree

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