Wix安装程序生成失败:错误CNDL0103:系统找不到该文件

时间:2014-05-21 11:07:31

标签: c# visual-studio-2012 wix

我正在尝试创建一个Wix CustomActions程序集,以便在我的VS2012 c#解决方案的msi安装时设置安装程序属性。在IDE中,当我右键单击并构建Web服务的安装程序(OU.Curriculum.ProductService)时,我收到以下错误:

The system cannot find the file 'obj\Debug\VantageInstallerCustomActions_Generated.wxs' with type 'Source'. candle.exe OU.Curriculum.ProductService.Installer

构建输出的最后几行显示以下内容:

2>  C:\Program Files (x86)\WiX Toolset v3.8\bin\Heat.exe dir O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\OU.Curriculum.ProductService\obj\Debug\Package\PackageTmp\ -cg OU.Curriculum.ProductService_Generated -dr INSTALLFOLDER -scom -sreg -srd -var var.OU.Curriculum.ProductService_Generated.Target -gg -sfrag -t O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\OU.Curriculum.ProductService.Installer\WsxExcludeWebConfig.xslt -out obj\Debug\OU.Curriculum.ProductService_Generated.wxs
2>  C:\Program Files (x86)\WiX Toolset v3.8\bin\Heat.exe project O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\OU.Curriculum.ProductService\OU.Curriculum.ProductService.csproj -configuration Debug -directoryid INSTALLFOLDER -platform AnyCPU -pog Binaries -pog Symbols -pog Sources -pog Content -pog Satellites -pog Documents -projectname OU.Curriculum.ProductService -ag -sfrag -out obj\Debug\_OU.Curriculum.ProductService.wxs
2>  C:\Program Files (x86)\WiX Toolset v3.8\bin\candle.exe -dVantageInstallerCustomActions_Generated.Target=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\VantageInstallerCustomActions\obj\Debug\Package\PackageTmp\ -d"DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\\" -dSolutionDir=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\ -dSolutionExt=.sln -dSolutionFileName=OU.Curriculum.Products.sln -dSolutionName=OU.Curriculum.Products -dSolutionPath=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\OU.Curriculum.Products.sln -dConfiguration=Debug -dOutDir=bin\Debug\ -dPlatform=x86 -dProjectDir=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\OU.Curriculum.ProductService.Installer\ -dProjectExt=.wixproj -dProjectFileName=OU.Curriculum.ProductService.Installer.wixproj -dProjectName=OU.Curriculum.ProductService.Installer -dProjectPath=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\OU.Curriculum.ProductService.Installer\OU.Curriculum.ProductService.Installer.wixproj -dTargetDir=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\OU.Curriculum.ProductService.Installer\bin\Debug\ -dTargetExt=.msi -dTargetFileName=OU.Curriculum.ProductService.Installer.msi -dTargetName=OU.Curriculum.ProductService.Installer -dTargetPath=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\OU.Curriculum.ProductService.Installer\bin\Debug\OU.Curriculum.ProductService.Installer.msi -dOU.Curriculum.ProductService.Configuration=Debug -d"OU.Curriculum.ProductService.FullConfiguration=Debug|AnyCPU" -dOU.Curriculum.ProductService.Platform=AnyCPU -dOU.Curriculum.ProductService.ProjectDir=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\OU.Curriculum.ProductService\ -dOU.Curriculum.ProductService.ProjectExt=.csproj -dOU.Curriculum.ProductService.ProjectFileName=OU.Curriculum.ProductService.csproj -dOU.Curriculum.ProductService.ProjectName=OU.Curriculum.ProductService -dOU.Curriculum.ProductService.ProjectPath=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\OU.Curriculum.ProductService\OU.Curriculum.ProductService.csproj -dOU.Curriculum.ProductService.TargetDir=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\OU.Curriculum.ProductService\bin\ -dOU.Curriculum.ProductService.TargetExt=.dll -dOU.Curriculum.ProductService.TargetFileName=OU.Curriculum.ProductService.dll -dOU.Curriculum.ProductService.TargetName=OU.Curriculum.ProductService -dOU.Curriculum.ProductService.TargetPath=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\OU.Curriculum.ProductService\bin\OU.Curriculum.ProductService.dll -dVantageInstallerCustomActions.Configuration=Debug -d"VantageInstallerCustomActions.FullConfiguration=Debug|x86" -dVantageInstallerCustomActions.Platform=x86 -dVantageInstallerCustomActions.ProjectDir=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\VantageInstallerCustomActions\ -dVantageInstallerCustomActions.ProjectExt=.csproj -dVantageInstallerCustomActions.ProjectFileName=VantageInstallerCustomActions.csproj -dVantageInstallerCustomActions.ProjectName=VantageInstallerCustomActions -dVantageInstallerCustomActions.ProjectPath=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\VantageInstallerCustomActions\VantageInstallerCustomActions.csproj -dVantageInstallerCustomActions.TargetDir=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\VantageInstallerCustomActions\bin\Debug\ -dVantageInstallerCustomActions.TargetExt=.dll -dVantageInstallerCustomActions.TargetFileName=VantageInstallerCustomActions.dll -dVantageInstallerCustomActions.TargetName=VantageInstallerCustomActions -dVantageInstallerCustomActions.TargetPath=O:\TFS\Vantage\Curriculum\source\OU.Curriculum.Products-Release2.1-Dev-Violet\VantageInstallerCustomActions\bin\Debug\VantageInstallerCustomActions.dll -out obj\Debug\ -arch x86 -ext "C:\Program Files (x86)\WiX Toolset v3.8\bin\\WixUtilExtension.dll" -ext "C:\Program Files (x86)\WiX Toolset v3.8\bin\\WixIIsExtension.dll" obj\Debug\VantageInstallerCustomActions_Generated.wxs Product.wxs obj\Debug\Product.Generated.wxs obj\Debug\_OU.Curriculum.ProductService.wxs
2>candle.exe(0,0): error CNDL0103: The system cannot find the file 'obj\Debug\VantageInstallerCustomActions_Generated.wxs' with type 'Source'.
2>Done building project "OU.Curriculum.ProductService.Installer.wixproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 6 up-to-date, 0 skipped ==========

这是我的解决方案设置: Solution Setup

我正在努力理解为什么" VantageInstallerCustomActions_Generated.wxs"正在请求并导致错误,因为我没有包含它。我可以在输出中看到它,但不知道是什么导致它被添加到candle.exe cmd行。有任何想法如何删除它?

更新:我相信它可能与我的OU.Wix.targets文件有关:

<Project
  xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Target Name="BeforeBuild">
    <MSBuild Projects="%(ProjectReference.FullPath)" 
             Targets="Package"
             Properties="Configuration=$(Configuration);Platform=AnyCPU"
             Condition="'%(ProjectReference.WebProject)'=='True'" />
    <PropertyGroup>
      <DefineConstants>%(ProjectReference.Filename)_Generated.Target=%(ProjectReference.RootDir)%(ProjectReference.Directory)obj\$(Configuration)\Package\PackageTmp\;</DefineConstants>
      <CompilerAdditionalOptions>$(IntermediateOutputPath)%(ProjectReference.Filename)_Generated.wxs</CompilerAdditionalOptions>
      <LinkerAdditionalOptions>$(IntermediateOutputPath)%(ProjectReference.Filename)_Generated.wixobj</LinkerAdditionalOptions>
    </PropertyGroup>
    <HeatDirectory OutputFile="$(IntermediateOutputPath)%(ProjectReference.Filename)_Generated.wxs"
                   Directory="%(ProjectReference.RootDir)%(ProjectReference.Directory)obj\$(Configuration)\Package\PackageTmp\"
                   Transforms="$(MSBuildProjectDirectory)\WsxExcludeWebConfig.xslt"
                   DirectoryRefId="INSTALLFOLDER"
                   ComponentGroupName="%(ProjectReference.Filename)_Generated"
                   AutogenerateGuids="false"
                   GenerateGuidsNow="true"
                   SuppressCom="true"
                   SuppressFragments="true"
                   SuppressRegistry="true"
                   SuppressRootDirectory="true"
                   ToolPath="$(WixToolPath)"
                   Condition="'%(ProjectReference.WebProject)'=='True'"
                   PreprocessorVariable="var.%(ProjectReference.Filename)_Generated.Target"
                   />
  </Target>
</Project>

0 个答案:

没有答案