Use a wildcard for "version" in <AssemblyReferences />

2 posts, 0 answers
  1. Dmytro
    Dmytro avatar
    11 posts
    Member since:
    May 2014

    Posted 08 Oct 2015 Link to this post

    Hi all,

    have an assembly with some user-defined functions. To use it in our another project (and in VS designer) i had to add this snippet to my config(s):

     

        <Telerik.Reporting>

            <AssemblyReferences>
                <add name="MyAssemblyName" version="1.0.0.0" culture="neutral" publicKeyToken="null" />
            </AssemblyReferences>
        </Telerik.Reporting>​

     

    All this worked fine until we decided to have real version numbers for all assemblies in our solution. So, one day, we replaced

    [assembly: AssemblyVersion("1.0.0.0")]

    with

    [assembly: AssemblyVersion("1.0.*")]

     in the AssemblyInfo.cs file of MyAssemblyName project. Now Telerik Reporting cannot resolve MyAssemblyName because of the wrong version number.

     

    So, my question is: is there any way to have an AssemblyReference without specifying the exact version number?

    Thanks in advance.

     

    P.S. I've tried omitting "version" altogether, specifying version ranges, wildcards etc. Nothing helps :-(.

     

     

     
  2. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 12 Oct 2015 Link to this post

    Hello Dmitry,

    The following configuration of the Standalone Designer tool (version 9.2.15.930) allows us to load the assembly regardless its version attribute (only by name):
    <Telerik.Reporting>
        <AssemblyReferences>
            <add name="MySignedAssembly1" />
        </AssemblyReferences>
    </Telerik.Reporting>
    Note that the external assembly must be copied in the execution folder of the application in order to be loaded.

    If you need further help, please elaborate what version of Telerik Reporting is in use, and what are the assembly settings.

    Regards,
    Stef
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top