Results 1 to 8 of 8

Thread: Help with compiling

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2005
    Posts
    153

    Question Help with compiling

    Hi

    I'm getting the following error when i compile my program

    Error: The dependency 'Common, Version=1.0.2021.24982, Culture=neutral' in project 'MyProj' cannot be copied to the run directory because it would conflict with dependency 'Common, Version=1.0.2021.27968, Culture=neutral'.


    How do I Fix This???

    Thanx
    Cranzy

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Help with compiling

    Do you have two copies of the framework on your machine? Are you porting from one to another?

    Looks like you're trying to overwrite a dependancy with an older version.
    I don't live here any more.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2005
    Posts
    153

    Re: Help with compiling

    No.

    I have 1 copy ... It is a program which launches a dll ... and in those dlls it loads another dll?
    any ideas?

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 2005
    Posts
    153

    Re: Help with compiling

    Ok ... I can explain the situation.
    Let's say i have a dll - called MAINDLL
    now .. i have another dll DLL1 which has a reference to MAINDLL.
    now .. i have another dll DLL2 which has a reference to MAINDLL.

    My main program .. refrences DLL1 and DLL2 ... ... this is when i get the WARNING.!!

    plz help

  5. #5
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    Re: Help with compiling

    Not really sure, but is dll1 and dll2 referencing the same stuff in maindll? Maybe dll2 can't use certain functions since dll1 is using them? But then again, i'm not sure if those two dll get different instance of maindll.

  6. #6
    Frenzied Member ntg's Avatar
    Join Date
    Sep 2004
    Posts
    1,449

    Re: Help with compiling

    Quote Originally Posted by Cranzy
    Hi

    I'm getting the following error when i compile my program

    Error: The dependency 'Common, Version=1.0.2021.24982, Culture=neutral' in project 'MyProj' cannot be copied to the run directory because it would conflict with dependency 'Common, Version=1.0.2021.27968, Culture=neutral'.


    How do I Fix This???

    Thanx
    Cranzy
    This is just a versioning error which you can get if your references aren't setup correctly. If you're using a multi-project solution, you need to set your project dependencies in order to get the correct build order. From what you're saying, you need to build MAIN.DLL, then DLL1, then DLL2 and finally your application.
    "Feel the force...read the source..."
    Utilities: POPFileDebugViewProcess ExplorerWiresharkKeePassUltraVNCPic2Ascii
    .Net tools & open source: DotNetNukelog4NetCLRProfiler
    My open source projects: Thales SimulatorEFT CalculatorSystem Info ReporterVSS2SVNIBAN Functions
    Customer quote: "If the server has a RAID array, why should we bother with backups?"
    Programmer quote: "I never comment my code. Something that is hard to write should be impossible to comprehend."
    Ignorant quote: "I have no respect for universities, as they teach not practicle stuff, and charge money for"

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jul 2005
    Posts
    153

    Re: Help with compiling

    Yip .. that is it ...
    I worked out the dependencies and compiled them in the right order .. then my main program compiled successfully.

    Now ... if i change something in the dll which gets used by both dlls ... that means i have to recompile everything ..

    is there a command line (which i can run from start -> run) which compiles a solution ???

  8. #8
    Frenzied Member ntg's Avatar
    Join Date
    Sep 2004
    Posts
    1,449

    Re: Help with compiling

    You can use devenv from the command line but you need to setup environmental variables. There's a bat file for that (Programs>Microsoft Visual Studio.Net>Visual Studio .Net tools>Visual Studio .Net Command Prompt). Once you start a command session with that, issue a "devenv /?" command and check out the command line parameters. devenv works like a charm for simple projects (solutions with one project only). With multi-project solutions it may throw errors.
    "Feel the force...read the source..."
    Utilities: POPFileDebugViewProcess ExplorerWiresharkKeePassUltraVNCPic2Ascii
    .Net tools & open source: DotNetNukelog4NetCLRProfiler
    My open source projects: Thales SimulatorEFT CalculatorSystem Info ReporterVSS2SVNIBAN Functions
    Customer quote: "If the server has a RAID array, why should we bother with backups?"
    Programmer quote: "I never comment my code. Something that is hard to write should be impossible to comprehend."
    Ignorant quote: "I have no respect for universities, as they teach not practicle stuff, and charge money for"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width