C
C#4w 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 G4w 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
RatnOP4w ago
but all the packages are only version 8
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX4w 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 User4w ago
Message Not Public
Sign In & Join Server To View
Ratn
RatnOP4w ago
ok
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
Ratn
RatnOP4w ago
yes sharing the repo
Ratn
RatnOP4w ago
GitHub
GitHub - Ratna866/HospitalRepo
Contribute to Ratna866/HospitalRepo development by creating an account on GitHub.
James G
James G4w ago
Have you removed code from this repo? It restores and builds fine for me.
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
Ratn
RatnOP4w ago
no i haven't removed anything
James G
James G4w ago
Close visual studio, go into your project directory and delete the .vs folder, reopen the solution in visual studio and restore/build
Ratn
RatnOP4w ago
@TeBeCo
James G
James G4w ago
Yep, just trying to understand why it would work my end and not theirs is all
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX4w 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
RatnOP4w ago
Ok
James G
James G4w ago
I dont understand mate
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
James G
James G4w 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 User4w ago
Message Not Public
Sign In & Join Server To View
James G
James G4w 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 User4w ago
Message Not Public
Sign In & Join Server To View
James G
James G4w ago
🤝
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
James G
James G4w 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 User4w ago
Message Not Public
Sign In & Join Server To View
Ratn
RatnOP4w ago
no its not working after removing the unnecessary references
James G
James G4w ago
have you got .NET 8 installed?
Ratn
RatnOP4w ago
yes
James G
James G4w ago
can you run dotnet --list-sdks and paste the output here please?
Ratn
RatnOP4w ago
8.0.407 [C:\Program Files\dotnet\sdk] 9.0.201 [C:\Program Files\dotnet\sdk]
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
Ratn
RatnOP4w ago
removed next ? its Solved I have removed the dotnet version 9
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
Ratn
RatnOP4w ago
yes sure

Did you find this page helpful?