Skip to content
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

How to pass the NuGetInteractive option to dotnet script? #715

Open
msfcolombo opened this issue Apr 17, 2023 · 1 comment
Open

How to pass the NuGetInteractive option to dotnet script? #715

msfcolombo opened this issue Apr 17, 2023 · 1 comment

Comments

@msfcolombo
Copy link

I'm facing the error below:

c:\temp> dotnet script --verbosity t Program.csx
...
C:\Users\tonystark\AppData\Local\Temp\dotnet-script\c\temp\net7.0 : dotnet restore "C:\Users\tonystark\AppData\Local\Temp\dotnet-script\c\temp\net7.0\script.csproj" -r win10-x64  --configfile "c:\temp\NuGet.Config"
  Determining projects to restore...
C:\Program Files\dotnet\sdk\7.0.203\NuGet.targets(132,5): warning : The plugin credential provider could not acquire credentials. Authentication may require manual action. Consider re-running the command with --interactive for `dotnet`, /p:NuGetInteractive="true" for MSBuild or removing the -NonInteractive switch for `NuGet` [C:\Users\tonystark\AppData\Local\Temp\dotnet-script\c\temp\net7.0\script.csproj]
...

The suggested fix, passing --interactive, clashes with dotnet script own flag. Is there any workaround for this?

@filipw
Copy link
Member

filipw commented May 10, 2023

This is currently not possible. however, once you login with the credential provider outside of dotnet-script (using dotnet CLI), it should be automatically picked up by dotnet-script.

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

No branches or pull requests

2 participants