ReSharper.AutoFormatOnSave icon indicating copy to clipboard operation
ReSharper.AutoFormatOnSave copied to clipboard

Build starts before files are saved properly

Open NameOfTheDragon opened this issue 7 years ago • 1 comments

There seems to be a bit of an interaction with VS build, when files are implicitly saved by clicking the Build button or pressing F6.

This of course saves all the files, but the files seem to be saved before the format-on-save extension runs, so the build kicks off, then the extension runs and changes the files while the build is in progress, which means the build is instantly considered obsolete. This leads to a lot of unnecessary build steps being run and the wasted time and resources sort of negates the benefit of format-on-save.

This is particularly noticeable when ReSharper build is being used, which is otherwise very good at not rebuilding things unnecessarily.

I'm using VS2017, but I think the problem also existed in 2015 (not 100% certain though)

NameOfTheDragon avatar May 31 '17 12:05 NameOfTheDragon

Seems to be related to #24.

Jogge avatar Jun 01 '17 05:06 Jogge