I am new to dot.net core and tried the sample, dotnet new, dotnet restore, dotnet run.
After 2nd step(dotnet restore), I tried to delete this lock file, then "dotnet run" fails, as it says it needs a lock file. Why did Microsoft design such a "lock" file and why does the "run" command require such a lock file?
If this lock file is designed to prevent multiple processes to build the project, then it only has to be an empty file, act as a "lock". But in fact, this file is quite large, compared with other source code.