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

Build fails without nuget as package source #6

Open
tlaur opened this issue Jun 3, 2023 · 3 comments
Open

Build fails without nuget as package source #6

tlaur opened this issue Jun 3, 2023 · 3 comments

Comments

@tlaur
Copy link

tlaur commented Jun 3, 2023

I was following the Create a web UI with ASP.NET Core Microsoft Learn module and hit a snag trying to build the project after cloning this repo.

Specifically I received the following error:

error NU1101: Unable to find package Microsoft.VisualStudio.Web.CodeGeneration.Design. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages

I was able to fix the issue by adding https://api.nuget.org/v3/index.json as a package source for the ContosoPizza project in Visual Studio.

@ivalkshfoeif
Copy link

I didn't use Visual Studio but vscode, I ran this command in the terminal and it works for me.

dotnet add package Microsoft.EntityFrameworkCore.SqlServer

@CamSoper
Copy link
Contributor

@tlaur @ivalkshfoeif

I'm not able to repro on my end. What versions of the .NET SDK do you have installed? Run dotnet --list-sdks to get a list.

In the meantime, it works in Codespaces. Every GitHub account has some Codespaces hours every month now.

@martinandrovich
Copy link

For those using VS Code (from this answer):

dotnet nuget add source "https://api.nuget.org/v3/index.json" --name "NuGet official package source"

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

No branches or pull requests

4 participants