licenses.licx missing

14.1k Views Asked by At

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?

5

There are 5 best solutions below

0
On BEST ANSWER

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

0
On
  1. go to properties folder of that project
  2. create new text file.
  3. rename it to licenses.licx
  4. hit f5
1
On

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,

0
On

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.

0
On

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.