question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet --interactive not working in 5.0.4xx

See original GitHub issue

I’ve followed all instructions and installed the credential provider. When I run dotnet new --install <package> --nuget-source <source> --interactive, nothing happens, the template is NOT installed and no errors are shown. However if I run dotnet restore <scratch\restore.csproj> --interactive, it prompts for credentials as expected. How come the dotnet new --interactive doesn’t prompt me?? Running dotnet --info gives me the following:

.NET SDK (reflecting any global.json):
 Version:   5.0.401
 Commit:    4bef5f3dbf

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.19042
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\5.0.401\

Host (useful for support):
  Version: 5.0.10
  Commit:  e1825b4928

.NET SDKs installed:
  5.0.401 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bekir-ozturkcommented, Sep 27, 2021

.NET 5 has entered servicing mode, which means it either needs to be security issue or high impact or no workaround to be fixed. Since .NET 5 serving would go out around same time as .NET 6 stable release and since there is a workaround, we have decided to not fix this bug at this time.

Feel free to reply if you have further concerns.

0reactions
DavidKarlascommented, Sep 19, 2021

Another temporary workaround is, to send link to download .nupkg via https, and than user can do ‘dotnet new -i path/to/downloaded.nupkg’

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't open or create .Net Interactive notebook #1872
Net Interactive notebooks, I can't create or open .Net Interactive ... NET 5 is not installed (otherwise same Windows version, same .
Read more >
Microsoft.dotnet-interactive is not compatible with net5.0
Resolving error message Microsoft.dotnet-interactive is not compatible with net5.0 when updating dotnet-interactive for Jupyter Notebook.
Read more >
"dotnet restore --interactive" doesn't work with Azure Artifacts
When I tried dotnet restore --configfile .\.nuget\NuGet.Config --interactive it did prompt me. I could login in and everything worked! I'm not ...
Read more >
.NET Interactive is here! | .NET Notebooks Preview 2 ...
Today we are excited to announce Preview 2 of the .NET Notebook experience. Preview 2 includes C#, F#, and PowerShell support.
Read more >
Exploring .NET interactive notebooks with VS Code
In this post I explore .NET Interaction Notebooks for VS Code, discuss the options, and show how to get started.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found