名称“XXX"命名空间“clr-namespace:MySpace"中不存在;视窗电话 7.1 [英] The name "XXX" does not exist in the namespace "clr-namespace:MySpace" Windows Phone 7.1

查看:33
本文介绍了名称“XXX"命名空间“clr-namespace:MySpace"中不存在;视窗电话 7.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

所有转换器都位于 Class Converter 文件夹内.

All the converters are located inside the Class Converter folder.

代码在 WP8 项目中运行良好,那么我需要更改什么才能使其在 WP7.1 中编译?

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

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

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.

推荐答案

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

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

  1. 关闭 Visual Studio.
  2. 转到文件夹位置:MY_USER\AppData\Local\Microsoft\Phone Tools\CoreCon\".
  3. 删除文件夹的内容:10.0 和 11.0.

这是我找到的链接

这篇关于名称“XXX"命名空间“clr-namespace:MySpace"中不存在;视窗电话 7.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆