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

Project that does not use external NuGet packages will not run because of missing packages #13440

Closed
SHOOSH12SR opened this issue May 14, 2024 · 4 comments
Labels
Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Type:Bug

Comments

@SHOOSH12SR
Copy link

NuGet Product Used

dotnet.exe, NuGet.exe, Visual Studio Package Management UI

Product Version

dotnet Version 8.0.205, could not find NuGet version or msbuild version

Worked before?

same dotnet version

Impact

I'm unable to use this version

Repro Steps & Context

I was working on a Blazor wasm project but then transitioned to a console project that uses a NuGet package (Raylibcs installed through VS2022 NuGet menu). when I went to work on the Blazor project it wouldn't run because it couldn't find the Raylib package.
all dotnet projects were working fine before installing Raylib, now they don't run because they can't find the dependency.

Verbose Logs

C:\Users\ssrou\source\repos\calc\calc\Client\calc.Client.csproj : error NU1301: The local source 'C:\Users\ssrou\AppData\Roaming\NuGet\raylibcs' doesn't exist. [C:\Users\ssrou\source\repos\ca
lc\calc\Server\calc.Server.csproj]
C:\Users\ssrou\source\repos\calc\calc\Server\calc.Server.csproj : error NU1301: The local source 'C:\Users\ssrou\AppData\Roaming\NuGet\raylibcs' doesn't exist.
C:\Users\ssrou\source\repos\calc\calc\Server\calc.Server.csproj : error NU1301: The local source 'C:\Users\ssrou\AppData\Roaming\NuGet\raylibcs' doesn't exist.
C:\Users\ssrou\source\repos\calc\calc\Client\calc.Client.csproj : error NU1301: The local source 'C:\Users\ssrou\AppData\Roaming\NuGet\raylibcs' doesn't exist. [C:\Users\ssrou\source\repos\ca
lc\calc\Server\calc.Server.csproj]
C:\Users\ssrou\source\repos\calc\calc\Server\calc.Server.csproj : error NU1301: The local source 'C:\Users\ssrou\AppData\Roaming\NuGet\raylibcs' doesn't exist.
C:\Users\ssrou\source\repos\calc\calc\Client\calc.Client.csproj : error NU1301: The local source 'C:\Users\ssrou\AppData\Roaming\NuGet\raylibcs' doesn't exist. [C:\Users\ssrou\source\repos\ca
lc\calc\Server\calc.Server.csproj]
C:\Users\ssrou\source\repos\calc\calc\Client\calc.Client.csproj : error NU1301: The local source 'C:\Users\ssrou\AppData\Roaming\NuGet\raylibcs' doesn't exist. [C:\Users\ssrou\source\repos\ca
lc\calc\Server\calc.Server.csproj]
C:\Users\ssrou\source\repos\calc\calc\Client\calc.Client.csproj : error NU1301: The local source 'C:\Users\ssrou\AppData\Roaming\NuGet\raylibcs' doesn't exist. [C:\Users\ssrou\source\repos\ca
lc\calc\Server\calc.Server.csproj]
C:\Users\ssrou\source\repos\calc\calc\Client\calc.Client.csproj : error NU1301: The local source 'C:\Users\ssrou\AppData\Roaming\NuGet\raylibcs' doesn't exist. [C:\Users\ssrou\source\repos\ca
lc\calc\Server\calc.Server.csproj]

The build failed. Fix the build errors and run again.
@jeffkl
Copy link
Contributor

jeffkl commented May 15, 2024

@SHOOSH12SR it looks like you've configured a local feed pointing to a folder at C:\Users\ssrou\AppData\Roaming\NuGet\raylibcs. I would suggest removing that feed from your configuration to get unblocked. Information about where NuGet finds configuration files is at https://learn.microsoft.com/nuget/consume-packages/configuring-nuget-behavior

@jeffkl jeffkl added Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. WaitingForCustomer Applied when a NuGet triage person needs more info from the OP and removed Triage:Untriaged labels May 15, 2024
@SHOOSH12SR
Copy link
Author

I've created nuget config files for each solution and it works but all other projects (including new ones) need a nuget.config file to run. is there a way to reset the machine-wide config or something along those lines?

@dotnet-policy-service dotnet-policy-service bot added WaitingForClientTeam Customer replied, needs attention from client team. Do not apply this label manually. and removed WaitingForCustomer Applied when a NuGet triage person needs more info from the OP labels May 15, 2024
@jeffkl
Copy link
Contributor

jeffkl commented May 15, 2024

Yes you'll need to open your machine-wide and user-wide configuration and see what's configured that feed.

%AppData%\NuGet\NuGet.Config and %ProgramFiles(x86)%\NuGet\Config\*.config

@dotnet-policy-service dotnet-policy-service bot added WaitingForCustomer Applied when a NuGet triage person needs more info from the OP and removed WaitingForClientTeam Customer replied, needs attention from client team. Do not apply this label manually. labels May 15, 2024
@SHOOSH12SR
Copy link
Author

it works, thank you so much!

@dotnet-policy-service dotnet-policy-service bot added WaitingForClientTeam Customer replied, needs attention from client team. Do not apply this label manually. and removed WaitingForCustomer Applied when a NuGet triage person needs more info from the OP labels May 15, 2024
@dotnet-policy-service dotnet-policy-service bot removed the WaitingForClientTeam Customer replied, needs attention from client team. Do not apply this label manually. label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Type:Bug
Projects
None yet
Development

No branches or pull requests

2 participants