Вопрос

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?

Это было полезно?

Решение 3

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

Другие советы

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.

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,

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.

  1. go to properties folder of that project
  2. create new text file.
  3. rename it to licenses.licx
  4. hit f5
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top