Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix MSB8029: Intermediate directory or Output directory cannot reside under the Temporary directory in VS2013

Visual Studio complains with each compile about with warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build.

I was checking the projects and changed Output Directory and Intermediate Directory but I still got the message for each project in my solution.

How can I fix this?

like image 601
codingdave Avatar asked Oct 29 '25 11:10

codingdave


1 Answers

I found the answer - I was missing Environment variables. After adding them and rebooting the problem has gone.

How to fix it for Windows 7

  1. Be sure that the Intermediate and Output directory do not reside under the Temporary directory! If the problem still persists:
  2. Go to Environment Variables (Start->Computer->right click->Properties->Advanced system settings->Tab Advanced->Environment Variables)
  3. Add to User Variables Variable Name: TEMP, Variable value: %APPDATA%\Local\Temp
  4. Add to User Variables Variable Name: TMP, Variable value: %APPDATA%\Local\Temp
  5. Add to System Variables Variable Name: TEMP, Variable value: C:\Windows\Temp
  6. Add to System Variables Variable Name: TMP, Variable value: C:\Windows\Temp
  7. Reboot
like image 125
codingdave Avatar answered Nov 01 '25 07:11

codingdave