dotnet / dotnet/wcf

System.ServiceModel.Primitives reference assembly is missing SymmetricSecurityKey.GetKeyedHashAlgorithm(string) method

Open
#5,256 1 comment 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

**Describe the bug**
When trying to use the [GetKeyedHashAlgorithm](https://learn.microsoft.com/en-us/dotnet/api/system.identitymodel.tokens.symmetricsecuritykey.getkeyedhashalgorithm?view=dotnet-plat-ext-7.0) on the System.IdentityModel.Tokens.SymmetricSecurityKey class, the IDE and compiler says that the method is missing.

Investigating the issue I noticed that the method exists in the source code and in the lib file in the nuget package, but is missing from the ref dll in the nuget package.

**To Reproduce**
Steps to reproduce the behavior:
1. Create a new project
2. Add a package reference to
3. Try to call GetKeyedHashAlgorithm(string)

**Expected behavior**
It should be possible to invoke the method. (Or it should not be in the API documentation)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.