Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9073651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:27:55+00:00 2026-06-16T18:27:55+00:00

I have a Visual Studio 2012 solution with a Windows Phone 8 C# project

  • 0

I have a Visual Studio 2012 solution with a Windows Phone 8 C# project and a Windows Phone 8 C++ library. I’ve moved it to a different computer. Now, when I try to open the solution, the library project fails to load with the following message in the console:

MyLib.vcxproj : error  : Unable to read the project file "MyLib.vcxproj".  
MyLib.vcxproj(620,3): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsPhone\v7.0\Microsoft.Cpp.WindowsPhone.7.0.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

When I look into the project file, I find the following on line 620:

<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsPhone\v$(TargetPlatformVersion)\Microsoft.Cpp.WindowsPhone.$(TargetPlatformVersion).targets" />

So it looks like the value of environment variable TargetPlatformVersion is somehow off.

Then I’ve created another solution on this machine, also C#/C++ combo. That one opens and compiles and runs, nae problemo. Looking at the project file in the newly created library, it has an identical <Import> line near the end.

Now, the solution copying might have been not perfect. I did not copy all files – just what I thought were the relevant ones – the .sln, the .vcxproj., but not the .sdf and not the .suo.

It looks like something was missing – a file that defined the value of TargetPlatformVersion on solution or project level was not copied, and now Visual Studio is picking a wrong default. Needless to say, WP7.0 has nothing to do with it, it’s all WP8.

Any idea where could this setting reside? There’s no mention of TargetPlatformVersion in neither project nor solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:27:56+00:00Added an answer on June 16, 2026 at 6:27 pm

    It went away on its own after a few reopens and other meaningless actions. Ooky, spooky stuff. No idea why. SVN does not detect any changes to project files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Visual Studio 2012, TFS, Windows 7 We have a C# solution that has 4
Started using Visual Studio 2012 RC since yesterday, We have one WCF solution. Whenever
I have a Visual Studio 2012 Solution with twelve Solution Configurations. Each Solution Configuration
I have a C++ solution in Visual Studio (2012 Express) containing 15 projects. 1
I have a .NET 4.0 solution in Visual Studio 2012 with two projects and
I have a Visual Studio 2012 solution containing three projects. A simple dependency graph
I have a Visual Studio 2012 (RC) solution bound to a CodePlex server. However,
I'm using Bullet Physics, on Windows 7 and Visual Studio 2012. I have compiled
I have a Visual Studio 2012 solution that consists of both a web application
I'm running Windows 7 and using Visual Studio 2012 RC. I have a USB

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.