C
C#β€’7mo ago
toiletsink

packages cant find path

been having the same error since yesterday idk atp tried reading some of the same questions asked on the developer community but i really didnt understand anything
No description
57 Replies
jcotton42
jcotton42β€’7mo ago
You could maybe try blowing away the package cache, in case it got messed up somehow
toiletsink
toiletsinkβ€’7mo ago
how can i do that?
jcotton42
jcotton42β€’7mo ago
@toiletsink dotnet nuget locals all --clear I would close VS first that will blow away all nuget caches
toiletsink
toiletsinkβ€’7mo ago
now it shows this, do i just wait this out or do i have to reinstall my packages?
No description
jcotton42
jcotton42β€’7mo ago
did you close VS first? it should do a package restore when you open or build the solution? you could try a dotnet restore from the solution directory
toiletsink
toiletsinkβ€’7mo ago
yea packages now loaded when i restarted my vs after i sent this lmao lemem try getting the firebase ios
toiletsink
toiletsinkβ€’7mo ago
womp womp
No description
jcotton42
jcotton42β€’7mo ago
hmm follow that path yourself in File Explorer, where does it end?
toiletsink
toiletsinkβ€’7mo ago
C:\Users\AdrianJ.nuget\packages\xamarin.firebase.ios.core\8.10.0.3\lib\net6.0-ios15.4\Firebase.Core.resources\GoogleUtilitiesComponents.xcframework\ios-arm64_x86_64-simulator\GoogleUtilitiesComponents.framework\PrivateHeaders nothing inside privateheaders for some reasons
jcotton42
jcotton42β€’7mo ago
hmmm it shows up in nuget package explorer https://nuget.info/packages/Xamarin.Firebase.iOS.Core/8.10.0.3
jcotton42
jcotton42β€’7mo ago
No description
toiletsink
toiletsinkβ€’7mo ago
should i just download it ffrom there? like the missing ones?
jcotton42
jcotton42β€’7mo ago
oh wait, I wonder if you might be hitting MAX_PATH...
toiletsink
toiletsinkβ€’7mo ago
yea thats the thing i saw on the dev community
jcotton42
jcotton42β€’7mo ago
exactly at 260
jcotton42
jcotton42β€’7mo ago
the "duplicate" isn't even the same issue omegalul
jcotton42
jcotton42β€’7mo ago
you could try moving the package cahce folder with the NUGET_PACKAGES env var https://learn.microsoft.com/en-us/nuget/consume-packages/managing-the-global-packages-and-cache-folders
How to manage the global packages, cache, temp folders in NuGet
How to manage the global package installation folder, the package cache, and the temp folders that exist on a computer, which are used when installing, restoring, and updating packages.
toiletsink
toiletsinkβ€’7mo ago
GitHub
VS paired to MAC throws MessagingRemoteException when a MAUI app is...
Steps to Reproduce Pair VS for Windows to MAC; Add DevExpress Packages to the project (or use DX template) Select a target simulator device in the Build/Run selector; Try to build the application. ...
jcotton42
jcotton42β€’7mo ago
try something short like C:\nugetpkg that appears to be a completely different issue they're on macOS
toiletsink
toiletsinkβ€’7mo ago
ah i see, mb lemme try reading the one u sent my pea brain can NOT understand this manπŸ’€πŸ’€
jcotton42
jcotton42β€’7mo ago
you know how to set environment variables?
toiletsink
toiletsinkβ€’7mo ago
nope
jcotton42
jcotton42β€’7mo ago
this thing
No description
No description
jcotton42
jcotton42β€’7mo ago
make a new one under the User section with a name of NUGET_PACKAGES, and a value of the path you want to use I'd make it short, something like C:\nuget
toiletsink
toiletsinkβ€’7mo ago
this one?
No description
jcotton42
jcotton42β€’7mo ago
no at the bottom of that dialog
toiletsink
toiletsinkβ€’7mo ago
new right
No description
jcotton42
jcotton42β€’7mo ago
yes
toiletsink
toiletsinkβ€’7mo ago
what do i put in the variable value?
MODiX
MODiXβ€’7mo ago
jcotton42
make a new one under the User section with a name of NUGET_PACKAGES, and a value of the path you want to use
Quoted by
<@446416451230760990> from #packages cant find path (click here)
React with ❌ to remove this embed.
toiletsink
toiletsinkβ€’7mo ago
ah mb
toiletsink
toiletsinkβ€’7mo ago
No description
toiletsink
toiletsinkβ€’7mo ago
alright made one now
jcotton42
jcotton42β€’7mo ago
no it should be named NUGET_PACKAGES and the value should be a nice short path
toiletsink
toiletsinkβ€’7mo ago
ah ok lemme make one
jcotton42
jcotton42β€’7mo ago
I'd make it something like C:\nuget (make the folder first)
toiletsink
toiletsinkβ€’7mo ago
No description
toiletsink
toiletsinkβ€’7mo ago
here
jcotton42
jcotton42β€’7mo ago
yep make that folder, then reopen VS and try again
toiletsink
toiletsinkβ€’7mo ago
WAAAAAAAAAAAAA
No description
toiletsink
toiletsinkβ€’7mo ago
it used the nuget folder but still
jcotton42
jcotton42β€’7mo ago
that's a different error tho! different path
toiletsink
toiletsinkβ€’7mo ago
yea different path now, lemme check whats inside
jcotton42
jcotton42β€’7mo ago
@toiletsink if you go to nuget.org, search for the package, then click "nuget package explorer" in the sidebar on the right, you can get to this thing which lets you browse the package contents online
toiletsink
toiletsinkβ€’7mo ago
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" ` -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force i just paste thsi to my powershell?
jcotton42
jcotton42β€’7mo ago
at a minimum you'll need to restart VS after setting the reg key an admin powershell yes then blow away the nuget cache, restart VS, and try again
toiletsink
toiletsinkβ€’7mo ago
by doing dotnet nuget locals all --clear right?
jcotton42
jcotton42β€’7mo ago
yes
toiletsink
toiletsinkβ€’7mo ago
alright ill try now, wish me luck fr
toiletsink
toiletsinkβ€’7mo ago
forced the long path, cleared, restarted,
No description
jcotton42
jcotton42β€’7mo ago
:/ you could try restarting Windows, I can't recall if that setting needs an OS reboot that's my last idea
toiletsink
toiletsinkβ€’7mo ago
dont wanna jinx it but its taking longer to install this now for some reasons after i restarted
toiletsink
toiletsinkβ€’7mo ago
welp
No description
toiletsink
toiletsinkβ€’7mo ago
maybe you know any firebase packages for both android and ios? lmao
toiletsink
toiletsinkβ€’7mo ago
how bout this one? maybe you know a fix for this?
No description