首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >WIX错误LGHT0284 -完全限定名称太长的问题

WIX错误LGHT0284 -完全限定名称太长的问题
EN

Stack Overflow用户
提问于 2014-05-19 16:05:30
回答 1查看 1.4K关注 0票数 1

我有一个WiX安装程序问题。我有wix3.5,现在升级到wix3.8。我正在使用2013。一个TFS系统也安装了,我有构建服务器等。

当我在我的wix项目上的visual studio上运行一个构建时,它构建得很好。但是,当我在使用wix 3.8的构建服务器上运行构建时,我会得到一个错误。light.exe:命令行上指定的无效文件名:

代码语言:javascript
复制
obj\Release\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj.BindBuiltOutputsFileListen-us.txt

错误消息:

指定的路径、文件名或两者都太长。完全限定的文件名必须小于260个字符,目录名必须小于248个字符。

如果在构建服务器上卸载wix3.8并安装wix3.5,我将不会得到这个错误!它造得很好。但在wix3.8中,它失败了。更重要的是,我还有一个更长的wix安装程序项目(由两个字符组成),在构建服务器上构建得很好。只是这个特定的安装程序不想工作。完全错误是。

代码语言:javascript
复制
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上运行构建时传递的完整命令。

代码语言:javascript
复制
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)

有人能帮忙吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-05-19 16:56:58

缩短..wixproj名称的长度。WiX MSBuild目标使用中间文件的项目名称。这就是导致太长路径名的原因。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23742377

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档