Hello @Deepak Rane (drane) ,
Welcome to Microsoft Q&A forum.
Is your issue similar to this one?
I think some components were missing, or the specific version of VSSDK was not set correctly.
I tested locally but failed to reproduce this issue. Maybe you can try the suggestion mentioned in above thread. Add a property into your project file(.csproj file), like
<PropertyGroup>
<VisualStudioVersion>17.0</VisualStudioVersion>
</PropertyGroup>
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.