I got following error while running dotnet build command on my .NET Core project.
dotnet build
C:\\Program Files\\dotnet\\sdk\\2.1.2\\Microsoft.Common.Curre
A simple solution in VisualStudio Code is simply to kill the terminal.
Afterwards restart the PowerShell or CMD terminal either by starting a new terminal in the Terminal tab (Terminal - New Terminal) or by using the shortcut Ctrl + Shift + `