2010-01-20 2 views
0

나는 cc.net과 함께 사용할 스크립트가 있습니다. 하지만 지금은 RepositoryPath 특성에 문제가 있습니다.MSBuild (MSBuildCommunityTasks 사용)의 SvnInfo 문제

<?xml version="1.0" encoding="utf-8"?> 
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" 
    ToolsVersion ="3.5"> 
    <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" /> 

    <Target Name="RemoteInfo"> 
    <SvnInfo RepositoryPath="http://msbuildtasks.tigris.org/svn/msbuildtasks/trunk/Master.proj"> 
     <Output TaskParameter="RepositoryPath" PropertyName="RepositoryPath" /> 
     <Output TaskParameter="RepositoryRoot" PropertyName="RepositoryRoot" /> 
     <Output TaskParameter="LastChangedAuthor" PropertyName="LastChangedAuthor" /> 
     <Output TaskParameter="LastChangedRevision" PropertyName="LastChangedRevision" /> 
     <Output TaskParameter="LastChangedDate" PropertyName="LastChangedDate" /> 
     <Output TaskParameter="Schedule" PropertyName="Schedule" /> 
     <Output TaskParameter="NodeKind" PropertyName="NodeKind" /> 
     <Output TaskParameter="RepositoryUuid" PropertyName="RepositoryUuid" /> 
    </SvnInfo> 
    <Message Text="RepositoryRoot: $(RepositoryRoot)" /> 
    <Message Text="RepositoryPath: $(RepositoryPath)" /> 
    <Message Text="LastChangedAuthor: $(LastChangedAuthor)" /> 
    <Message Text="LastChangedRevision: $(LastChangedRevision)" /> 
    <Message Text="LastChangedDate: $(LastChangedDate)" /> 
    <Message Text="Schedule: $(Schedule)" /> 
    <Message Text="NodeKind: $(NodeKind)" /> 
    <Message Text="RepositoryUuid: $(RepositoryUuid)" /> 
    </Target> 
</Project> 

명령 행 :

D:\Test>msbuild test.build /target:RemoteInfo 

대답은 다음 스크립트 (MSBuildCommunityTask에서 샘플 스크립트의 추출물은) 나에게 문제를주고있다으로 번역 될 수

D:\_SolutionTrunk\build\test.build(7,2): error MSB6001: Ungültiger Befehlszeilenschalter für "svn.exe". Illegales Zeichen im Pfad. 

: "svn.exe"에 대한 명령 줄 스위치가 잘못되었습니다. 경로상의 불법 문자. 물론

실제로 나는 RepositoryPath = "https로 내 스크립트하여 SvnCheckout 작업을 사용합니다 : //mySvnServer.myIntranet.myDomain : 8443/SVN/저장소/someName/트렁크

난 항상 같은 오류에 직면하고있다.

답변

3

문제가 해결!

에 MSBuildCommunityTask, 명령 줄 스와의 위치를 ​​임의의 서브 작업을 사용하여 bversion (svn.exe)은 PATH -Variable에서 찾았습니다. 내 컴퓨터에서

내가 오류를 오해 , 나는 잘못된 문자가 RepositoryPath에서라고 생각 ("). 이것은 ... 경로에 오류 문자가,라는 예외를 슬로우 불법 문자였다 - 기여.

+0

나는 또한이 문제가 있었고 그것은 똑같은 것이었다. 신비가 풀렸다. –