我有一个WiX安装程序问题。我有wix3.5,现在升级到wix3.8。我正在使用2013。一个TFS系统也安装了,我有构建服务器等。
当我在我的wix项目上的visual studio上运行一个构建时,它构建得很好。但是,当我在使用wix 3.8的构建服务器上运行构建时,我会得到一个错误。light.exe:命令行上指定的无效文件名:
obj\Release\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj.BindBuiltOutputsFileListen-us.txt错误消息:
指定的路径、文件名或两者都太长。完全限定的文件名必须小于260个字符,目录名必须小于248个字符。
如果在构建服务器上卸载wix3.8并安装wix3.5,我将不会得到这个错误!它造得很好。但在wix3.8中,它失败了。更重要的是,我还有一个更长的wix安装程序项目(由两个字符组成),在构建服务器上构建得很好。只是这个特定的安装程序不想工作。完全错误是。
C:\B\522\GCF\Deploy.V1390.Connectors\Sources\V1390\CWW.ASG.GCF.Connectors\CWW.ASG.GCF.Connectors.sln" (default target) (1) ->
"C:\B\522\GCF\Deploy.V1390.Connectors\Sources\V1390\CWW.ASG.GCF.Connectors\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj" (default target) (46) ->
(Link target) ->
light.exe : error LGHT0284: Invalid file name specified on the command line: 'obj\Release\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj.BindBuiltOutputsFileListen-us.txt'. Error message: 'The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.' [C:\B\522\GCF\Deploy.V1390.Connectors\Sources\V1390\CWW.ASG.GCF.Connectors\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj]
534 Warning(s)
1 Error(s)下面是在visual studio 2013上运行构建时传递的完整命令。
C:\Program Files (x86)\WiX Toolset v3.8\bin\Light.exe
-out C:\B\522\GCF\Deploy.V1390.Connectors\Binaries\en-us\CWW.ASG.Connectors.AgentService.RemoteInstructionService.msi
-pdbout C:\B\522\GCF\Deploy.V1390.Connectors\Binaries\en-us\CWW.ASG.Connectors.AgentService.RemoteInstructionService.wixpdb
-v -cultures:en-us -ext "C:\Program Files (x86)\WiX Toolset v3.8\bin\\WixUtilExtension.dll"
-ext "C:\Program Files (x86)\WiX Toolset v3.8\bin\\WixNetFxExtension.dll"
-ext "C:\Program Files (x86)\WiX Toolset v3.8\bin\\WixIIsExtension.dll"
-loc ..\..\InstallersCommon\English.wxl
-sice:ICE80 -sice:ICE30
–contentsfile obj\Release\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj.BindContentsFileListen-us.txt
-outputsfile obj\Release\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj.BindOutputsFileListen-us.txt
-builtoutputsfile obj\Release\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj.BindBuiltOutputsFileListen-us.txt
-wixprojectfile C:\B\522\GCF\Deploy.V1390.Connectors\Sources\V1390\CWW.ASG.GCF.Connectors\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj obj\Release\Product.wixobj obj\Release\ConfigUpdate.wixobj obj\Release\ProjectOutput.wixobj obj\Release\ServiceConfiguration.wixobj (TaskId:1781)有人能帮忙吗?
发布于 2014-05-19 16:56:58
缩短..wixproj名称的长度。WiX MSBuild目标使用中间文件的项目名称。这就是导致太长路径名的原因。
https://stackoverflow.com/questions/23742377
复制相似问题