TFS 2008,VS 2008. 我在$/MyStuff/TeamBuildTypes/Dev文件夹中有一个tfsbuild.proj和tfsbuild.msp文件。 我在$/MyStuff/TeamBuildTypes/IncludeFiles/Common/test.xml中有一个目标文件。 test.xml包含一个覆盖BeforeGet任务的XML片段。MSBuild包含远程文件2008?
我试图把文件进入我tfsbuild.proj文件是这样的:因为它试图摆脱是遥远的相对路径的文件
<Import Project="$/MyStuff/TeamBuildTypes/IncludeFiles/Common/test.xml" />
构建失败。
我已经换了一点齿轮,现在正在尝试一个Exec任务,从TFS中将文件导入本地文件系统。
<Exec WorkingDirectory="$(SolutionRoot)" Command=""$(TF)" get "$/MyStuff/TeamBuildTypes/IncludeFiles/Common/test.xml" /version:W$(WorkSpaceName) /overwrite /force /noprompt /recursive" IgnoreExitCode="true" />
我不知道文件在哪里。我没有收到错误。我有权访问$(SolutionRoot)变量,但TeamBuildTypes文件夹高于文件系统中的那个文件夹。我怎样才能得到这个文件并将它用作当前构建任务的重写?
帮助?
谢谢!