C
C#2y ago
Codsworth

✅ 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
Codsworth
CodsworthOP2y ago
first of all how to understnad what packages it is complaining about in particular ? which package/dependency is lacking ?
Codsworth
CodsworthOP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
yes but since I was using rider can Rider show list of dependencies that is lack for particular project ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
should I be inthe project folder in terminal ? or I can run from any place?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
but I don't have solution folder give me a second to explain something and pay attention to next thing ,..
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
yes and no in same time.. I will explain
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
I have a sln files like that when I'm creating a new project/solution with rider
Codsworth
CodsworthOP2y ago
Codsworth
CodsworthOP2y ago
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
Codsworth
CodsworthOP2y ago
Codsworth
CodsworthOP2y ago
AvaloniaApplication1 has no issues there DockXamlSample has because inside is only this
Codsworth
CodsworthOP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
no
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
that means I have to open that whole stuff in Rider ? and can't and shouldn't open them separatelly ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
so I have to open the whole thing like that ?
MODiX
MODiX2y ago
tebeco#0205
TLDR: if you don't know yet internal of msbuild ... anything with an sln ... open the sln
React with ❌ to remove this embed.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
yep you are right .. now it works , let me ask you one last question then all nuget packages are installed here
C:\Users\xanter\.nuget\packages
C:\Users\xanter\.nuget\packages
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
is that correct place to collect them ? I mean is that global place ? I thought nuGet gets packages for each project locally
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
how to understand all that ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
yes I dont need to have 1000 instances of that lib
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
but technically I can install package locally ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
instead of throwing it into global basket
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
afaik node installs locally but also can install globally with kword global
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
you mean npm can't install globally ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
ok thanks for help ! much appreciate
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
you helped a lot !!
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
👌 first what I need now is to read all that from scratch again.. thanks for help that works now
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
@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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
what if I need to install that locally ?
Codsworth
CodsworthOP2y ago
Codsworth
CodsworthOP2y ago
how to include library here for project locally ? any ideas ? in Rider IDE
Codsworth
CodsworthOP2y ago
Codsworth
CodsworthOP2y ago
here is nuget tab , and it has no install locally button or something like that
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
if I will start to Write something like Dock in my project it is not going to recognize it
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
yes that works fine , but I thought maybe you know how to do that from Rider
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
SWEETPONY
SWEETPONY2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
it says all packages are restored when pushing that
Codsworth
CodsworthOP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
all I was saying that it still installs that globally , if you remember we were discussing that
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
while that command you wrote above installs it locally I just thought maybe there is something that install package locally from UI
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
fuck rider then
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
if no
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
fuck me then
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
<ItemGroup>
<ProjectReference Include="..\..\src\Dock.Model\Dock.Model.csproj" />
<ProjectReference Include="..\..\src\Dock.Model.Avalonia\Dock.Model.Avalonia.csproj" />
<ProjectReference Include="..\..\src\Dock.Avalonia\Dock.Avalonia.csproj" />
<ProjectReference Include="..\..\src\Dock.Serializer\Dock.Serializer.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Dock.Model\Dock.Model.csproj" />
<ProjectReference Include="..\..\src\Dock.Model.Avalonia\Dock.Model.Avalonia.csproj" />
<ProjectReference Include="..\..\src\Dock.Avalonia\Dock.Avalonia.csproj" />
<ProjectReference Include="..\..\src\Dock.Serializer\Dock.Serializer.csproj" />
</ItemGroup>
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
yes ...
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
you don't get what I'm complaining about ... see.. if I install package from command you wrote above
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
it downloads something and it adds that entry to HERE
Codsworth
CodsworthOP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
and ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
and ? how to add dock here
Codsworth
CodsworthOP2y ago
Codsworth
CodsworthOP2y ago
in fkn package without typing that command every time in shell
SWEETPONY
SWEETPONY2y ago
just install package
Codsworth
CodsworthOP2y ago
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
SWEETPONY
SWEETPONY2y ago
<ItemGroup>
<PackageReference Include="LanguageExt.Core" Version="4.2.9" />
<PackageReference Include="ReactiveUI.Fody" Version="18.3.1" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="LanguageExt.Core" Version="4.2.9" />
<PackageReference Include="ReactiveUI.Fody" Version="18.3.1" />
</ItemGroup>
Codsworth
CodsworthOP2y ago
yes right
Codsworth
CodsworthOP2y ago
Codsworth
CodsworthOP2y ago
this is project file opened in notepad++
SWEETPONY
SWEETPONY2y ago
you can open it using rider just f4
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
and if I will maually add that package there it will appear in packages list right ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
SWEETPONY
SWEETPONY2y ago
yes
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
do I need to do that manually ? @penance every time I want to include pack in project
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
ok got it ... thanks lol
<PackageReference Include="Dock.Avalonia"></PackageReference>
<PackageReference Include="Dock.Avalonia"></PackageReference>
I referenced it manually then like that
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
do I need one ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
oh yes... it will download another version if I dont explicitly tell a version
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
yes right I can take that string directly from there
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
THANKS ! !~!!!!!
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
SWEETPONY
SWEETPONY2y ago
I think this website is for people who use vsc..
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
added
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
SWEETPONY
SWEETPONY2y ago
I mean u can use rider, vs thats all
Codsworth
CodsworthOP2y ago
am I right that I could just add that line only without installing a package at first place
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
and that would trigger downloading a package at build time
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
SWEETPONY
SWEETPONY2y ago
nice already wanted to ask about this
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
ToBeConsulting is real monster lol
SWEETPONY
SWEETPONY2y ago
btw u need avalonia 11 to use dock.avalonia 11.0.0 preview
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
SWEETPONY
SWEETPONY2y ago
avalonia 11 wasn't released officialy only preview versions with bugs so..
Codsworth
CodsworthOP2y ago
I have this avalonia
Codsworth
CodsworthOP2y ago
SWEETPONY
SWEETPONY2y ago
ah u can easily remove Avalonia package because Avalonia.Desktop already has reference
Codsworth
CodsworthOP2y ago
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
SWEETPONY
SWEETPONY2y ago
hm ok can u check smth for me ??
Codsworth
CodsworthOP2y ago
yes
SWEETPONY
SWEETPONY2y ago
did u install preview version of dock.avalonia?
Codsworth
CodsworthOP2y ago
Codsworth
CodsworthOP2y ago
yes looks like that pr 4
SWEETPONY
SWEETPONY2y ago
ok, now remove avalonia package Avalonia 0.10.18 it will be interesting
Codsworth
CodsworthOP2y ago
ok
Codsworth
CodsworthOP2y ago
Codsworth
CodsworthOP2y ago
remove like that ?
SWEETPONY
SWEETPONY2y ago
yes and rebuild, run it should work without avalonia package I think
Codsworth
CodsworthOP2y ago
Codsworth
CodsworthOP2y ago
it looses some dependencies
SWEETPONY
SWEETPONY2y ago
one moment
Codsworth
CodsworthOP2y ago
some other ones I think
SWEETPONY
SWEETPONY2y ago
ahah I see Dock.Avalonia has reference to Avalonia 11 thats why it's not work ok thanks
Codsworth
CodsworthOP2y ago
Codsworth
CodsworthOP2y ago
why it is not installing it back ?
SWEETPONY
SWEETPONY2y ago
show me your csproj
Codsworth
CodsworthOP2y ago
<ItemGroup>
<PackageReference Include="Avalonia.Desktop" Version="0.10.18" />
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="0.10.18" />
<PackageReference Include="XamlNameReferenceGenerator" Version="1.5.1" />
<PackageReference Include="Dock.Avalonia" Version="11.0.0-preview4" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia.Desktop" Version="0.10.18" />
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="0.10.18" />
<PackageReference Include="XamlNameReferenceGenerator" Version="1.5.1" />
<PackageReference Include="Dock.Avalonia" Version="11.0.0-preview4" />
</ItemGroup>
SWEETPONY
SWEETPONY2y ago
add Avalonia package Dock.Avalonia has reference to 11 version of avalonia thats why u get error maybe..
Codsworth
CodsworthOP2y ago
<PackageReference Include="Avalonia" Version="0.10.18" />
<PackageReference Include="Avalonia" Version="0.10.18" />
this is from nuGet but what if I need to add preview version 11
Codsworth
CodsworthOP2y ago
just change a
Codsworth
CodsworthOP2y ago
this one
<PackageReference Include="Avalonia" Version="11.0.0-preview4"/>
<PackageReference Include="Avalonia" Version="11.0.0-preview4"/>
ok I did that
SWEETPONY
SWEETPONY2y ago
yes but u can avoid this
Codsworth
CodsworthOP2y ago
but this error didnt go
SWEETPONY
SWEETPONY2y ago
remove avalonia package and upgrade Avalonia.Diagnostics
Codsworth
CodsworthOP2y ago
SWEETPONY
SWEETPONY2y ago
i already said u need to use avalonia 0.10.18 and this error will be removed
Codsworth
CodsworthOP2y ago
this error are related to dock or to something else ?
SWEETPONY
SWEETPONY2y ago
no no, only avalonia related to this problem not problem exactly
Codsworth
CodsworthOP2y ago
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
SWEETPONY
SWEETPONY2y ago
can u try this package?
SWEETPONY
SWEETPONY2y ago
I think it should help avalonia 11 preview and this package maybe it will help
Codsworth
CodsworthOP2y ago
I think I broke it completely
Codsworth
CodsworthOP2y ago
Codsworth
CodsworthOP2y ago
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 :))
SWEETPONY
SWEETPONY2y ago
it is problem with csproj thats why load failed
Codsworth
CodsworthOP2y ago
Codsworth
CodsworthOP2y ago
any visible defects there ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
SWEETPONY
SWEETPONY2y ago
yep
Codsworth
CodsworthOP2y ago
and ? what it means those are 2 different packages what is wrong with that ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Codsworth
CodsworthOP2y ago
ahaa .. ok I can't shuffle versions
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server