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
The solution for me is to stop the IIS Express processes by right-clicking on the taskbar icon.
Or you can make a command line in "Pre-Build Event":
$(Solution)taskkill /FI "IMAGENAME eq iisexpress.exe" /F
Add this command in the "Properties" of your projet > "Build Events"
We don't have time to see if the command has been executed properly in "Ouput" view into "Build" section. Add this command line in "Pre-Build Event" to see the results:
cmd /c pause
You can remove this line after check...