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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:09:57+00:00 2026-05-11T03:09:57+00:00

How can we make our build process (Dev Studio 2005) for a .NET project

  • 0

How can we make our build process (Dev Studio 2005) for a .NET project completely independent of what is installed on the GAC on the particular machine that it is running on.

Here’s the problem we’re trying to solve: Depending on what assemblies happen to have been installed into the GAC, our build process generates different .NET assemblies in the output directory that we then use to build a .MSI

Presumably this is because dev studio is assuming that, because it’s installed in the GAC, it should not be installed as part of our product.

We want to disable this behaviour so that all .NET assemblies that are referenced, directly or indirectly by our project, get copied into the output directory of the project (excepting the .NET 2.0 runtime standard assemblies).

For direct assembly references, I am aware that setting ‘Copy Local=True’ makes this work.

However, this isn’t working for indirect assembly references.

i.e. One of our projects references an assembly called ‘A.dll’, which depends on another assembly called ‘B.dll’ which is in the same directory as ‘A.dll’. On machines in which ‘B.dll’ is not installed in the GAC, both A.dll and B.dll are copied to the output directory in the Dev studio build process. This is what we want.

But on machines on which B.dll is installed into the GAC, even if ‘Copy Local = True’ for A.dll, B.dll does not get copied into the output directory.

  • 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. 2026-05-11T03:09:58+00:00Added an answer on May 11, 2026 at 3:09 am

    Like Marc suggested, the only way to do it was to add the dependent references and setting CopyLocal=True.

    But I’m coming to agree with Danny’s answer – don’t use Dev Studio for your deployment, because you can’t get sufficient control over the build process.

    Why? There’s some ‘defaulting’ logic going on with the Dev Studio in which if it has computed the value of a property, then it won’t save it to the .CSPROJ file, leaving a Dev Studio instance on another machine the task of ‘defaulting’ the property to something else!

    The only error-free way to do it is to explicitly edit the .csproj xml file directly and ensure that you’ve added True to the Reference element:

    <ItemGroup>     <Reference Include='ConfigManagerClient, Version=1.0.0.0, Culture=neutral, PublicKeyToken=20fc1ffb797ec904, processorArchitecture=MSIL'>     <SpecificVersion>False</SpecificVersion>     <HintPath>..\..\thirdparty\CM\ConfigManagerClient.dll</HintPath>     <!-- If DevStudio inferred this to be true, then it won't explicitly save it.          When the project is loaded on another machine on which the assembly is          installed in the GAC,          Dev Studio on _that_ machine will infer that CopyLocal should be False!!      -->     <Private>True</Private> </Reference> 

    This sort of behaviour appears to make it next to impossible to know what your .CSPROJ file is going to do when run on a different machine.

    In the long run you’re much better off not entrusting your build and packaging process to Dev Studio and instead just using, say, Nant and explicit command lines.

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

Sidebar

Ask A Question

Stats

  • Questions 136k
  • Answers 136k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer SecurityContextHolder.getContext() returns the context associated with the current thread. In… May 12, 2026 at 7:05 am
  • Editorial Team
    Editorial Team added an answer I'm just going to go out on a limb and… May 12, 2026 at 7:05 am
  • Editorial Team
    Editorial Team added an answer There are a couple of ways you could solve the… May 12, 2026 at 7:05 am

Related Questions

I have a .NET project that's always been built/run by/on 32 bit machines. I
I'm rewriting our NAnt build scripts to make them cleaner and simpler, as well
Our company is nearing its go live date (and its getting a QA department
As recently as several years ago, the developers actually made the builds that went

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.