0
似乎MSbuild沒有很多關於如何從svn簽出項目並存儲並構建它的好文檔,我下載了MSbuild社區並且不知道代碼中的位置我做錯了。這裏是我的代碼示例MSBuild社區錯誤試圖檢出svn
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project=
"C:\Program Files (x86)\MSBuild\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
<Target Name="GetSource">
<Message Text="Checking out trunk into $(SourceDirectory)" />
<SvnCheckout RepositoryPath="https://server/svn/project"
LocalPath="C:\TestForm\TestSVN"
UserName="myUserName"
Password="myPassword">
<Output TaskParameter="Revision" PropertyName="Revision" />
</SvnCheckout>
<Message Text="Have got revision: $(Revision)"/>
</Target>
<Target Name="Build" DependsOnTargets="GetSource;" />
</Project>
我得到的錯誤,當我在命令行「的MSBuild」
這裏稱之爲是外觀的錯誤,如
c:\TestForm\LoadSVN.csproj(10,13): error MSB4018: The "S
vnCheckout" task failed unexpectedly.\r
c:\TestForm\LoadSVN.csproj(10,13): error MSB4018: System
.Exception: Could not find svn.exe. Looked in PATH locations and various commo
n folders inside Program Files.\r
c:\TestForm\LoadSVN.csproj(10,13): error MSB4018: at
MSBuild.Community.Tasks.Subversion.SvnClient.FindToolPath(String toolName)\r
c:\TestForm\LoadSVN.csproj(10,13): error MSB4018: at
MSBuild.Community.Tasks.Subversion.SvnClient.GenerateFullPathToTool()\r
c:\TestForm\LoadSVN.csproj(10,13): error MSB4018: at
Microsoft.Build.Utilities.ToolTask.ComputePathToTool()\r
c:\TestForm\LoadSVN.csproj(10,13): error MSB4018: at
Microsoft.Build.Utilities.ToolTask.Execute()\r
c:\TestForm\LoadSVN.csproj(10,13): error MSB4018: at
MSBuild.Community.Tasks.Subversion.SvnClient.Execute()\r
c:\TestForm\LoadSVN.csproj(10,13): error MSB4018: at
Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutio
nHost.Execute()\r
c:\TestForm\LoadSVN.csproj(10,13): error MSB4018: at
Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()