Visual studio dependency problem

A

absalomkomissar

hello all,
well a problem arose and i kindy ask for console:

when i compile my solution i get this:



Error: The dependency 'GDH.Infra.Settings, Version=1.0.1538.21971,
Culture=neutral' in project 'GDH.Infra.Security' cannot be copied to
the run directory because it would conflict with dependency
'GDH.Infra.Settings, Version=1.0.1538.25124, Culture=neutral'.

and warnings:

Warning: The dependency 'GDH.Infra.Settings, Version=1.0.1538.21971,
Culture=neutral' in project 'GDH.Infra.Security.Login' cannot be
copied to the run directory because it would overwrite the reference
'GDH.Infra.Settings, Version=1.0.1538.25124, Culture=neutral'.


thank for the help
 
G

Guest

This normally happens when you have a project that is referencing your Version=1.0.1538.21971 assembly and another project that is referencing your Version=1.0.1538.25124 assembly and they are both trying to copy their output to the same folder

Because the 'same' referenced assembly has different versions in different projects, you get this message

Make sure that all your projects are referencing the same assembly from the same location so that both projects try to copy the same version into the output directory

HT

RS
 
R

Ryan Timmins

I had this same problem. In my case it was because I had 1 project
reference a dll directly, and another project was referencing the
project file for that dll. I think what would happen when I tried to
compile was that 2 versions of the same dll would be copied to the run
directory and this caused the errors.




hello all,
well a problem arose and i kindy ask for console:

when i compile my solution i get this:



Error: The dependency 'GDH.Infra.Settings, Version=1.0.1538.21971,
Culture=neutral' in project 'GDH.Infra.Security' cannot be copied to
the run directory because it would conflict with dependency
'GDH.Infra.Settings, Version=1.0.1538.25124, Culture=neutral'.

and warnings:

Warning: The dependency 'GDH.Infra.Settings, Version=1.0.1538.21971,
Culture=neutral' in project 'GDH.Infra.Security.Login' cannot be
copied to the run directory because it would overwrite the reference
'GDH.Infra.Settings, Version=1.0.1538.25124, Culture=neutral'.


thank for the help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top