I have this same issue after using the Upgrade Assistant to upgrade from 4.8 to 8.0 Most of the variables in the Post Build events no longer work. I was using $(ProjectDir), $(OutputPath), $(TargetPath), And $(ProgramData) and it appears that none of these work anymore, in this project. $(ProgramData) is working. Has anyone found a solution to fix the existing project without building a new one?