3

I have recently recovered my lost files and in my C# project, it seems "licenses.licx" file has been gone.

This is the VS error:

"Could not find file 'C:...\Exam\Properties\licenses.licx'"

How can I fix this error and regenerate "licenses.licx" file?

C. Augusto Proiete
  • 24,684
  • 2
  • 63
  • 91
Sepehr Behroozi
  • 1,780
  • 1
  • 17
  • 32
  • Does this help: http://stackoverflow.com/questions/51363/how-does-the-licenses-licx-based-net-component-licensing-model-work – rene Apr 09 '14 at 18:28

5 Answers5

10

Just exclude any licenses.licx from your project. To exclude a file, find the file in solution explorer and right-click on it, choose "Exclude From Project". done.

Masoud Kazemi
  • 196
  • 2
  • 3
3

It seems that the cause of problem is that the licenses.licx file is included in the project. So, I suggest that you exclude it from the application to avoid this problem. Right-click on this file in the project tree and select the 'Exclude From Project' menu item. Thanks,

Hossein Oraee
  • 229
  • 1
  • 5
2

Just create another project and copy your existing code to it.

Majid
  • 13,853
  • 15
  • 77
  • 113
Sepehr Behroozi
  • 1,780
  • 1
  • 17
  • 32
1

Alternatively, you can install the EmptyLicensesLicx nuget package, and it will make sure there's an empty Licenses.licx in your project, before it gets compiled.

C. Augusto Proiete
  • 24,684
  • 2
  • 63
  • 91
1
  1. go to properties folder of that project
  2. create new text file.
  3. rename it to licenses.licx
  4. hit f5
bh_earth0
  • 2,537
  • 22
  • 24