Hi Kashif,
Please check the console of VS Code (not Unity!). If the .NET Framework 4.7.1 (Developer Pack) is mentioned there, download and install it from the official Microsoft. Here is the link: https://dotnet.microsoft.com/download/dotnet-framework/net471
Did this help you fix the issue?
See also:
- Forum User Guides : How to mark a topic as solved