oidcproxydotnet / OidcProxy.Net

An extendible framework for .NET to implement the BFF Security Pattern (a.k.a. Token Handler Pattern) in Single Page Applications
GNU Lesser General Public License v3.0
112 stars 20 forks source link

Nuget Error: The given key was not present in the dictionary #323

Open ProPotential opened 2 days ago

ProPotential commented 2 days ago

Using Visual Studio 2022 v 17.12.0 Preview 3 Installed the templates and generated the Angular project. Trying to restore NuGet packages displays an error: The given key was not present in the dictionary. I also tried adding the OidcProxy.Net.OpenIdConnect 5.1.5 to an existing project and got the same error. Has anyone else seen this?

ProPotential commented 2 days ago

Additional info. I tried removing both Spa packages, deleted the obj and bin folder and tried installing from a console:

C:\Dev\PC3\OidcProxy.Net.EntraID>dotnet add package OidcProxy.Net.EntraId Build succeeded in 0.8s info : X.509 certificate chain validation will use the default trust store selected by .NET for code signing. info : X.509 certificate chain validation will use the default trust store selected by .NET for timestamping. info : Adding PackageReference for package 'OidcProxy.Net.EntraId' into project 'C:\Dev\PC3\PC3 v1.3\Penteon\OidcProxy.Net.EntraID\OidcProxy.net.csproj'. info : GET https://api.nuget.org/v3/registration5-gz-semver2/oidcproxy.net.entraid/index.json info : OK https://api.nuget.org/v3/registration5-gz-semver2/oidcproxy.net.entraid/index.json 279ms info : Restoring packages for C:\Dev\PC3\OidcProxy.Net.EntraID\OidcProxy.net.csproj... error: The given key '0' was not present in the dictionary.

Same results with: OidcProxy.Net.OpenIdConnect 5.1.5 I was able to get the package added into a new WebApi project however.