【问题标题】:msbuild community task and Svn commitmsbuild 社区任务和 Svn 提交
【发布时间】:2009-04-23 17:43:47
【问题描述】:

我目前正在使用 tigris 开源项目 MSBuild 社区任务,但在使用 SvnCommit 任务时遇到了一些问题。 我真的不知道如何使用 Targets 属性 我的项目中有这一行:

<SvnCommit Username="myName" Password="myPsswd" LocalPath="$(myPath)" ToolPath="$(SvnPath)" Targets="myFile.zip"/>

我有一个错误:“c:\blabla”——它是 $(myPath) 的一部分——不是工作副本; svn : 无法打开文件'c:\blabla.svn\Entries"

如果有人有一些想法,欢迎他们!

也许我使用 RepositoryPath 属性?

【问题讨论】:

    标签: svn msbuild


    【解决方案1】:

    好的,我发现了我的问题,我真的为这个网站上的噪音道歉。顺便说一句,如果它可以帮助遇到相同pb的人......

    所以问题出在我的“目标”属性上!我不得不使用 ItemGroup : 所以我在我的项目中添加了以下几行

    <ItemGroup>
      <ToCommit Include="$(myPath)/myFile.zip" />
    </ItemGroup>
    

    并更改了任务:

    <SvnCommit Username="myName" Password="myPsswd" LocalPath="$(myPath)" ToolPath="$(SvnPath)" Targets="@(ToCommit)"/>
    

    【讨论】:

      猜你喜欢
      • 2012-01-09
      • 1970-01-01
      • 2011-04-15
      • 1970-01-01
      • 2011-11-02
      • 1970-01-01
      • 2011-11-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多