Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7745795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:06:49+00:00 2026-06-01T10:06:49+00:00

We create a plugin for a software that was built for .NET 3.5. In

  • 0

We create a plugin for a software that was built for .NET 3.5. In this plugin, we reference a third party .DLL that works for .NET 3.5. The main software is now built to .NET 4.0 and the third party .DLL has been split up into two .DLL.

What we want to avoid is having two seperate solutions with almost the exact same code (one built to .NET 4.0 referencing the 4.0 DLLs and one built to 3.5 referencing the 3.5 DLLs). Not all of our customers are going to upgrade to the newest version of the software we create plugins for right away, some may wait years.

QUESTION EDITED:

Is there any way to continue to build to .Net 3.5 referencing the 3.5 DLL, and then at run time perform some assembly resolve to load the two .Net 4.0 DLLs in the place of the original one?

We want/need to keep building to a 3.5 framework so that previous versions of the main software will continue to load our plugin. If we build to 4.0 then the older versions will give an error when trying to load our plugin because its build to a later framework.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:06:50+00:00Added an answer on June 1, 2026 at 10:06 am

    This assembly is built by a runtime newer than the currently loaded runtime

    That’s crystal clear, your EXE loaded an earlier version of the CLR. Only the .NET 4 version of the CLR knows how to load an assembly that was built to target 4. The metadata format has changed in 4, the old CLR doesn’t know how to read it.

    Either rebuild your EXE to target 4 as well or provide a app.exe.config file that forces your program to run with the newer version of the CLR. It should look like this:

    <configuration>
        <startup useLegacyV2RuntimeActivationPolicy="true">
            <supportedRuntime version="v4.0" />
        </startup>
    </configuration>
    

    Some testing is required, .NET 4 is highly compatible but it does have some bug fixes that you might accidentally rely on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a plugin very that has similar usage to the
I want to create a plugin that works like so: var fmatted = $('someString').myFunction();
I want to create a plugin that automatically applies other (external plugins). This requires
Typically I create a plugin when I have a module that I know I'm
How do we create a search plugin for Safari? Like this post
I am trying to create a type of mind mapping software that runs on
I want to create a plugin with omnibox suggestion. The main problem - if
I want to create a plugin that would check if the controller/action is /cont/act
I've to create a plugin which should respond to events that do not belong
I would like to create a plugin for jquery that doesn't work with the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.