Vlad
Vlad

Reputation: 2165

How to clear/remove file licenses.licx

I'm removing dependency to some component from solution. Some C# projects in their directory contain file licenses.licx and have reference to this file in their text csproj representation. Most of licenses.licx reference only component I'm removing from solution. How to clean this referenses:

Upvotes: 3

Views: 7753

Answers (3)

alireza ghasemi
alireza ghasemi

Reputation: 1

There is a very simple way to get rid of "Licenses.licx" annoying compile error. Just change the "Licenses.licx" Build Action to "None" through "Properties" window.

Upvotes: 0

C. Augusto Proiete
C. Augusto Proiete

Reputation: 27868

Alternatively, you can install the EmptyLicensesLicx nuget package, and it will make sure your Licenses.licx is always empty before it gets compiled.

Upvotes: 9

competent_tech
competent_tech

Reputation: 44941

The easiest thing to do is show all files in the project within visual studio. When you do this, the .licx file will be shown.

Double-clicking on it will open it in a text editor, so you can make any changes that you need to.

You can also just delete it from the visual studio solution explorer if you need to (clearing all of the entries in the previous step would have the same effect).

Upvotes: 2

Related Questions