Microsoft.AspNetCore.Spaservices.Extensions. Does not exist

Asked

Viewed 114 times

-1

I just installed VS2019 into my new machine. And to test, I created a simple project. I noticed you no longer have the . net 3.1 but the 5. But my projects are in version 3 and I need them to rotate, because change would not be a good at this time.

Second question, I went rolling and suddenly:

Erro NU1101 Não é possível encontrar o pacote Microsoft.AspNetCore.SpaServices.Extensions. Não existe nenhum pacote com esta ID nas origens: Microsoft Visual Studio Offline Packages Project2 C:\Users\Gladson\source\repos\Project2\Project2.csproj

I tried to install by NUGET but without success. It presents the same message.

  • 1

    have you tried searching for "download . net core 3.1" on the internet? about the nuget message, have you looked up if you are going to get the package from nuget.org? Apparently, you’re just going through the local folders on your computer. In VS, if it is in "Manage Nuget Packages", in the upper right side there is "package source" which is where you are going to get

  • So with the new version I need to install . netCore3 is this ? About where to look, I didn’t understand what you meant, or how to do.

1 answer

1


The error message has nothing to do with version of . Net or C#... Like the Ricardopunctual commented, your project is only looking for local/offline nuget packages and is not looking for nuget.org.

Check the settings in your Visual Studio.

Check if download option is enabled inserir a descrição da imagem aqui

Just as if you have the nuget.org repository configured correctly, plus only Microsoft offline packages inserir a descrição da imagem aqui

  • Perfect, exactly that. It worked 100%

Browser other questions tagged

You are not signed in. Login or sign up in order to post.