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

  • Home
  • SEARCH
  • 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 8002891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:30:23+00:00 2026-06-04T16:30:23+00:00

My application references an assembly that increases in version a lot. I can set

  • 0

My application references an assembly that increases in version a lot.

I can set “Specific Version” in my Visual Studio reference to false so that I don’t encounter any build issues but I need to be able to work with any version at runtime.

As far as I can see I have two options:

  1. Request that the publisher of the dll uses a Publisher Policy File and adopts Assembly Binding Redirection.

  2. Dynamically load the assembly using Reflection.

Now, with option 1, there is a chance that the assembly supplier can not be persuaded to use this technique. I am pre-empting this as the supplier would have quite a lot of large redirects in their config due to the number of releases of this assembly.

With option 2, I would prefer not to use Reflection in this instance as I want to maintain the flexibility and ease that VS Intellisense brings.

So, my question is: Is there a 3rd option or are my concerns about the first two options of no real significance?

  • 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-04T16:30:25+00:00Added an answer on June 4, 2026 at 4:30 pm

    Option 2a: Use reflection to load it in release builds only. Override the AssemblyResolve event and load the assembly manually if it fails due to a versioning conflict.

    Option 3: Don’t change the version number. (Put it in a different field in the assembly info if you want a build number so you can tell different builds apart, but if the exposed API doesn’t change, don’t consider it to be a new version)

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

Sidebar

Related Questions

Can I configure a .NET application in a way (settings in Visual Studio) that
I am writing a small console application in C# that references a custom assembly
In Visual Studio 2010, I have project A (asp.net application). Project A references project
Visual Studio 2008 did let you reference an assembly A from an Assembly B
I have an application that references this assembly in development environments: name=Microsoft.Data.SqlXml culture=neutral publicKeyToken=89845dcd8080cc91
We have a ASP.Net web application running in Visual Studio 2010 that is targeting
I have a Grail application that references a Java library (as an IntelliJ Module
In .NET c# 3.5 I have a console application (A) that references several assemblies(X,
I am writing a Windows CE application in C# that references a native C++
I have a reference application that I use to work through DDD issues, and

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.