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

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

Closed
SuperRoflCopter opened this Issue Mar 10, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@SuperRoflCopter

SuperRoflCopter commented Mar 10, 2017

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. :)

@SuperRoflCopter SuperRoflCopter changed the title from Adding package when source are splitted (command line or UI) to Adding package when sources are splitted (command line or UI) Mar 10, 2017

@forki

This comment has been minimized.

Show comment
Hide comment
@forki

forki Mar 11, 2017

Member
Member

forki commented Mar 11, 2017

@SuperRoflCopter

This comment has been minimized.

Show comment
Hide comment
@SuperRoflCopter

SuperRoflCopter Mar 13, 2017

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

SuperRoflCopter commented Mar 13, 2017

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

@SuperRoflCopter

This comment has been minimized.

Show comment
Hide comment
@SuperRoflCopter

SuperRoflCopter Mar 13, 2017

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

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