I got following error while running dotnet build
command on my .NET Core project.
C:\\Program Files\\dotnet\\sdk\\2.1.2\\Microsoft.Common.Curre
Your ASP.Net application is running from the same directory, that is why you couldn't build your code. You have following options:
I would go with first option, but if you have difficulty finding out how to do it, last option is the easiest. In any case if for any reason you couldn't restart your computer, second one will surely work.