File <name> size is incorrect.

This file contains fewer bytes than expected, possibly because the file has been truncated or corrupted.

To correct this error

  1. Close and then re-start Visual Studio.

  2. If the error continues, re-install Visual Studio to repair the file.