.net - Can't install nuget package; DNXCore dependency confusion -


i'm trying add nuget package naos.packaging.nuget vs2015 project naos.deployment.core. both open source.

i'm getting error:

failed add reference 'system.globalization'. please make sure in global assembly cache.

the full output pasted below.

what's confusing naos.deployment.core .net 4.5 project. naos.packaging.nuget. naos.packaging.nuget has dependency on nuget.frameworks has dependency on system.globalization (as far can tell, dependency on system.globalization in chain). however, dependency applicable dnxcore 5.0 projects.

so why dnxcore concern issue here? why can't add nuget package , how can fix up?

tried this approach didn't work. using latest vs 2015 (update 1), latest nuget.

attempting gather dependencies information package 'naos.packaging.nuget.1.0.5' respect project 'naos.deployment.core', targeting '.netframework,version=v4.5' attempting resolve dependencies package 'naos.packaging.nuget.1.0.5' dependencybehavior 'lowest' resolving actions install package 'naos.packaging.nuget.1.0.5' resolved actions install package 'naos.packaging.nuget.1.0.5' removed package 'nuget.core.2.8.6' 'packages.config' uninstalled 'nuget.core.2.8.6' naos.deployment.core adding package 'naos.packaging.domain.1.0.5' folder 'c:\users\suraj\documents\github\naos.deployment\packages' added package 'naos.packaging.domain.1.0.5' folder 'c:\users\suraj\documents\github\naos.deployment\packages' added package 'naos.packaging.domain.1.0.5' 'packages.config' installed 'naos.packaging.domain 1.0.5' naos.deployment.core adding package 'nuget.configuration.3.3.0' folder 'c:\users\suraj\documents\github\naos.deployment\packages' added package 'nuget.configuration.3.3.0' folder 'c:\users\suraj\documents\github\naos.deployment\packages' install failed. rolling back... package 'nuget.configuration.3.3.0 : ' not exist in project 'naos.deployment.core' removed package 'naos.packaging.domain.1.0.5 : ' 'packages.config' package 'nuget.core.2.8.6' exists in folder 'c:\users\suraj\documents\github\naos.deployment\packages' added package 'nuget.core.2.8.6' 'packages.config' removing package 'nuget.configuration.3.3.0 : ' folder 'c:\users\suraj\documents\github\naos.deployment\packages' removed package 'nuget.configuration.3.3.0 : ' folder 'c:\users\suraj\documents\github\naos.deployment\packages' removing package 'naos.packaging.domain.1.0.5 : ' folder 'c:\users\suraj\documents\github\naos.deployment\packages' removed package 'naos.packaging.domain.1.0.5 : ' folder 'c:\users\suraj\documents\github\naos.deployment\packages' failed add reference 'system.globalization'. please make sure in global assembly cache. ========== finished ========== 

the naos.packaging.nuget 1.0.7 has dependency on nuget.frameworks 3.3.0.

the nuget.frameworks 3.3.0 have dependency on system.globalization 4.0.10. why looking system.globalization.

after trying everything, including adding system.globalisation dll reference. without using console, used vs dashboard.

enter image description here

enter image description here

i decided ignore dependencies , used option overwrite conflicts the naos.packaging.nuget.1.0.7 options automatically preferenced.

enter image description here

the install log:

resolved actions install package 'naos.packaging.nuget.1.0.7' resolved actions install package 'naos.packaging.nuget.1.0.7' adding package 'naos.packaging.nuget.1.0.7' folder 'd:\vsprojects\naos.deployment-master\naos.deployment-master\packages' added package 'naos.packaging.nuget.1.0.7' folder 'd:\vsprojects\naos.deployment-master\naos.deployment-master\packages' added package 'naos.packaging.nuget.1.0.7' 'packages.config' installed 'naos.packaging.nuget 1.0.7' naos.deployment.core.test package 'naos.packaging.nuget.1.0.7' exists in folder 'd:\vsprojects\naos.deployment-master\naos.deployment-master\packages' added package 'naos.packaging.nuget.1.0.7' 'packages.config' installed 'naos.packaging.nuget 1.0.7' naos.deployment.core ========== finished ========== 

the nuget installed , rebuilds without errors.

enter image description here

all other dependencies can added manually, there list in log further down, or easy check within vs.
after more testing decided best option. whatever reason not seeing system.globalization, if reference it, , show duplicated references in output window, fail see reference when installing nuget. there many dependencies find root cause of issue.

another point: nuget has had 147 downloads, may bug worth reporting author.

from the docs:

2 dependency behavior - allows configure how nuget decide versions of dependent packages installed. there 5 options:

a. ignore - bad idea, package has dictated dependends on other packages , require contents operate. may choose skip installing packages.

.../...

3 file conflict options - if package or of dependent packages being installed match file on disk, how should nuget handle it?

.../...

c. overwrite - nuget overwrite matching files in project package

spritely recipees

uses system.globalization in inheritedtypejasonconverter

namespace spritely.recipes {     using system;     using system.collections.concurrent;     using system.collections.generic;     using system.componentmodel;     using system.globalization;     using system.io;     using system.linq;     using system.reflection;     using newtonsoft.json;     using newtonsoft.json.linq; 

this uses system.collections, throwing error when attempting add naos.packaging.nuget dependencies independently.

if attempt reference these separately, shows conflict, having 2 references.

the package manager uses system.globalization:

namespace naos.deployment.core {     using system;     using system.collections.generic;     using system.globalization;     using system.io;     using system.io.compression;     using system.linq;     using system.net;     using system.text;     using system.xml; 

the naos.packaging.nuget.1.0.7 installs following projects without issue:

successfully installed 'naos.packaging.nuget 1.0.7' naos.deployment.contract installed 'naos.packaging.nuget 1.0.7' naos.deployment.messagebus.handler installed 'nuget.packagemanagement 3.3.0' naos.deployment.messagebus.contract installed 'naos.packaging.nuget 1.0.7' naos.deployment.cloudmanagement installed 'naos.packaging.nuget 1.0.7' naos.deployment.console 

i have contacted naos directly issue , awaiting reply.


some previous trouble shooting show desperation levels required use ignore dependencies.

this done on fresh visual studio project. misunderstood authors original intent.

where shows it's removing packages, it's removing packages installed, need updated compatible naos package using. it's failing this. due package has dependency on package being removed. in case 'nuget.core.2.8.6'. or minor corruption in files. going have uninstall package before attempt install naos , either update package version naos requires or leave naos add dependencies requires.

this issue is, if have packages depend on 'nuget.core.2.8.6' may need uninstall these also. install naos, reinstall other packages have dependency on 'nuget.core.2.8.6'.

remove nuget.core.2.8.6. before trying install naos.packaging.nuget 1.0.7

removed package 'nuget.core.2.8.6' 'packages.config' uninstalled 'nuget.core.2.8.6' naos.deployment.core

this might mean having work out of uninstalls , re-installs, allow correct dependencies installed nuget.

then got directories , remove references it.

this install outdated version:

pm> install-package naos.packaging.nuget -version 1.0.7 attempting gather dependencies information package 'naos.packaging.nuget.1.0.7' respect project 'webapplication2', targeting '.netframework,version=v4.5.2' attempting resolve dependencies package 'naos.packaging.nuget.1.0.7' dependencybehavior 'lowest' resolving actions install package 'naos.packaging.nuget.1.0.7' resolved actions install package 'naos.packaging.nuget.1.0.7' removed package 'nuget.core.2.8.6' 'packages.config' uninstalled 'nuget.core.2.8.6' webapplication2 adding package 'naos.packaging.domain.1.0.7' folder 'd:\projects\webapplication2\packages' added package 'naos.packaging.domain.1.0.7' folder 'd:\projects\webapplication2\packages' added package 'naos.packaging.domain.1.0.7' 'packages.config' installed 'naos.packaging.domain 1.0.7' webapplication2 adding package 'nuget.configuration.3.3.0' folder 'd:\projects\webapplication2\packages' added package 'nuget.configuration.3.3.0' folder 'd:\projects\webapplication2\packages' added package 'nuget.configuration.3.3.0' 'packages.config' .../... added package 'naos.packaging.nuget.1.0.7' 'packages.config' installed 'naos.packaging.nuget 1.0.7' webapplication2 removing package 'nuget.core.2.8.6' folder 'd:\projects\webapplication2\packages' removed package 'nuget.core.2.8.6' folder 'd:\projects\webapplication2\packages' 

this successful without needing remove packages:

attempting gather dependencies information package 'naos.packaging.nuget.1.0.7' respect project 'webapplication1', targeting '.netframework,version=v4.5.2' attempting resolve dependencies package 'naos.packaging.nuget.1.0.7' dependencybehavior 'lowest' resolving actions install package 'naos.packaging.nuget.1.0.7' resolved actions install package 'naos.packaging.nuget.1.0.7' adding package 'microsoft.web.xdt.2.1.1' folder 'd:\projects\webapplication1\packages' added package 'microsoft.web.xdt.2.1.1' folder 'd:\projects\webapplication1\packages' added package 'microsoft.web.xdt.2.1.1' 'packages.config' installed 'microsoft.web.xdt 2.1.1' webapplication1 adding package 'naos.packaging.domain.1.0.7' folder 'd:\projects\webapplication1\packages' added package 'naos.packaging.domain.1.0.7' folder 'd:\projects\webapplication1\packages' added package 'naos.packaging.domain.1.0.7' 'packages.config' installed 'naos.packaging.domain 1.0.7' webapplication1 adding package 'nuget.configuration.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.configuration.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.configuration.3.3.0' 'packages.config' installed 'nuget.configuration 3.3.0' webapplication1 adding package 'nuget.contentmodel.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.contentmodel.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.contentmodel.3.3.0' 'packages.config' installed 'nuget.contentmodel 3.3.0' webapplication1 adding package 'nuget.core.2.10.1' folder 'd:\projects\webapplication1\packages' added package 'nuget.core.2.10.1' folder 'd:\projects\webapplication1\packages' added package 'nuget.core.2.10.1' 'packages.config' installed 'nuget.core 2.10.1' webapplication1 adding package 'nuget.logging.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.logging.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.logging.3.3.0' 'packages.config' installed 'nuget.logging 3.3.0' webapplication1 adding package 'nuget.versioning.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.versioning.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.versioning.3.3.0' 'packages.config' installed 'nuget.versioning 3.3.0' webapplication1 adding package 'nuget.frameworks.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.frameworks.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.frameworks.3.3.0' 'packages.config' installed 'nuget.frameworks 3.3.0' webapplication1 adding package 'nuget.librarymodel.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.librarymodel.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.librarymodel.3.3.0' 'packages.config' installed 'nuget.librarymodel 3.3.0' webapplication1 adding package 'nuget.packaging.core.types.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.packaging.core.types.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.packaging.core.types.3.3.0' 'packages.config' installed 'nuget.packaging.core.types 3.3.0' webapplication1 adding package 'nuget.packaging.core.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.packaging.core.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.packaging.core.3.3.0' 'packages.config' installed 'nuget.packaging.core 3.3.0' webapplication1 adding package 'nuget.packaging.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.packaging.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.packaging.3.3.0' 'packages.config' installed 'nuget.packaging 3.3.0' webapplication1 adding package 'nuget.protocol.core.types.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.protocol.core.types.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.protocol.core.types.3.3.0' 'packages.config' installed 'nuget.protocol.core.types 3.3.0' webapplication1 adding package 'nuget.protocol.core.v2.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.protocol.core.v2.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.protocol.core.v2.3.3.0' 'packages.config' installed 'nuget.protocol.core.v2 3.3.0' webapplication1 adding package 'nuget.protocol.core.v3.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.protocol.core.v3.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.protocol.core.v3.3.3.0' 'packages.config' installed 'nuget.protocol.core.v3 3.3.0' webapplication1 adding package 'nuget.repositories.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.repositories.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.repositories.3.3.0' 'packages.config' installed 'nuget.repositories 3.3.0' webapplication1 adding package 'nuget.resolver.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.resolver.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.resolver.3.3.0' 'packages.config' installed 'nuget.resolver 3.3.0' webapplication1 adding package 'nuget.runtimemodel.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.runtimemodel.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.runtimemodel.3.3.0' 'packages.config' installed 'nuget.runtimemodel 3.3.0' webapplication1 adding package 'nuget.client.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.client.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.client.3.3.0' 'packages.config' installed 'nuget.client 3.3.0' webapplication1 adding package 'nuget.dependencyresolver.core.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.dependencyresolver.core.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.dependencyresolver.core.3.3.0' 'packages.config' installed 'nuget.dependencyresolver.core 3.3.0' webapplication1 adding package 'nuget.dependencyresolver.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.dependencyresolver.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.dependencyresolver.3.3.0' 'packages.config' installed 'nuget.dependencyresolver 3.3.0' webapplication1 adding package 'nuget.projectmodel.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.projectmodel.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.projectmodel.3.3.0' 'packages.config' installed 'nuget.projectmodel 3.3.0' webapplication1 adding package 'nuget.commands.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.commands.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.commands.3.3.0' 'packages.config' installed 'nuget.commands 3.3.0' webapplication1 adding package 'nuget.projectmanagement.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.projectmanagement.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.projectmanagement.3.3.0' 'packages.config' installed 'nuget.projectmanagement 3.3.0' webapplication1 adding package 'nuget.packagemanagement.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.packagemanagement.3.3.0' folder 'd:\projects\webapplication1\packages' added package 'nuget.packagemanagement.3.3.0' 'packages.config' installed 'nuget.packagemanagement 3.3.0' webapplication1 adding package 'naos.packaging.nuget.1.0.7' folder 'd:\projects\webapplication1\packages' added package 'naos.packaging.nuget.1.0.7' folder 'd:\projects\webapplication1\packages' added package 'naos.packaging.nuget.1.0.7' 'packages.config' installed 'naos.packaging.nuget 1.0.7' webapplication1 

so uninstall dependencies use lower versions.

if doesn't work please let me know.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -