Setup Packaging Error: error writing file <name>

   

The Microsoft development environment could not create a temporary .dat file needed to create the setup package because there was an error writing the file to the temporary directory.

Check that the temporary directory exists and has the appropriate read/write settings.