none
Visual Studio 2012 Unable to read project file RRS feed

  • Question

  • I am trying to create a new Visual C++ Windows Phone Runtime Project in Visual Studio 2012. When I do, I get this error:

    "Unable to read the project file "RT1.vcxproj(150,3): The imported project C:\Program Files(x86)\MSBuild\Microsoft\WindowsPhone\v7.0\Microsoft.Cpp.Windows Phone.7.0.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk." The .sln, .suo, and .vcxproj files are created in the file system, but if I try adding them to an existing project I get the same error message.

    First a little clarification - does VS create the project, then look in that path for the proper tool to read and open it? If not why is it trying to import anything?

    The path it is complaining about doesn't exist, but replace the 7's with 8's and everything is there. Is there a way to change this import declaration to reflect the correct path? Is it trying to create a windows phone runtime component for Windows phone 7 and I just need to specify somewhere it should be creating it for windows phone 8? 

    Any visual c++ windows phone project I try to create gives basically the same error message. 

    Thursday, July 18, 2013 10:25 PM

Answers

  • Hello,

    Based on my understanding, you will get the same error even when you create every simple Visual C++ windows phone project from VS2012. In this case, I doubt that the issue is related to your VS.

    And according to Konrad’s reply in this thread with similar issues: http://social.msdn.microsoft.com/Forums/en-US/cba01040-067e-4ac3-ba4c-a8a14ba3c45d/unable-to-read-the-project-file, I feel that you can check if this file: C:\Program Files(x86)\MSBuild\Microsoft\WindowsPhone\v7.0\Microsoft.Cpp.Windows Phone.7.0.targets is on your system. If it is not there, I doubt that your VS installation is wrong.

    If you are not using VS Express, you could locate to the IDE folder then run these commands to check if it can help:

    • Please open Windows Explorer, and navigate to  <Visual Studio Installation Path>\Common7\IDE
    • Devenv.exe /SafeMode: Launches the IDE in safe mode loading minimal windows.
    • Devenv.exe /ResetSettings: Restores the IDE's default settings, optionally resets to the specified VSSettings file.
    • Devenv.exe /ResetAddin: Removes commands and command UI associated with the specified Add-in.
    • Devenv.exe /ResetSkipPkgs: Clears all SkipLoading tags added to VSPackages.

    If no help, I suggest you try repairing your VS or uninstall it and then reinstall it.

    Best regards,


    Amanda Zhu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, July 23, 2013 8:18 AM
    Moderator