Prevent ja/zh folders from being created

Posted by: johen on 26 August 2022, 12:10 am EST

    • Post Options:
    • Link

    Posted 26 August 2022, 12:10 am EST - Updated 30 September 2022, 6:11 am EST

    Hello. When I build my application with ActiveReports, it automatically creates the “ja”, “zh” and “zh-CN” folders in the output path. I suppose those are dlls with resources for those locations? They are not necessary in our case, so I was wondering if there is any way to prevent them from being created in the first place.

  • Posted 29 August 2022, 8:56 pm EST

    Hi João,

    The ja & zh folders contain the resource files for the Japanese and Chinese environment, to display the Designer, Report, etc in

    Japanese or Chinese. As far as the ja & zh folders are concerned, it is required for displaying

    localized viewers or reports on Japanese or Chinese environments.

    These resources are added from the NuGet Packages by Visual Studio automatically.

    As a workaround, you may use a Post-Build command to delete these files. To delete the ja and zh-CN folder you may add the following command in the Post-Build Event:

    RD /S /Q "$(TargetDir)ja\"
    RD /S /Q "$(TargetDir)zh-CN\"

    For more information on Post-Build commands, you may refer to the following pages of the Microsoft Documentation and the StackOverFlow forum:

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels