tmsh
tmsh

Reputation: 71

Cluttering lic files after migrating csproj files to sdk style

I am migrating some csproj files from the old style to the new SDK style for an old solution.After migrating, I found some lic files appearing within the projects, which were not seen in the solution explorer before. Take one project for instance:

cuttering lic files found in project

When I inspect the properties of the file, it looks like this: properties of a lic file

My question is: why do they appear in the solution explorer after migrating the csproj file? Is there a way to "hide" them so that the solution explorer doesn't look so cluttered?

Upvotes: 0

Views: 56

Answers (1)

Wenbin Geng
Wenbin Geng

Reputation: 3688

This is because your original wpf program contains various third-party components, and each component has a corresponding license file in the bin folder, but you may omit the bin folder during the migration process, resulting in .lic The file appears in solution explorer. This is the .lic file you see.

Since you didn't provide the format of your csproj file migration, if you make sure it's correct right click on the .lic file and click properties, then set Copy to output directory to Copy Always. Finally rebuild the project.

Upvotes: 0

Related Questions