名称“XXX”在命名空间“clr-namespace:MySpace”Windows Phone 7.1中不存在

时间:2013-03-07 09:33:37

标签: c# windows-phone-7 xaml windows-phone-8

我正在将现有的WP8应用转换为WP7.1。我在App.xaml Application.Resources部分放置了几个转换器类,但Visual Studio抱怨它们不存在于它们所在的命名空间中。

所有转换器都位于Class Converter文件夹中。

代码在WP8项目中运行正常但是我需要更改什么才能在WP7.1中进行编译?

enter image description here

enter image description here

更新:我现在可以编译它了。由于某种原因,其中一个WP8类(多分辨率选择器)阻止了项目的编译。我删除了它,因为WP7只支持一个分辨率并修复它。

1 个答案:

答案 0 :(得分:0)

你也可以这样做: 您需要激活“显示隐藏文件夹”,因为AppData是隐藏的......

  1. 关闭Visual Studio。
  2. 转到文件夹位置:“MY_USER \ AppData \ Local \ Microsoft \ Phone Tools \ CoreCon \”。
  3. 删除文件夹的内容:10.0和11.0。
  4. Here the link I found