C
C#2mo ago
Ratn

Package Error

I am getting this error while adding identity into the project added class libraries and references also using .net 8 version
No description
37 Replies
James G
James G2mo ago
Check the package details -> dependencies for the version of Identity you're installing. If you're trying to use the most recent version on a .NET version that isn't compatible you'll get that error Or you've got a sub-dependency installed that's a version lower than required for the Identity package you're installing
Ratn
RatnOP2mo ago
but all the packages are only version 8
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX2mo ago
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Ratn
RatnOP2mo ago
ok
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Ratn
RatnOP2mo ago
yes sharing the repo
Ratn
RatnOP2mo ago
GitHub
GitHub - Ratna866/HospitalRepo
Contribute to Ratna866/HospitalRepo development by creating an account on GitHub.
James G
James G2mo ago
Have you removed code from this repo? It restores and builds fine for me.
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Ratn
RatnOP2mo ago
no i haven't removed anything
James G
James G2mo ago
Close visual studio, go into your project directory and delete the .vs folder, reopen the solution in visual studio and restore/build
Ratn
RatnOP2mo ago
@TeBeCo
James G
James G2mo ago
Yep, just trying to understand why it would work my end and not theirs is all
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX2mo ago
* close VS * remove the hidden folder .vs * remove all bin and obj folder next to each csproj (DO NOT TOUCH THE .git FOLDER OR WHAT'S INSIDE) * restart vs
Ratn
RatnOP2mo ago
Ok
James G
James G2mo ago
I dont understand mate
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
James G
James G2mo ago
oh gotcha, thought you were telling me you said above there was no issue (ie why am I doing the same) :kekW: got very confused There's this ref in the web project:
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.7" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.7" />
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
James G
James G2mo ago
@Ratn I will say your csproj references look to be the wrong way around, I'd assume Repositories should reference Models and not the other way around
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
James G
James G2mo ago
🤝
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
James G
James G2mo ago
Yeah they're all inverted, but it currently builds fine. It'll just not work as expected when anything gets implemented
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Ratn
RatnOP2mo ago
no its not working after removing the unnecessary references
James G
James G2mo ago
have you got .NET 8 installed?
Ratn
RatnOP2mo ago
yes
James G
James G2mo ago
can you run dotnet --list-sdks and paste the output here please?
Ratn
RatnOP2mo ago
8.0.407 [C:\Program Files\dotnet\sdk] 9.0.201 [C:\Program Files\dotnet\sdk]
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Ratn
RatnOP2mo ago
removed next ? its Solved I have removed the dotnet version 9
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Ratn
RatnOP2mo ago
yes sure

Did you find this page helpful?