Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

DNX fails to restore some nuget packages #1950

Closed
anfomin opened this issue May 25, 2015 · 2 comments
Closed

DNX fails to restore some nuget packages #1950

anfomin opened this issue May 25, 2015 · 2 comments
Assignees
Milestone

Comments

@anfomin
Copy link

anfomin commented May 25, 2015

I'm trying to add dependency to the WindowsAzure.ServiceBus package. Config.json:

{
    "version": "1.0.0-*",

    "dependencies": {
        "WindowsAzure.ServiceBus": "2.6.7"
    },

    "commands": {
        "ConsoleApp2": "ConsoleApp2"
    },

    "frameworks": {
        "net45": { }
    }
}

Package manager log contains no error, however VS interface shows:
2015-05-25 14 53 00

This bug reproduced on the latest DNX dnx-clr-win-x86.1.0.0-beta5-11855. When I switch to older 11682, package restored correctly.

@davidfowl
Copy link
Member

There are 2 problems here. We have an issue with parsing nulls for versions in the lock file and the service bus package doesn't specify a version its dependencies.

@davidfowl
Copy link
Member

@anfomin I pushed a fix for the lock file parsing, it'll take a while for the CI to pass but it won't fully resolve the issue. You should be able to work around this by doing the following in your project.json:

{
    "version": "1.0.0-*",

    "dependencies": {
      "WindowsAzure.ServiceBus": "2.6.7",
      "Microsoft.WindowsAzure.ConfigurationManager": "3.1.0"
    },

    "commands": {
        "ConsoleApp2": "ConsoleApp2"
    },

    "frameworks": {
        "net45": { }
    }
}

This will override the broken dependency on Microsoft.WindowsAzure.ConfigurationManager

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants