C# 生成许可证.licx

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/602867/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 09:56:22  来源:igfitidea点击:

generating licenses.licx

c#visual-studio-2008licensinglicenses.licxemptylicenseslicx

提问by Steven Evers

I've got a bit of a problem. I'm moving my source repository from one machine to another, and in the process I'm doing some culling of what's stored as I've learned more about creating/managing a repository since I started.

我有点问题。我正在将我的源存储库从一台机器移动到另一台机器,在这个过程中,我正在对存储的内容进行一些剔除,因为我从一开始就学到了更多关于创建/管理存储库的知识。

The problem is that we're using dxperience tools from devexpress and it uses the .net license system (licenses.licx). Originally I had this license in the repository, and I'm hearingthat this isn't necessarily the best idea. So I haven't included it in the repository. But now, when I checkout the project from the repository on my machine (same machine that I was checking out to before the move), it's looking for the license file and not generating it as (I think) it should be.

问题是我们正在使用 devexpress 的 dxperience 工具,它使用 .net 许可证系统 (licenses.licx)。最初我在存储库中有这个许可证,我听说这不一定是最好的主意。所以我没有将它包含在存储库中。但是现在,当我从我的机器上的存储库中检出项目(我在移动之前检出的机器)时,它正在寻找许可证文件,而不是(我认为)应该生成它。

采纳答案by Bryan Sebastian

We have run into the same problem using Infragistics controls.

我们在使用 Infragistics 控件时遇到了同样的问题。

Our solution has been to keep a blank licnenses.licx file in our source repository (Source Gear Vault) and then change the properties of the file to Read Only false on our local workations. This way we do not end up stepping on each other with that file and it is generated with the proper keys off of our workstations.

我们的解决方案是在我们的源存储库(Source Gear Vault)中保留一个空白的 licnenses.licx 文件,然后在我们的本地工作中将该文件的属性更改为 Read Only false。通过这种方式,我们最终不会使用该文件相互干扰,并且它是使用我们工作站上的正确密钥生成的。

Of course this is a bit of a manual work around that may not be suitable for you, but that is how we have been doing it.

当然,这是一些手动工作,可能不适合您,但这就是我们一直在做的。

回答by Chris Ballance

This file should be compiled into your deployment assemblies automatically by having licenses.licx included as an embedded resource. Under the hood, Visual studio uses lc.exe to include this in your assemblies.

通过将 licenses.licx 作为嵌入式资源包含在内,此文件应自动编译到您的部署程序集中。在幕后,Visual Studio 使用 lc.exe 将其包含在您的程序集中。

http://www.atalasoft.com/kb/Article.aspx?id=10103

http://www.atalasoft.com/kb/Article.aspx?id=10103

回答by C. Augusto Proiete

Alternatively, you can install the EmptyLicensesLicxnuget package, and it will make sure there's an empty Licenses.licxin your project, before it gets compiled (which is all you need).

或者,您可以安装EmptyLicensesLicxnuget 包,它会Licenses.licx在编译之前确保您的项目中有一个空的(这就是您所需要的)。

回答by Nilesh Sarkale

  1. delete existing licence file
  2. solve all errors
  3. check properties of solution, DLL name, source name
  4. rebuild the project
  1. 删除现有的许可证文件
  2. 解决所有错误
  3. 检查解决方案的属性、DLL 名称、源名称
  4. 重建项目