C
C#2mo ago
Sher

Restoring packages takes way too long

I use dotnet 8 and JetBrains Rider. Recently after creating a new project I noticed that restoring packages takes at least 10 minutes. Every time I rebuild a project or install net nuget packages I have to wait. The project is new and I only have a few nuget packages installed.
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.0-preview.4.24266.19" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Telegraph.Sharp" Version="2.1.8" />
<PackageReference Include="Telegram.Bot" Version="22.0.0" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.0-preview.4.24266.19" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Telegraph.Sharp" Version="2.1.8" />
<PackageReference Include="Telegram.Bot" Version="22.0.0" />
</ItemGroup>

</Project>
8 Replies
Sher
SherOP2mo ago
What could be a reason for this and how can I fix this?
❤RieBi&❤
❤RieBi&❤2mo ago
What OS is it?
mchristiansen_
mchristiansen_2mo ago
What version of Rider are you running?
Sher
SherOP2mo ago
Windows 11
Sher
SherOP2mo ago
No description
mchristiansen_
mchristiansen_2mo ago
Couple of guesses: 1. I had some issues with 2024.2.* with project loading being very slow. However, my issues were mostly fixed by 2024.2.7. Still you could test the EAP to see if your experience is any better. 2. Hit Alt-7 to open your nuget panel, and go to the sources tab. See if you're sources include something like a unc path or alternative source that might be slow.
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Sher
SherOP2mo ago
I deleted all sources except nuget and it fixed the issue. Thank you.
Want results from more Discord servers?
Add your server