Framework 1.1/2.0 Conflict

R

Rob Lorimer

I got someone to install Framework2.0 so they could test my excel addin.
Now other addins are not working :(

I did read an earlier post (I can't seem to find it) that mentioned
targeting a particular framework for an addin.

Can someone please refresh my memory on this. I'm targeting excel in
office2003.

Also, if there are 2 excel addins, one in framework1.1 and other in
framework2.0, how do we get them work as required.
 
J

Jens Thiel

Rob Lorimer said:
Also, if there are 2 excel addins, one in framework1.1 and other in
framework2.0, how do we get them work as required.

Let's hope that your 1.1 add-in runs flawlessly in 2.0 - it's impossible to
run 2 different framework versions inside the same process.

Regards,
Jens.
 
P

Peter Huang [MSFT]

Hi

Based on my experience, so far in one process(Operating System level), e.g.
the Excel process, we can only host one CLR version. That is why we have an
exe level app.config to specifie which .NET runtime we need.

<supportedRuntime> Element
Specifies which versions of the common language runtime the application
supports. This element should be used by all applications built with
version 1.1 or later of the .NET Framework.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/ht
ml/gnconSupportedRuntimeElement.asp

NOTE, the xml element is application based. So far you may try to use the
element in a app.config and change its name to excel.exe.config and put it
into where the excel.exe at.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top