'open clip board failed when generating step definition

I upgraded visual studio to vs2022 and installed spec flow extension for visual studio 2022. When I click on a step in feature file and then go to step definition, a dialog box opens. When I click ok button an error is shown.

error message : OpenClipboard Failed

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source