References to debug vs. release

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff Dege

    References to debug vs. release

    When I am building a project in Visual Studio 2005, I can create
    references to assemblies that were built by other projects. The problem
    is that I don't see how to create a reference that switches between the
    debug and release builds of the other project, when I switch between the
    debug and release configurations of my parent project.

    That is, when I'm building, running, and of course debugging a project, I
    want to use the debug versions of at least some of the assemblies I
    reference, so that I can step into them as I debug. When I build the
    release version of a project, I want the generated assembly to reference
    the release versions of the assemblies it references.

    And I want to do this without having to manually drop and restore the
    references in question.

    Am I out of luck? Or is there a way to do this that I've simply never
    figured out?


    --
    Jefferson was unquestionably one of our giants. There was more in his
    head than there has been in the heads of all the presidents in office
    since he went out. He was a man of immense intellectual curiosity,
    profound originality, and great daring. His integrity was of doric
    massiveness. But was he always right? I don't think many reflective
    Americans of today would argue that he was.
    - H. L. Mencken
  • Cowboy \(Gregory A. Beamer\)

    #2
    Re: References to debug vs. release

    You have to make sure the compile on all projects are set to Release. I am
    not sure if setting at the solution level does this or not. If not, it is a
    manual process.

    --
    Gregory A. Beamer
    MVP, MCP: +I, SE, SD, DBA

    Subscribe to my blog


    or just read it:


    *************** *************** *************** ****
    | Think outside the box!
    |
    *************** *************** *************** ****
    "Jeff Dege" <jdege@jdege.vi si.comwrote in message
    news:_dSdnTZZMp 1P67DVnZ2dnUVZ_ tLinZ2d@posted. visi...
    When I am building a project in Visual Studio 2005, I can create
    references to assemblies that were built by other projects. The problem
    is that I don't see how to create a reference that switches between the
    debug and release builds of the other project, when I switch between the
    debug and release configurations of my parent project.
    >
    That is, when I'm building, running, and of course debugging a project, I
    want to use the debug versions of at least some of the assemblies I
    reference, so that I can step into them as I debug. When I build the
    release version of a project, I want the generated assembly to reference
    the release versions of the assemblies it references.
    >
    And I want to do this without having to manually drop and restore the
    references in question.
    >
    Am I out of luck? Or is there a way to do this that I've simply never
    figured out?
    >
    >
    --
    Jefferson was unquestionably one of our giants. There was more in his
    head than there has been in the heads of all the presidents in office
    since he went out. He was a man of immense intellectual curiosity,
    profound originality, and great daring. His integrity was of doric
    massiveness. But was he always right? I don't think many reflective
    Americans of today would argue that he was.
    - H. L. Mencken

    Comment

    Working...