reference dependency warnings during build

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • marfi95@yahoo.com

    #1

    reference dependency warnings during build

    In the project I'm working on, I have a reference to another project of
    mine that is the base class objects for my system. The problem I have
    is that when I build my project, it compiles, but I get following
    warning:

    Warning: The dependency 'Intface1, Version=1.0.200 6.32652,
    Culture=neutral ' in project 'Project1' cannot be copied to the run
    directory because it would overwrite the reference 'Intface1,
    Version=1.0.200 7.12912, Culture=neutral '.

    Here is the thing though:

    The version on the reference in the project is the .2007 version. I've
    looked at the version #'s on all the files and they are all the .2007
    version. I can't find anywhere on my drive where this .2006 version is
    coming from. I also looked in the registry.

    Where in the world is this coming from ?

    Thanks,
    Mark

  • Marina

    #2
    Re: reference dependency warnings during build

    Probably another DLL that you are also referencing, that also points to
    Project1. And that DLL was compiled when Project1 still had a build of
    ..2006.

    I have 2 suggestions:

    1. Fix the version number of your DLL's, and update them only during version
    upgrades of your application
    2. set CopyLocal to False on all your references.

    <marfi95@yahoo. com> wrote in message
    news:1120141308 .077537.309780@ g14g2000cwa.goo glegroups.com.. .[color=blue]
    > In the project I'm working on, I have a reference to another project of
    > mine that is the base class objects for my system. The problem I have
    > is that when I build my project, it compiles, but I get following
    > warning:
    >
    > Warning: The dependency 'Intface1, Version=1.0.200 6.32652,
    > Culture=neutral ' in project 'Project1' cannot be copied to the run
    > directory because it would overwrite the reference 'Intface1,
    > Version=1.0.200 7.12912, Culture=neutral '.
    >
    > Here is the thing though:
    >
    > The version on the reference in the project is the .2007 version. I've
    > looked at the version #'s on all the files and they are all the .2007
    > version. I can't find anywhere on my drive where this .2006 version is
    > coming from. I also looked in the registry.
    >
    > Where in the world is this coming from ?
    >
    > Thanks,
    > Mark
    >[/color]


    Comment

    • alantolan@users.com

      #3
      Re: reference dependency warnings during build

      >2. set CopyLocal to False on all your references.

      We are having similar problems and this seems (to me) to be a good
      solution.
      Are there any notable problems with it?

      Alan.

      Comment

      • Marina

        #4
        Re: reference dependency warnings during build

        Haven't encountered any issues yet doing that.

        <alantolan@user s.com> wrote in message
        news:1120144637 .103936.49210@g 44g2000cwa.goog legroups.com...[color=blue][color=green]
        > >2. set CopyLocal to False on all your references.[/color]
        >
        > We are having similar problems and this seems (to me) to be a good
        > solution.
        > Are there any notable problems with it?
        >
        > Alan.
        >[/color]


        Comment

        Working...