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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:06:35+00:00 2026-05-13T10:06:35+00:00

I have a web application project which utilises a set of 3rd party dll’s.

  • 0

I have a web application project which utilises a set of 3rd party dll’s. The issue is that the dev/staging environment is 32bit, but production is 64bit. As such, we have to re-reference and build the solution each time we want to deploy. I am now wanting to automate this, but unsure how to go about it with MSBuild?

All other dll’s are the same, just the 3 3rd party dll’s.


EDIT

I have made some headway, however am coming up with some runtime assembly issues.

I have 3 dll files, 1.dll, 2.dll, 3.dll. The file version is 5.1 for each. For the 64 bit dlls, the names are exactly the same, just difference file versions. What I have done, is renamed each one to 1.v5.dll, 1.v6.dll etc. In my project files, I am then referencing each dll as follows:

<Reference Include="1.v5.dll" Condition="'$(Platform)'=='x86'">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\1.v5.dll</HintPath>
  <Private>False</Private>
</Reference>
<Reference Include="1.v6.dll" Condition="'$(Platform)'=='x64'">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\1.v6.dll</HintPath>
  <Private>False</Private>
</Reference>

This works in Visual Studio IDE, and my solution compiles file, however when I go to run the website, I get the following error…

“Could not load file or assembly ‘1.v5’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference.

Any thoughts on how to approach this?

  • 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-05-13T10:06:36+00:00Added an answer on May 13, 2026 at 10:06 am

    This is what I have figured out, and seems to work no problems.

    I have created 2 solution platforms, x86 and x64. I have created a new folder in my solution directory called “References”, and created n x86 and x64 folder:
    \References\x86\
    \References\x64\
    The 3 dll’s for each are then placed in their respective directories.

    In each project’s file, I have then added the following references:

    <Reference Include="{Reference1}" Condition="'$(Platform)'=='x86'">
      <HintPath>..\References\dlls\x86\{Reference1}.dll</HintPath>
    </Reference>
    <Reference Include="{Reference2}" Condition="'$(Platform)'=='x64'">
      <HintPath>..\References\dlls\x64\{Reference2}.dll</HintPath>
    </Reference>
    

    Now, when I develop within the IDE, I am working the the relevant dll specific to my needs.

    I have then just added a post-build event which copies the dll based on the $(Platform) variable into the bin directory.

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

Sidebar

Related Questions

In our web application we have a directory which resides outside of the project.
I have a web application project (wap) that is successfully being deployed to a
I have a web application that comprises the following: A web project (with a
I have a really simple ASP.NET web application and a web setup project that
I have a Web Application project in Visual Studio 2008. (lucky you, you say?
We have a pretty big ASP.NET WebForm (web application) project with a lot of
Currently we're using Web Application project, so we have a gain with compilation. But
I'm begining the development of a personal Web Application project. I'd like to have
(Eclipse 3.4, Ganymede) I have an existing Dynamic Web Application project in Eclipse. When
I have several web application projects in one solution. When I start debugging one

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.