Using absolute path in ClCompile item prevents property pages from showing - by Niels M Hansen

Status : 

  Not Reproducible<br /><br />
		The product team could not reproduce this item with the description and steps provided.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 635294 Comments
Status Closed Workarounds
Type Bug Repros 5
Opened 1/9/2011 4:50:17 PM
Access Restriction Public


If I modify a VCXProj file by hand and modify the ClCompile items to point to the source files using absolute paths, I am unable to use the property pages for single source files.

This only affects those source files that have their name specified by an absolute path, not those specified by a relative path.

This most easily occurs when specifying the location of source files by the means of properties, such as something derived from $(MSBuildThisFileDirectory).
The problem occurs whether the path is specified using properties or without property expansions at all.

I have not tested this with non-C++ projects.
Sign in to post a comment.
Posted by Ryan H. Kawicki on 1/21/2012 at 6:30 PM
I see that you have stated that this will be fixed in the next version of Visual Studio, but is there a hotfix that can be applied now to address this with Visual Studio 10?
Posted by Niels Dekker on 11/12/2011 at 3:37 AM
It looks like this problem only occurs when the source file and the .vcxproj file are located at the very same drive. (Please correct me if I'm wrong!) Which suggests the workaround that I just posted!
Posted by Microsoft on 1/11/2011 at 4:42 PM
Thanks you Niels M Hansen for reporting the issue. We have already fixed it and will be ready in the next release of Visual Studios.

Felix Huang
Visual C++
Posted by Microsoft on 1/9/2011 at 4:59 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(