How to clean / delete the license.licx file

I am removing the dependency on some component from the solution. Some C # projects contain a license.licx file in their directory and have a link to that file in the csproj text view. Most of the .licx licenses only reference the component I am removing from the solution. How to clean these references:

  • removing the license.licx file from both projects (how to do this through VS GUI? I can't find in the GUI how to select license.licx) and control the source;
  • link to the link string in license.licx and leave empty .licx licenses under project and source control.
+4


source to share


3 answers


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

Double clicking on it will open it up in a text editor so you can make any changes you need.



You can also simply remove it from the visual studio solution explorer if you need to (clearing all entries in the previous step will have the same effect).

+2


source


Alternatively you can install the EmptyLicensesLicx nuget package and it will make sure yours is Licenses.licx

always empty before it gets compiled.



+3


source


There is a very easy way to get rid of the annoying "Licenses.licx" compilation error. Just change the build action "Licenses.licx" to "None" in the Properties window.

0


source







All Articles