2012-01-26 2 views
1

에서 구축하는 동안 점점 내가 경로 jsmin.exe을 확인했다는 명령 코드로 종료 -532459699 다음 TFS

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. 

경로에있는 로그 파일의 복사본입니다. 다음 링크에서 언급 한 것처럼 TFS에서 공유 디렉터리를 만들지는 않습니다.

C:\Builds\2\box\IT\Binaries\Shared\Javascript\Model\CModel_uncompressed.js. 

Plz 가이드 내가 누락 된 부분은 무엇입니까?

+0

그래서 'C : \ Builds \ 2 \ box \ IT \ Binaries'에'\ Shared'가 없습니다. 맞습니까? 'CModel_uncompressed.js'는'Binaries' 아래에 있습니까? – pantelif

+0

예 아니요 \ 공유 디렉토리입니다. 또한 바이너리에서도 해당 모델을 찾을 수 없습니다. – sam

+0

FYI -532459699 = 0xE0434F4D는 COM 구조화 된 예외 코드입니다. – Rup

답변

0

정확하게 이해한다면 C:\Builds\2\box\IT\Sources\..\Model\*.js입니다.
그런 다음 "C : \ Builds \ 2 \ box \ IT \ Binaries .."에서이 * .js를 축소하려고합니다. 파일을 사용할 수 없으므로 실패합니다.

한 가지 방법은 VStudio에서 * .js의 속성을 변경하는 것입니다. 솔루션 탐색기에서 마우스 오른쪽 버튼을 클릭하고 '속성'을 선택한 다음 '출력 디렉토리로 복사'를 '항상 복사'로 설정하십시오. TFS 빌드 중에이 파일을 바이너리 디렉터리에 전달해야합니다.

또 다른 아이디어는 \Sources 디렉토리에 직접 minifier를 시행하는 것입니다 (cwd를 C:\Builds\2\box\IT\Sources\Shared으로 설정하십시오).
이 후자는 나에게 더 합리적인 것처럼 보입니다. 여전히 조심성을 기울이지 않았습니다.

+0

시도했지만 첫 번째 옵션을 여전히 동일한 결과. 바이너리 아래에 공유 폴더를 만들지 않고 다음에 수동으로 만들면 더 이상 존재하지 않게됩니다. 수행 방법을 이해할 수 없으므로 나중에 알 필요가 없습니다. – sam

+0

cwd를 C : \ Builds \ 2 \ box \ IT \ Sources \ Shared로 설정하는 방법 – sam

+0

* .csproj에서 솔루션 탐색기를 마우스 오른쪽 버튼으로 클릭하고 'Properties'를 선택한 다음 'Build Events'로 이동하십시오. "Pre-build event command line"아래에있는 현재 항목이 무엇인지 공유해 주실 수 있습니까? – pantelif