dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.74k stars 1.07k forks source link

Unable to find System.Memory and System.Buffers in dotnet6 NuGet source #18265

Open u2m4c6 opened 3 years ago

u2m4c6 commented 3 years ago

Error message

/Users/[username]/programming/learning/tutorials/csharp/blazorwasm/blazorNETUG/blazorNETUG.csproj : error NU1101: Unable to find package System.Memory. No packages exist with this id in source(s): dotnet6 /Users/[username]/programming/learning/tutorials/csharp/blazorwasm/blazorNETUG/blazorNETUG.csproj : error NU1101: Unable to find package System.Buffers. No packages exist with this id in source(s): dotnet6

dotnet --info

.NET SDK (reflecting any global.json): Version: 6.0.100-preview.5.21308.63 Commit: 3cf5784

Runtime Environment: OS Name: Mac OS X OS Version: 11.4 OS Platform: Darwin RID: osx.11.0-arm64 Base Path: /usr/local/share/dotnet/sdk/6.0.100-preview.5.21308.63/

Host (useful for support): Version: 6.0.0-preview.5.21301.5 Commit: ec3e0b276b

.NET SDKs installed: 6.0.100-preview.5.21308.63 [/usr/local/share/dotnet/sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 6.0.0-preview.5.21301.17 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.0-preview.5.21301.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download

I am a total beginner to .NET so sorry if this is an obvious answer. I want to try out the Blazor hot-reload and debugging on macOS otherwise I would use .NET 5 and/or .NET 6 preview 4.

dotnet-issue-labeler[bot] commented 3 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

dsplaisted commented 3 years ago

It looks like NuGet.org may not be in the package sources being used, which is usually determined by NuGet.config files. Documentation on this is here: https://docs.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior

Does this help?