Better strategy for ActiveReports 14 nuget package management?

Posted by: snellcb on 9 December 2020, 8:09 am EST

  • Posted 9 December 2020, 8:09 am EST

    We maintain many different applications that share core libraries, including a shared library with common functions for AR reports. It was easy to sync AR versions between the core library and inheriting apps until AR 14 because of the Nuget updates.

    Now, it takes a lot of effort to keep inheriting app projects in sync with our core AR library (using VS 2019) because;
    1. there are many, many AR packages
    2. the packages are frequently updated, and
    3. trying to 'update all packages' never completes without failing on a dependency somewhere.

    Also, when an inheriting app needs to be updated to match the core AR library so it will compile, the AR packages for the app have to be updated to match the core AR library references rather than the latest AR packages. Otherwise, if we update the app to the latest packages, the core AR library becomes outdated and the whole cycle starts over again.

    As a result, doing piece-meal updates of every inheriting app project any time we update our core AR library is taking way more time than it should and can literally waste hours of time for updates that don't usually change anything in our app's reports.

    1. Is there a quick way to update AR to specific versions of each package? Perhaps a script for the Nuget package manager console rather than the Package Manager UI?

    2. Is it possible to reduce the number of packages in future releases of AR? It seems like most/all get installed when doing even a basic report anyway. This would also reduce assembly binding redirects for AR, of which there are almost 30 now in our app web.config files.

  • Marked as Answer

    Replied 9 December 2020, 6:19 pm EST

    Hello,

    I recommend you to upgrade the project using the "Converts to ActiveReport14" option to upgrade to latest Nuget after installing the latest installer on the system. If you need the installer of the latest version then you can ask us and we can provide the same to you.
    For now, you can download the latest installer from the following link:
    http://cdn.grapecity.com/ActiveReports/AR14/Hotfixes/ActiveReports-v14.2.20717.msi


    >>2. Is it possible to reduce the number of packages in future releases of AR?
    Actually, there are depend on each other on various functionality. We can't know which functionality user can use so it add the all dependent package in the project. However, You can try to delete the package from the package if you don't need the respective package in your project.

    Hope it helps.

    Thanks,
    Mohit
  • Replied 21 December 2020, 5:09 am EST

    I tried updating the installer, but running "Convert to ActiveReports 14" on a VS 2019 project that is already at v14 only updates the version numbers on the license.licx file and makes a few adjustments on .designer.cs and .resx files on existing section reports. No changes to outdated Nuget packages were made.

    Is there a way to quickly update AR14 Nuget packages without the packages failing on dependencies?






  • Replied 21 December 2020, 2:45 pm EST

    Hello,

    >>No changes to outdated Nuget packages were made.
    Can you please check after installing the latest version of the AR:
    http://cdn.grapecity.com/ActiveReports/AR14/Hotfixes/ActiveReports-v14.2.20743.msi.

    You need the latest installer to update to latest version of AR.

    Thanks,
    Mohit
Need extra support?

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

Learn More

Forum Channels