문제

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