TFS 构建中的 Wix 项目错误
我正在构建一个包含 Team Foundation Server (TFS 2010) 上的 Wix v3.6 项目的解决方案。该解决方案还包含一些其他类库项目。 TFS 构建失败,并出现以下错误:
light.exe:错误 LGHT0103:系统找不到类型为“”的文件“Path\ assembly.dll”。
我已经检查了相关文件(Assembly.dll),并且它确实存在于给定路径中。有问题的文件实际上是解决方案中另一个项目的输出。除了这个文件之外,wix 项目在同一路径位置还成功找到了其他文件。
有人能告诉我为什么会发生这种情况吗?
I am building a solution that contains a Wix v3.6 project on Team Foundation Server (TFS 2010). The solution also contains some other class library projects. The TFS build is unsuccessful with the following error:
light.exe : error LGHT0103: The system cannot find the file 'Path\assembly.dll' with type ''.
I have checked that the file (assembly.dll) in question and it does exists at the given path. The file in question is actually the output of another project in the solution. Apart from this file there are other files that are successfully found by wix project in the same path location.
Can somebody tell me why is this happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能的原因可能是由于文件路径“Path\ assembly.dll”的字符数较大,因为 light.exe 仅支持最多 255 个(或 155 个字符,不确定)字符。
您可以将压缩更改为 no,如 中的compressed=no。这将在输出路径中创建一些包含依赖文件和安装程序的文件夹。
如果可能的话,尝试为您在构建服务器上使用的 buildoutput 和 dropfolders 提供更短的名称,并压缩为“yes”
The possible reason could be due to file path 'Path\assembly.dll' will be larger in characters as light.exe support max 255 (or 155 char not sure) characters only.
You can change compressed to no as compressed=no in . This will create some folders with dependent file along with installer in output path.
If possible try to give shorter name to buildoutput and dropfolders that you are using at build server with compressed="yes"