Prevent Language Subfolders #978
-
Is there a way to prevent the Language Localization Subfolders when compiling in .net Framework 4.6.2? (VS community 2022) my program only needs to worry about english, the compiler still creates de, es, fr, it, pl, ru, zh-cn, zh-hant subfolders in bin\ when copylocal is true on the Task Scheduler Managed Wrapper reference Thank you for a great library! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I have never found a way with project settings or msbuild options. However, you can use a post-build event that deletes all the subfolders. |
Beta Was this translation helpful? Give feedback.
-
Thank you David, that’s a good idea,
The workaround I used was to delete the subfolders in the nuget package reference folder.
|
Beta Was this translation helpful? Give feedback.
-
Is it safe to delete the language subfolders or exclude them when compiling a distributable setup? Also, how are these languages brought into use if they are needed? Meaning, are these languages auto-selected by the library depending upon the user's regional settings or do I have to manually specify which language to use? Thanks for the excellent library, its has definitely made scheduled task management an easy job. |
Beta Was this translation helpful? Give feedback.
I have never found a way with project settings or msbuild options. However, you can use a post-build event that deletes all the subfolders.