预编译目标目录(C:\MyDirectory)不能与源应用程序目录(C:\MyDirectory)位于同一树中 [英] The precompilation target directory (C:\MyDirectory) cannot be in the same tree as the source application directory (C:\MyDirectory)

查看:85
本文介绍了预编译目标目录(C:\MyDirectory)不能与源应用程序目录(C:\MyDirectory)位于同一树中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS 2015和TFS进行持续集成,并且已经在TFS上创建了团队项目。我现在正在尝试为工作空间中的每个项目创建构建定义,但是在执行构建时遇到以下问题:

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:

有人可以帮助我吗?

推荐答案

使用记事本打开解决方案文件,在.sln的ProjectSection中,您必须更改与此标签关联的文件夹

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.

示例:

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

如果您运行 msbuild YourProject.sln ,进行此更改后,应该可以工作

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

这篇关于预编译目标目录(C:\MyDirectory)不能与源应用程序目录(C:\MyDirectory)位于同一树中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆