在发布模式下使用包含license.licx的项目构建项目在Visual Studio 2015上引发``找不到文件''错误 [英] Building project in release mode with projects that contain license.licx throws 'could not find file' error on Visual Studio 2015

查看:337
本文介绍了在发布模式下使用包含license.licx的项目构建项目在Visual Studio 2015上引发``找不到文件''错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在发布模式下构建包含licenses.licx文件的项目.当我在Visual Studio 2015上构建时,出现以下错误:

I'm having trouble building my projects in Release mode that have licenses.licx files.  I get the error below when i build on Visual Studio 2015:

读取资源'< ProjectName> .dll.licenses'时出错-'找不到文件'< directory>< ProjectName> .dll.licenses'.'

Error reading resource '<ProjectName>.dll.licenses' -- 'Could not find file '<directory><ProjectName>.dll.licenses'.'


推荐答案

您好,PolyBSCoder,

Hi PolyBSCoder,

它适用于以前的VS版本吗?

Does it work for previous VS versions?

据我所知,当VS构建项目时,Lc.exe将检测作为项目的嵌入资源工作的licenses.licx文件,然后生成提供许可证支持的.licenses文件.然后,此.licenses文件将是 嵌入到项目的输出程序集中.根据您的描述,Lc.exe无法生成.licenses文件.因此,请确保licenses.licx在项目的属性中,并设置为Embeded Resource.默认情况下,当您使用某些许可控制时, VS会自动为我们创建.licx文件.

As far as I know, when VS is building the project, Lc.exe will detect the licenses.licx files that work as the embeded resource of the project, then generate .licenses file which provides support for licensing. This .licenses file will then be embeded into the project's output assembly. As per your description, the Lc.exe failed to generate the .licenses file. So make sure the licenses.licx is in the project's properties and set to Embeded Resource. By default, when you use some licensing controls, VS will automatically create the .licx file for us.


这篇关于在发布模式下使用包含license.licx的项目构建项目在Visual Studio 2015上引发``找不到文件''错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆