-
Notifications
You must be signed in to change notification settings - Fork 258
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
The 'Source' parameter is not respected for the transitive package management based project(s) #7189
Comments
This behavior is really annoying, I'm surprised it's not getting enough attention. |
I personally get the same warning message but the If I delete my package source from my Nuget feeds list in VS options and then run the command Package Manager Console Host Version 4.8.1.5435 |
I have the same issue... |
@karann-msft all MyGet packages suggest this command-line setup to add private packages via the VS Version: 16.3 Preview 3 |
same with VS 2019 Pro latest, and local .net core package. |
Using MyGet packages on multiple computers working on same project is not really possible. |
Why not add the package sources to a Nuget.config and add it to source control? |
Thanks, i'll try that. Last time i tried (few years ago) VS nuget manager did not support it. |
@JimBobSquarePants that's fine if you know you want to be pulling from MyGet for a long-term project, but sometimes you just want to pull a dev package to test something quick or try out a new feature, setting up a NuGet.config for that single purpose isn't a great workaround. I think the main thing here is that MyGet still provides an easy copy-paste command on their website in order to pull down the package, but that's broken because of this bug. |
@michael-hawker You should be using a Nuget.config file for ALL projects that are source controlled. It's just good practice. |
I agree with @michael-hawker. |
@JimBobSquarePants agreed but it's a PITA for local testing since you end up having to put a physical path in the NuGet.Config. That's fine if the repo is a throw away for testing but not something to check into source control. @weitzhandler What happens if you have dependencies on other packages that aren't on nuget feeds? There are several issues with local package development that makes things painful for fast iteration:
|
Hey all, |
@davidfowl thanks for your explanation. |
Not only has there been no fix for this issue in almost two years, we haven't even been provided an explanation as to why this happens. Par for the course for the NuGet team, though. |
The scenario you linked is our primary motivation as to why is the source parameter is not respected. We want to steer people in a direction where their restores are repeatable and that can't happen if a package is not in any of the sources specified for that solution/repo/project. |
Since year 2018, and still no fix and even no answer in 2024. Take your own conclusions. |
Details about Problem
NuGet product used: Package Manager Console
NuGet Package Manager Host version: 4.7.0.5212
dotnet.exe --version: 2.1.302
VS version: 15.7.5
OS version: Microsoft Windows [Version 10.0.14393]
Detailed repro steps so we can see the same problem
PM> Install-Package AutoMapper.Collection.EntityFrameworkCore -Version 0.1.0-ci-00003 -Source https://www.myget.org/F/automapperdev/api/v3/index.json
The following error appears
The 'Source' parameter is not respected for the transitive package management based project(s) My.Project.Namespace. The enabled sources in your NuGet configuration will be used.
and the install fails.
Adding
https://www.myget.org/F/automapperdev/api/v3/index.json
as a nuget feed for VS works as a workaround, but I don't want to do that. I want to use this source for this nuget package only and ensure that my coworkers do not have to configure their VS in order to build the project.The text was updated successfully, but these errors were encountered: