Remove unused Telerik .dll files from bin folder

4 Answers 85 Views
General Discussions
Jana
Top achievements
Rank 2
Iron
Iron
Iron
Jana asked on 22 Feb 2022, 01:48 PM

Hello, 

I have a Telerik WinForms project in Visual Studio Professional 2022 and I'm using only a few different Telerik controls. Nevertheless, with each build I have many Telerik .dlls in my bin folders of controls I'm actually not using in my project. How can I remove these unused files? They're not referenced in my project.

Thank you in advance and have a nice day!

Jana

4 Answers, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Feb 2022, 09:56 AM

Hello, Jana,

Thank you for specifying that you are using .NET 6 and the UI.for.WinForms.AllControls.Net60 NuGet package is installed on your end. 

Indeed, when the AllControls Nuget package is installed, after rebuilding all the references that are packed in the Nuget will appear in the Bin folder:

If you want to avoid this behavior, feel free to uninstall the UI.for.WinForms.AllControls.Net60 NuGet package and install each separate Nuget package for the necessary reference:

Thus, after rebuilding only a few assemblies will be available in the Bin folder:

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Feb 2022, 10:31 AM

Hello, Jana,

Usually, the Bin folder contains these Telerik .dlls that are added as references in your project and the CopyLocal flag is true. It is weird if you have more Telerik assemblies in the Bin folder after Clean and Rebuild.

I have tested this behavior on my end and only the referred ones are present:

Do you have any Telerik NuGet packages installed? If yes, which one?

I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Jana
Top achievements
Rank 2
Iron
Iron
Iron
answered on 24 Feb 2022, 10:47 AM

Hello Dess, 

 

Thank you for your reply. I rechecked my references and I only use a few

In my bin folder I have 60 Telerik .dlls. I've already tried to delete them from the folder but with each build they're coming back. I indeed use a Telerik NuGet package, it's  UI.for.WinForms.AllControls.Net60

I'm using VS 2022 and I recently migrated my project from .NET 4.7 to .NET 6

0
Jana
Top achievements
Rank 2
Iron
Iron
Iron
answered on 28 Feb 2022, 01:14 PM

Hello Dess,

 

I would like to confirm that your proposed solution works for me. I've added all the necessary NuGet Packages of the Telerik components I'm using and this removed all unused .dlls in the bin folders.

 

Thank you again for your help!

Tags
General Discussions
Asked by
Jana
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Jana
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or