How to prevent ActiveReports 17 to create "jp", "zh" resource folders on build

Posted by: marlon.assef on 7 February 2023, 12:49 pm EST

    • Post Options:
    • Link

    Posted 7 February 2023, 12:49 pm EST - Updated 7 February 2023, 12:54 pm EST

    Hi all.

    I installed Active Reports 17 on our software and after building I noticed the localization folders for Japanese and Chinese languages “jp”, zh" and “zh-CH”.

    What should I do to prevent Active Reports 17 from creating those folders?

    Thanks a lot.

  • Posted 7 February 2023, 6:20 pm EST

    Hi Marlon,

    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\"
    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:

    Regards,

    Anand

  • Posted 8 February 2023, 9:12 am EST

    The workaround works fine.

    However, I suggest you find a way to not add those files in the build.

    Thank you for the information, much appreciated.

  • Posted 8 February 2023, 7:59 pm EST

    Hi Marlon,

    We have escalated your suggestion to our development team [Ticket ID: AR-30232] and will update you if we have any information on the same.

    Regards,

    Anand

  • Posted 25 April 2023, 7:59 pm EST

    Hi Marlon,

    The developers have suggested that you can prevent these folders from being created by using the ‘SatelliteResourceLanguages’ property.

    You can refer to the following dotnet issue for the same: https://github.com/dotnet/sdk/issues/774

    Regards,

    Anand

Need extra support?

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

Learn More

Forum Channels