【发布时间】:2012-01-26 09:12:37
【问题描述】:
以下是日志文件的副本
Creating directory "obj\Release\".
PreBuildEvent:
C:\Builds\2\box\IT\Sources\IT\jsmin\jsmin.exe
cwd is 'C:\Builds\2\box\IT\Binaries'
Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Builds\2\box\IT\Binaries\Shared\Javascript\Model\CModel_uncompressed.js'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path, Boolean append)
at System.IO.File.CreateText(String path)
at JsMin.Program.Main(String[] args) in Z:\downloads\JsMinTest\JsMinTest\JsMinConsole\Program.cs:line 52
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(902,9): error MSB3073: The command "C:\Builds\2\box\IT\Sources\IT\jsmin\jsmin.exe" exited with code -532459699. [C:\Builds\2\box\IT\Sources\IT\IT.vbproj]
Done Building Project "C:\Builds\2\box\IT\Sources\IT\IT.vbproj" (default targets) -- FAILED.
我检查了路径 jsmin.exe 在路径上。但是 TFS 没有创建共享目录,如以下链接中所述
C:\Builds\2\box\IT\Binaries\Shared\Javascript\Model\CModel_uncompressed.js.
请指导我所缺少的。
【问题讨论】:
-
所以
C:\Builds\2\box\IT\Binaries下面没有\Shared,对吧?您的CModel_uncompressed.js是否位于Binaries下的其他位置? -
是 否 \共享目录。并且也无法在二进制文件下找到该模型。
-
FYI -532459699 = 0xE0434F4D,这是 COM 结构化异常代码。
-
好吧,那就创建目录吧。预构建事件应该做得很好。
标签: visual-studio-2010 msbuild tfsbuild