Hey -
We don’t recommend making changes to code while a compile is in process. Instead it is better to cancel compile and then make necessary changes before compiling again. Another option is to use Rebuild option in Visual Studio rather than Build. This will build all files for projects rather than only files that were changed.
Cheers