If all I want to use is the default culture/language "en-US", why is it necessary for all the other culture/languages to be copied into the bin directory?
So how to turn off that automatic copying in Kendo.Mvc?
11 Answers, 1 is accepted
Copying localization resources to the output folder is a standard behavior for assemblies which support localization. When you create a Telerik UI for ASP.NET MVC VIsual Studio project there is by default four references to assemblies which support localization and copy such folders and these are:
- Kendo.Mvc
- Microsoft.Data.OData
- Microsoft.Data.Edm
- System.Spatial
(The last three assemblies are part of Microsoft ASP.NET Web API OData package)
If you really don't want these localization folders copied you can follow these steps to delete the localization resources folders for each referenced assembly:
- Get the path to the assembly by looking in the properties of the reference to this assembly in your project.
- Navigate to this path. You will see the assembly and many folders containing localization resources for each language.
- Delete these localization resources folders.
I hope this will help you.
Regards,
Momchil
Telerik
Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

The desired behavior is in fact "not supporting localization" and "no more copying of the localization resources to the bin folder".
There should be a simple flag - boolean switch - to turn on or off copying of localization resources to the bin folder.
Then we can use localization resources when we do or do not want in an easy manner controlled by a simple switch.
I understand your point and I agree that such an option could be useful but this is the current behavior of the Visual Studio with localized assemblies.
Regards,
Momchil
Telerik
Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

Has there been an update on this matter of suppressing auto-copy of language resources?
Any simple switch or property setting to turn it on or off?
Hi Carl,
We have not implemented any feature that would allow clients to choose whether to include language resources in the output folder. As this is controlled by MSBuild the following custom target could be included in the application's .csproj file as a workaround so that resources are removed:
<Target Name="RemoveSatelliteAssemblies" AfterTargets="ResolveAssemblyReferences">
<ItemGroup>
<ReferenceCopyLocalPaths Remove="@(ReferenceSatellitePaths)" />
</ItemGroup>
</Target>
Have in mind that ReferenceSatellitePaths is an item group output from the ResolveAssemblyReferences target and may include more than the language resources. Please use the above-stated custom target with extreme caution and create a backup for your project.
In the meantime, I have logged an item in our backlog about the option to choose to suppress the language resources or not. It would be prioritized and implemented based on your feedback and such from other users. Therefore I ask for your patience.
If you have any other questions, please get back to us.
Regards,
Nikola
Progress Telerik

Hello Robert,
I was unable to understand which assemblies you were referring to. Would you perhaps elaborate more on any suggestions you may have on improving the feature?
I am looking forward to your reply.
Regards,
Nikola
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/.

Hello Robert,
Thank you for the clarification and the suggestion. I have logged an item in our backlog for this change. We will discuss it with the team developing UI for ASP.NET MVC product and plan the improvement for one of the future releases.
In case you have any further suggestions or questions do not hesitate to get back to us.
Regards,
Nikola
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/.

Hello Carl,
We will discuss with the team developing UI for ASP.NET Core/MVC whether there are any other clients enquiring about this feature. Based on that we could increase the priority of this item. For the time being it is still in the backlog, because there is no free capacity in the planned releases.
In case you have any other questions please get back to us.
Regards,
Nikola
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/.
So it's now been 8 years since my initial inquiry....
Any news on this issue with an update on when we might expect this simple feature?
Hello, Carl
We have this functionality in our pipeline. It is included in the planning for R1 2023 and we will research the options for including only the required files in the generated templates.
So now there is R1 2023.
how can i prevent Localization folders to be copied to publish folder ?
im using Telerik.UI.for.AspNet.Core 2023.1.314
Thanx
Hello,
We have added the option to choose whether to enable Localization when creating a new project through the New Project Wizard in Telerik UI for ASP.NET Core VS Extension.
We have planned the implementation of a feature to choose which localization files to include in the project, but this was pushed to R3 2023, so it is expected at the end of the year.
If you refer to something else, please get back to us for further assistance.
<PropertyGroup>
<SatelliteResourceLanguages>en-US</SatelliteResourceLanguages>
</PropertyGroup>