New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group dependencies with duplicate transitive dependencies may fail compiler #1458

Closed
agross opened this Issue Feb 4, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@agross
Contributor

agross commented Feb 4, 2016

depfile:

nuget Nancy.Bootstrappers.Windsor

group test
  nuget Nancy.Testing

group hosting
  nuget Nancy.Owin

references:

Nancy.Bootstrappers.Windsor

group test
  Nancy.Testing

group hosting
  Nancy.Owin

Because Nancy (nuget) is a transitive dependency of all of the packages above, three references to Nancy.dll will be added to the projects next to the references file:

packages\test\Nancy\lib\net40\Nancy.dll
packages\hosting\Nancy\lib\net40\Nancy.dll
packages\Nancy\lib\net40\Nancy.dll

CSC output:

warning MSB3243: No way to resolve conflict between "Nancy, Version=1.4.2.0, Culture=neutral, PublicKeyToken=null" and "Nancy, Version=1.4.1.0, Culture=neutral, PublicKeyToken=null". Choosing "Nancy, Version=1.4.2.0, Culture=neutral, PublicKeyToken=null" arbitrarily.

error CS1704: An assembly with the same simple name 'Nancy' has already been imported. Try removing one of the references (e.g. 'packages\Nancy\lib\net40\Nancy.dll') or sign them to enable side-by-side.
Build has been canceled.

@agross agross added the bug label Feb 4, 2016

@forki forki closed this in d9f1e42 Mar 1, 2016

@forki

This comment has been minimized.

Show comment
Hide comment
@forki

forki Mar 1, 2016

Member

sorry for delay.

Member

forki commented Mar 1, 2016

sorry for delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment