打包时TransformXml任务失败

时间:2013-04-01 14:59:57

标签: msbuild wix tfs2012 wix3.7

当我尝试在MSBuild中打包并构建解决方案时。

<Target Name="BeforeBuild">
    <MSBuild Projects="%(ProjectReference.FullPath)" Targets="Package" Properties="Configuration=$(Configuration);Platform=AnyCPU" Condition="'%(ProjectReference.WebProject)'=='True'" />
    <ItemGroup>
      <LinkerBindInputPaths Include="%(ProjectReference.RootDir)%(ProjectReference.Directory)obj\$(Configuration)\Package\PackageTmp\" />
    </ItemGroup>
</Target>

获得“TransformXml”任务失败错误。不确定如何修复它。

  Error 3   The "TransformXml" task failed unexpectedly.
    System.UriFormatException: Invalid URI: The URI is empty.
       at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
       at System.Uri..ctor(String uriString)
       at Microsoft.Web.Publishing.Tasks.TransformXml.Execute()
       at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
       at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets    1496    6   SCBUDirectMSI

0 个答案:

没有答案