问题
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