This is a migrated thread and some comments may be shown as answers.

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

1 Answer 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dmytro
Top achievements
Rank 1
Dmytro asked on 08 Oct 2015, 08:33 AM

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 :-(.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 12 Oct 2015, 01:24 PM
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
Tags
General Discussions
Asked by
Dmytro
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or