Skip to content

Adding package when sources are splitted (command line or UI) #137

Description

@SuperRoflCopter

I've noticed an issue when adding package to a project via "paket add" command line or "Add Package" interface.

When your dependencies file look like this :

source https://www.nuget.org/api/v2/

nuget nuget1
nuget nuget2

source https://InternalRepository

nuget nuget3

If you try adding a package from the "InternalRepository" you'll get the following error message :
image

A possible fix would be to be able to target a specific source, or for the paket add command to add the package at the right place in the dependencies file depending on the source of the package.

..or not splitting the packages by sources.. but it is faster that way. :)

Activity

  1. changed the title [-]Adding package when source are splitted (command line or UI)[/-] [+]Adding package when sources are splitted (command line or UI)[/+] on Mar 10, 2017
  2. forki commented on Mar 11, 2017

    @forki
    Member
  3. SuperRoflCopter commented on Mar 13, 2017

    @SuperRoflCopter
    Author

    You can use this case for example (random public feed) :

    framework: net451
    
    source https://www.nuget.org/api/v2/
    
    nuget Unity 2.1.505.2
    nuget Unity.Interception 2.1.505.2
    nuget Newtonsoft.Json 7.0.1
    
    source https://sitecore.myget.org/F/sc-packages/
    
    nuget CRMSecurityProvider
    nuget Data-Exchange-Framework
    

    Try add this package from https://sitecore.myget.org/F/sc-packages/ repo :
    Data-Exchange-Framework-Remote-SDK

    (paket add nuget Data-Exchange-Framework-Remote-SDK)

    And I get the following error :
    image

  4. SuperRoflCopter commented on Mar 13, 2017

    @SuperRoflCopter
    Author

    Thanks for the quick fix.
    Everything seems fine for both (command line and visual studio)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions