Code Monkey home page Code Monkey logo

Comments (6)

winstonhenke avatar winstonhenke commented on July 24, 2024 1

I had followed Manual installation on Linux and Mac to the default location of $HOME/.nuget/plugins.

I hadn't set $NUGET_PLUGIN_PATHS but I have since set that to $HOME/.nuget/plugins. Now when I run nuget restore or dotnet restore it says "A plugin was not found at path '/home/myUsername/.nuget/plugins'."

I verified /home/myUsername/.nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll does exist.

from artifacts-credprovider.

aasim avatar aasim commented on July 24, 2024

Can you share the details of the command that you're trying to run? If you're running the dotnet command for example, the first time you might have to run it with the --interactive switch.

from artifacts-credprovider.

winstonhenke avatar winstonhenke commented on July 24, 2024

Should also mention I'm trying to run this in WSL using Ubuntu 18.04

I was running nuget restore with nuget version 5.2.0.6090. The username/password prompt I get is right in the command prompt rather than launching a new window of any kind.

I tried dotnet restore --interactive but that never even prompts me and just fails with some more general errors about Unable to load the service index for source.

I was wondering if maybe I installed the plugin on my normal nuget install and maybe the dotnet install has it's own bundled nuget that it uses which may be a bit older? I'm not sure what nuget install is actually used by the dotnet cli though.

from artifacts-credprovider.

satbai avatar satbai commented on July 24, 2024

If you get the username and password prompts in the console, it likely means that NuGet wasn't able to find the plugin. Did you run one of these scripts to install the cred provider? Please refer to the readme for instructions how the plugin will be discovered. For nuget you need to install the netfx version and for dotnet you will need the netcore version.

from artifacts-credprovider.

satbai avatar satbai commented on July 24, 2024

It looks like you've tried with both nuget and dotnet. Dotnet uses the netcore version and nuget uses the netfx version of the plugin, so both need to be installed in $HOME\.nuget\plugins if you want both to work.

You must set the $NUGET_PLUGIN_PATHS environment variable to the CredentialProvider.Microsoft.dll (or CredentialProvider.Microsoft.exe with nuget) instead of the folder. If you have to use both nuget and dotnet, I believe with nuget 5.3 update there are two separate environment variables that you can set, one for the .dll and one for the .exe files: NuGet/Home#8151

Although, if you have the CredentialProvider.Microsoft.dll in $HOME\.nuget\plugins\netcore\CredentialProvider.Microsoft, and CredentialProvider.Microsoft.exe in $HOME\.nuget\plugins\netfx\CredentialProvider.Microsoft, both dotnet and nuget should be able to find the plugin as long as an appropriate version of the tool is used.

from artifacts-credprovider.

satbai avatar satbai commented on July 24, 2024

Closing the issue due to inactivity. Please refer to the previous comment on how to make nuget/dotnet discover the cred provider plugin. Let me know if you have any questions.

from artifacts-credprovider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.