❔ NuGet broken, i have no idea
So it has been ages since i coded in c#, turns out my NuGet is broken or something
50 Replies
it also doesnt matter what ide i am using, its in vsc, intelliJ and cmd
if code is open source please link it
https://github.com/SebLague/Chess-Challenge
here is the code, though i am pretty sure thats not it, i didnt make it. its straight downloaded without any changes
GitHub
GitHub - SebLague/Chess-Challenge: https://youtu.be/iScy18pVR58
https://youtu.be/iScy18pVR58. Contribute to SebLague/Chess-Challenge development by creating an account on GitHub.
https://www.youtube.com/watch?v=iScy18pVR58 (from this video if that clears things up)
it works fine for me. run a
dotnet --info
dot
there is my
dotnet --info
and it is currently working fine for metry
dotnet build -v
and show us the output?you have to add the level of "-v"
dotnet build --verbosity diagnostic
for example
-v, --verbosity <LEVEL> Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].
What ZP said
dotnet build --verbosity diagnostic
oh god
thats a lot of text
does anything look off?
thats not going to fit in this discord lol
i have no idea lol, never seen it, though nothing looks red
its just some white, gray and blue text
oh
thats the only error
can you run a
echo %PATH%
and tell us if you see a "C:\Program Files (x86)\dotnet" in the output?
I don't think that is the issue but worth a checklol, it littaraly echo's
%PATH%
one sec ill get the powershell command. I was using terminal
echo $env:path
in powershell
what you want to make sure is that you have a C:\Program Files\dotnet
before you see a C:\Program Files (x86)\dotnet
because you want to make sure x64 is being prefered over x32
again... I don't think this is the issue but I have seen other users with this issue so I just want to confirm this isn't iti dont see any
programFiles\dotnet
or something simulara lot of paths oh god
only that last one has dotnet in it
C:\Users\roose\.dotnet\tools
wait nevermind
you are good. it isn't the issue. I didn't think it was
yeah but you have
C:\Program Files\dotnet
, and that is the one you care about. that is correct
can you build other projects?i mean, i rarely code in c# XD, last time on this pc was a year ago
i can build a lot of java projects lol, but you probably ment building c# projects
yes C#
i dont have any other c# project to test
download some 🙂
or make one
great, cant even run a c# project of 1 line 😅
just did
dotnet new console -o app
canyou open your .csproj please and share it with us
app.csproj
regardless I think you need to install the latest
dotnet
something is wrongI'm not sure what is wrong with you environent, but I would isntall the latest .NET 7:
https://dotnet.microsoft.com/en-us/download
Microsoft
Download .NET (Linux, macOS, and Windows)
Free downloads for building and running .NET apps on Linux, macOS, and Windows. Runtimes, SDKs, and developer packs for .NET Framework, .NET, and ASP.NET.
its searching for
C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages
but \Microsoft Visual Studio
doesnt exist...
probably because i am stupid and moved things around lolyeah. if you moved things around that would explain it
can you try to change the
xxx.csproj
from <TargetFramework>net6.0</TargetFramework>
to <TargetFramework>net7.0</TargetFramework>
and see if that helps the build at all
"6.0" -> "7.0"nope
i am going to reinstall vsc, but in the path that is in the programfile
nope
can you try a
dotnet clean
and dotnet build
afterdotnet clean gives the same error
the same red long error MSB4018
In my case. Go to C:\Program Files(x86)\Microsoft Visual Studio\Shared then create a new folder name is "NugetPackages"saw this from a stack overflow post might be worth a shot
lol, i cant even find that file
not a file. is a folder
oh yea, thats what i ment
but i cant even find Microsoft visual studio
can you hop on a screenshare? we are missing something here
sure
#dev-vc-0
lol
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.