LayoutAwarePage在名字空间不VS2012错误存在? [英] LayoutAwarePage does not exist in namespace VS2012 bug?

查看:263
本文介绍了LayoutAwarePage在名字空间不VS2012错误存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让搜索合同,我赢8应用工作,但加入了搜索合同项目中,我得到以下的命名空间错误后:

I'm trying to get a search contract working on my Win 8 app but after adding a search contract to my project I get the following namespace error:

LayoutAwarePage does not exist in namespace App1.Common.



我有在XAML正确的命名空间声明:

I do have the correct namespace declarations in the xaml:

xmlns:common="using:App1.Common"

和LayoutAwarePage是在正确的命名空间App1.Common

and the LayoutAwarePage is in the correct namespace App1.Common

重新启动VS2012或做了删除和重建于事无补。
。要复制此问题请尝试以下操作:

Restarting VS2012 or doing a delete and rebuild doesn't help. To replicate this problem try the following:

1)创建新的空白城域应用

1) create new blank metro app

2 )添加到Visual C ++运行时引用

2) add references to Visual C++ runtime

3)添加一个搜索合同,该项目(点击是自动添加其他东西一样LayoutAwarePage等)

3) add a search contract to the project (click Yes to automatically add other stuff like LayoutAwarePage etc)

4)重建和开放SearchResultsPage1.xaml

4) rebuild and open SearchResultsPage1.xaml

如果您按照上面的步骤,你应该会看到错误,也注意到SearchResultsPage1不显示在设计器。

If you follow the above steps you should see the error and also note that the SearchResultsPage1 does not display in the designer.

这问题只有当你添加引用到的Visual C ++运行时发生。如果没有此引用添加一个搜索合同工作正常!

This problem only occurs when you add the reference to the Visual C++ runtime. Without this reference adding a search contract works fine!

任何想法?我缺少的是在这里吗?使用上面的步骤,你可以复制的问题?

Any ideas? What am I missing here? Can you replicate the issue using the above steps?

推荐答案

我只是碰到了同样的问题。

I just ran into the same issue.

关闭VS和删除相关的SUO文件(解决方案的文件夹中,可能会被隐藏)工作就像一个魅力。

Closing VS and deleting the relevant SUO file (in the folder of the solution, may be hidden) worked like a charm.

这篇关于LayoutAwarePage在名字空间不VS2012错误存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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