Just to verify, you're using the VisBuildPro Project action and it's failing with the message "Project file '<filename>' not found"?
The logic for that code is essentially:
bool FileExists(LPCTSTR filename)
{
DWORD attr = GetFileAttributes(filename);
return attr != INVALID_FILE_ATTRIBUTES && !(attr & FILE_ATTRIBUTE_DIRECTORY);
}
if (!FileExists(projfile))
{
// show error message and fail the step
}
Are you able to create a test app to see what GetFileAttributes returns for this file? Thanks.
|