“LayoutAwarePage"命名空间中不存在“using:AppName.Common” - 我如何摆脱这个? [英] 'LayoutAwarePage" does not exist in the namespace "using:AppName.Common -How do I get rid of this?

查看:235
本文介绍了“LayoutAwarePage"命名空间中不存在“using:AppName.Common” - 我如何摆脱这个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定此问题是与平台选择还是任何配置有关。我在Win32上用于C ++项目,并且从未更改任何配置。

I am not sure this problem is related to the selection of the platform or any configuration . I am on Win32 for a C++ project and never changed any configurations.

我在所有XAML文件中看到同样的问题(全部由模板生成) 带有错误消息

I am seeing the same problem in all of my XAML files (all generated by the template) with the error messages

名称"LayoutAwarePage"命名空间中不存在"using:AppName.Common"

The name "LayoutAwarePage" does not exist in the namespace "using:AppName.Common"

成员"资源"无法识别或无法访问

The member "Resources" is not recognized or is not accessible

包含

< Page.Resources>

<Page.Resources>

的行在XAML中#included的自动创建的LayoutAwarePage.h具有标准前导码

The automatically created LayoutAwarePage.h which is #included in the XAML has the standard preamble

namespace AppName
{
    namespace Common
    {
        [Windows::Foundation::Metadata::WebHostHidden]
        public ref class LayoutAwarePage : Windows::UI::Xaml::Controls::Page
        {

这看起来像是一个与任何配置无关的简单符号表错误

This looks like a simple symbol table bug unrelated to any configuration

Binging提出了很多关于此问题的报告,提出了关闭所有XAML文件的唯一解决方案并重建解决方案并重新启动VS2012。这对我不起作用。我只是无法摆脱那些错误消息,这意味着Designer和属性面板
不适用于使用LayoutAwarePage的任何XAML文件。

Binging brings up a lot of reports of this with the only solution proposed to close all XAML files and rebuild the solution and restart VS2012. This doesn't work for me. I just cannot get rid of those error messages which means Designer and properties panel doesn't work for any XAML file using LayoutAwarePage.

我发现了一个错误报告,但是它是关闭的,因为它正在设计中,需要重建项目!很棒。

I found a bug report filed on this but it is closed as being by design with a work around to rebuild the project! Brilliant.

微软人员可以确认这是否是一个已知问题,是否有解决方法或是否为VS2012计划了错误修复服务包。

Can Microsoft folks confirm if this is a known problem and if there is a workaround or if there is an bug fix service pack planned for VS2012.

鉴于这个程序有多么糟糕,在引入更多功能之前修复错误服务包将非常受欢迎。谢谢。

Given how buggy this program is, a bug fix service pack before introducing more features would be very welcome. Thanks.

推荐答案

PS:项目编译正常并且运行没有错误。这是一个XAML编辑器/设计器问题。

PS: The project compiles fine and runs with no errors. It is an XAML editor/designer problem.

在Blend中打开项目有同样的问题。

Opening the project in Blend has the same problem.


这篇关于“LayoutAwarePage&QUOT;命名空间中不存在“using:AppName.Common” - 我如何摆脱这个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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