problem with compile after import old project - by x-Updated

Status : 


Sign in
to vote
ID 780760 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 3/6/2013 12:15:32 AM
Access Restriction Public



I've imported to VS2012 few old VisualStudio 2008 projects. The problem is that I cannot compile single file with command "Compile Ctrl+F7", although the full build does work OK, i.e Rebuild of solution or Build of selected project.

I've also found a workaround. After import in vcxproj there were paths to sources like these ones:

<ClCompile Include=".\main.cpp" />
<ClCompile Include=".\test\test.cpp" />

when I removed the ".\" from the beginning of path, then everything works fine:

<ClCompile Include="main.cpp" />
<ClCompile Include="test\test.cpp" />

Now I am able to run compile on individual file.

Although it wasn't very convenient because I have about 50 such old VS2008 projects and had to write a script to perform these changes on all vcxprojs.

Kind regards,

Below "copy info" from About:

Microsoft Visual Studio Professional 2012
Version 11.0.51106.01 Update 1
Microsoft .NET Framework
Version 4.5.50709

Installed Version: Professional

LightSwitch for Visual Studio 2012   04938-004-0032002-02345
Microsoft LightSwitch for Visual Studio 2012

Office Developer Tools   04938-004-0032002-02345
Microsoft Office Developer Tools

Team Explorer for Visual Studio 2012   04938-004-0032002-02345
Microsoft Team Explorer for Visual Studio 2012

Visual Basic 2012   04938-004-0032002-02345
Microsoft Visual Basic 2012

Visual C# 2012   04938-004-0032002-02345
Microsoft Visual C# 2012

Visual C++ 2012   04938-004-0032002-02345
Microsoft Visual C++ 2012

Visual F# 2012   04938-004-0032002-02345
Microsoft Visual F# 2012

Visual Studio 2012 Code Analysis Spell Checker   04938-004-0032002-02345
Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Visual Studio 2012 SharePoint Developer Tools   04938-004-0032002-02345
Microsoft Visual Studio 2012 SharePoint Developer Tools

NuGet Package Manager   2.2.40116.9051
NuGet Package Manager in Visual Studio. For more information about NuGet, visit

PreEmptive Analytics Visualizer   1.0
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   11.1.20627.00
Microsoft SQL Server Data Tools

Web Developer Tools   1.0.30710.0
Microsoft Web Developer Tools contains the following components:
Page Inspector: Tool that offers an efficient way to decompose Web Applications and diagnose front-end issues.
Web Publishing: Extensions required for Web Publishing for both hosted servers as well as on premises.
Web Form Templates: Includes the default templates for Web Form Applications.
Editor Extensions: Includes HTML, CSS, and JS editor extensions that greatly enhance the development experience.
Sign in to post a comment.
Posted by Microsoft on 3/14/2013 at 11:35 PM
Hi x-Updated, we'll close this feedback because we can't repro this issue. Please reopen it recently if you have not resolved this problem. Thanks.
Posted by Microsoft on 3/6/2013 at 2:38 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting a demo project. Please submit this information to us within 4 business days. We look forward to hearing from you with this information.
Posted by Helen [MSFT] on 3/6/2013 at 12:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(