realvizu/NsDepCop

Incremental build not triggered when only config.nsdepcop have changed

realvizu opened this issue · 2 comments

  1. Build a csproj
  2. Modify and save config.nsdepcop
  3. Build again

Expected: NsDepCop analysis is executed.
Actual: Nothing happens, no build is triggered.

This happens only in VS and with the new project system.

If msbuild is started directly (from cmd prompt) it works as expected (NsDepCop is executed).
If the project file has the legacy format then it works as expected too.

It turns out that MSBuild's FastUpdateCheck feature is responsible for this behavior.
https://stackoverflow.com/questions/50026355/how-to-avoid-that-visual-studio-incremental-build-does-not-run-when-files-outsid

Solved in 4786020