Avoid problems saving files (with safe saving enabled) when the same project is also open in Visual Studio