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 8706939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:44:30+00:00 2026-06-13T03:44:30+00:00

My code relies on a third party library (dll). Due to Nugget’s inability to

  • 0

My code relies on a third party library (dll).

Due to Nugget’s inability to manage different platforms (also here), I’ve created two projects with the same code duplicated (kept code to a minimum – basically an API wrapper).

One project references the x86 version of the dll, and the other x64.

There is only one project in my solution that references these projects.
It references them both, and does so conditionally (so when I build with x64 configuration the project referencing the x64 dllis referenced, etc)

Its .csproj contains something like:

ProjectReference Include="..\3rdPartyModule.x86\3rdPartyModule.x86.csproj" Condition="'$(Platform)' == 'x86'"

and

ProjectReference Include="..\3rdPartyModule.x64\3rdPartyModule.x64.csproj" Condition="'$(Platform)' == 'x64'"

Now, a strange thing happens:

If I unload both projects and then load first the x86 one and then the x64 one, the reference in the x64 one actually shows that it points to the x86 dll (I can see the path).

If I change the order of load, then it’s the other way around: the x64 is fine, but the x86 is references the x64 version!

My guess is that VS finds an assemby with te same name already in memory and automatically references the second to the first.

Is this a known issue? Is there a way around it?

  • 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-13T03:44:31+00:00Added an answer on June 13, 2026 at 3:44 am

    There used to be a bug in VS2010 where in such cases references were not displayed properly in VS UI, but correct file would be copied over during compilation. In your case, are you getting correct version of the file in build output directory?

    Also, you may want to set different alias for the referenced assembly (from reference properties). It might help.

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

Sidebar

Related Questions

I have an application that uses a third party native C dll. Everything works
I am developing a web application that relies heavily on Applets. Some third party
I've got some code that relies on comparing two NSIndexPaths and executing different code
I have code that relies heavily on yaml for cross-language serialization and while working
I'm working on old code that relies heavily on the exception specifications behavior described
So just recently, my async server code which relies on pthread_mutex_timedlock seem to have
I have this code so far which perfectly but relies on there being a
Our code relies on checking the Context.User.Identity value in the Global.asax Application_AuthenticateRequest(...) method to
My code relies heavily on computing distances between two points in 3D space. To
Some legacy code relies on the platform's default charset for translations. For Windows 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.