简体   繁体   中英

The name “XXX” does not exist in the namespace “clr-namespace:MySpace” Windows Phone 7.1

I am converting my existing WP8 app to WP7.1. I placed several converter classes in the App.xaml Application.Resources section but Visual Studio complains that they do not exist in the namespace which they are.

All the converters are located inside the Class Converter folder.

The code works fine in WP8 project though so what do I need to change to make it compile in WP7.1?

在此处输入图片说明

在此处输入图片说明

UPDATE: I can now compile it. For some reason, one of the WP8 classes, (the multiresolution chooser) is preventing the project from compiling. I removed it since WP7 only support one resolution and that fixed it.

You can do that too : You need to active 'show hidden folder' because AppData is hidden...

  1. Close Visual Studio.
  2. Go to the folder location : "MY_USER\\AppData\\Local\\Microsoft\\Phone Tools\\CoreCon\\".
  3. Delete the contents of the folders: 10.0 and 11.0.

Here the link I found

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM