Cannot compile individual files if project contains full path to file - by negritot

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


6
0
Sign in
to vote
ID 748640 Comments
Status Closed Workarounds
Type Bug Repros 3
Opened 6/12/2012 11:53:19 AM
Access Restriction Public

Description

If a project contains full paths, rather than relative paths, to source files, those files will not be individually compilable in the IDE (Build>Compile). 

A full solution build (Build>Build Solution) is successful.

Note about included sample project: It was generated by the project wizard, then I modified the test.vcxproj file to use a full path to test.cpp. Line 90 was changed from this:
    <ClCompile Include="test.cpp" />
to this:
    <ClCompile Include="C:\test\test\test.cpp" />

This hand-editing simulates the way some project generators (e.g. CMake) create project files.
Sign in to post a comment.
Posted by Microsoft on 6/27/2012 at 3:41 PM
Thanks we took a fix for this for RTM.
Appreciate you flagging it.
Posted by Microsoft on 6/22/2012 at 10:38 AM
We are working on a fix. It has yet go through testing and shiproom approval, though.
Posted by Microsoft on 6/12/2012 at 10:58 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by brad.king on 6/12/2012 at 1:13 PM
FWIW, this looks related to issue #635294 previously reported for VS 2010:

https://connect.microsoft.com/VisualStudio/feedback/details/635294/using-absolute-path-in-clcompile-item-prevents-property-pages-from-showing

I can also report that the VS 11 developer preview did not exhibit the behavior reported here, but I can reproduce it with the VS 11 RC.
Posted by Microsoft on 6/12/2012 at 12:52 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)