✅ How to correctly install dependencies with nuget and rider ?
Hi!
project complains about missing dependencies, I installed dependencies but it still complains , how to make that work ?
186 Replies
first of all how to understnad what packages it is complaining about in particular ? which package/dependency is lacking ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes but since I was using rider can Rider show list of dependencies that is lack for particular project ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
should I be inthe project folder in terminal ?
or I can run from any place?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
but I don't have solution folder
give me a second to explain something
and pay attention to next thing ,..
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes and no in same time.. I will explain
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I have a sln files like that when I'm creating a new project/solution with rider
looks like that
but I don't have solution file and that kind of structure in project I want to test I downloaded from github
so I have 2 projects
AvaloniaApplication1 has no issues there
DockXamlSample has
because inside is only this
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
no
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
GitHub
GitHub - wieslawsoltes/Dock: A docking layout system.
A docking layout system. Contribute to wieslawsoltes/Dock development by creating an account on GitHub.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
that means I have to open that whole stuff in Rider ?
and can't and shouldn't open them separatelly ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
so I have to open the whole thing like that ?
tebeco#0205
TLDR: if you don't know yet internal of msbuild ... anything with an sln ... open the sln
Quoted by
<@!689473681302224947> from #How to correctly install dependencies with nuget and rider ? (click here)
React with ❌ to remove this embed.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yep you are right ..
now it works , let me ask you one last question then
all nuget packages are installed here
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
is that correct place to collect them ? I mean is that global place ? I thought nuGet gets packages for each project locally
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
how to understand all that ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes I dont need to have 1000 instances of that lib
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
but technically I can install package locally ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
instead of throwing it into global basket
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
afaik node installs locally but also can install globally with kword global
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
you mean npm can't install globally ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ok thanks for help ! much appreciate
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
you helped a lot !!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
👌
first what I need now is to read all that from scratch
again.. thanks for help that works now
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
@TeBeConsulting wait..
that is getting interesting , now I'm moving backwards in direction
I have a project that is new and has no Dock dependencies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
what if I need to install that locally ?
how to include library here for project locally ?
any ideas ? in Rider IDE
here is nuget tab , and it has no install locally button or something like that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
if I will start to Write something like Dock in my project it is not going to recognize it
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes that works fine , but I thought maybe you know how to do that from Rider
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
it says all packages are restored when pushing that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
all I was saying that it still installs that globally , if you remember we were discussing that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
while that command you wrote above installs it locally I just thought maybe there is something that install package locally from UI
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
fuck rider then
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
if no
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
fuck me then
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes ...
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
you don't get what I'm complaining about ...
see.. if I install package from command you wrote above
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
it downloads something and it adds that entry to HERE
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
and ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
and ?
how to add dock here
in fkn package
without typing that command every time in shell
just install package
I did and it's here in GLOBAL folder , I'm using word global because every package that is downloaded from nuGet is here I suppose
C:\Users\user1\.nuget\packages
yes right
this is project file opened in notepad++
you can open it using rider
just f4
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
and if I will maually add that package there it will appear in packages list right ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
do I need to do that manually ? @penance every time I want to include pack in project
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
right, but your command
dotnet add package name
works differently little bit right ? it adds that also somewhere ... or it does same except it also adds just entries into project file ?Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ok got it ... thanks lol
I referenced it manually then like that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
do I need one ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oh yes... it will download another version if I dont explicitly tell a version
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ok so version I will get from ? github page ?
I mean of developer of that package
or it can extract version from somewhere automatically
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes right I can take that string directly from there
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
THANKS ! !~!!!!!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I think this website is for people who use vsc..
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
added
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I mean u can use rider, vs thats all
am I right that I could just add that line only without installing a package at first place
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
and that would trigger downloading a package at build time
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
nice
already wanted to ask about this
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ToBeConsulting is real monster lol
btw u need avalonia 11 to use dock.avalonia 11.0.0 preview
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
avalonia 11 wasn't released officialy
only preview versions with bugs
so..
I have this avalonia
ah u can easily remove Avalonia package because Avalonia.Desktop already has reference
all that hassle is because of getting dockable UI
and by the way I have no avalonia 11 installed as you can see but samples work fine @penance
how's that ? if I need new avalonia for dock to make dock work
hm ok
can u check smth for me
??
yes
did u install preview version of dock.avalonia?
yes looks like that
pr 4
ok, now remove avalonia package
Avalonia 0.10.18
it will be interesting
ok
remove like that ?
yes
and rebuild, run
it should work without avalonia package I think
it looses some dependencies
one moment
some other ones I think
ahah I see Dock.Avalonia has reference to Avalonia 11
thats why it's not work
ok thanks
why it is not installing it back ?
show me your csproj
add Avalonia package
Dock.Avalonia has reference to 11 version of avalonia
thats why u get error
maybe..
this is from nuGet
but what if I need to add preview version 11
just change a
this one
ok I did that
yes
but u can avoid this
but this error didnt go
remove avalonia package and upgrade Avalonia.Diagnostics
i already said
u need to use avalonia 0.10.18
and this error will be removed
this error are related to dock or to something else ?
no no, only avalonia related to this problem
not problem exactly
ok I changed version to this and problem gone ..
I just don't get if it causes such problems that makes it even not buildable what is the reason to expose it at all
can u try this package?
I think it should help
avalonia 11 preview and this package
maybe it will help
I think I broke it completely
ok not going to torture you with that .. thanks so much for help
will continue my journey with it .. if you interested in experiments with something I can even format C for you just tell me
thanks for help again :))
it is problem with csproj
thats why load failed
any visible defects there ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yep
and ? what it means those are 2 different packages what is wrong with that ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ahaa .. ok
I can't shuffle versions
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View