名称“LocalizedStrings"命名空间中不存在 [英] The name "LocalizedStrings" does not exist in the namespace

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

问题描述

我在我的 WP8 项目中突然收到此错误,这似乎源于生成的代码.我有一个以前的工作版本,App.xaml 是相同的.

I'm suddenly getting this error in my WP8 project, which seems to originate from generated code. I have a previous working version and the App.xaml is identical.

<Application.Resources>
    <local:LocalizedStrings xmlns:local="clr-namespace:Bins" x:Key="LocalizedStrings"/>
</Application.Resources>

LocalisedStrings.vb 文件完好无损.

and the LocalisedStrings.vb file is intact.

有什么想法吗?

推荐答案

我在编译标准的 Windows Phone Databound App 模板时遇到了同样的问题.以下步骤对我有用:

I had the same problem when compiling the standard Windows Phone Databound App template. Following steps worked for me:

  • 关闭所有 Visual Studio 实例
  • 如果您在控制面板中的区域设置与 Windows Phone SDK 的语言(例如德语)不匹配,请将区域设置中的格式设置为英语(美国)
  • 在您的 Windows 资源管理器中,导航到 %LOCALAPPDATA%\Microsoft\Phone Tools\CoreCon\ 并删除文件夹 10.0<的内容/code>11.0
  • 重新打开 Visual Studio 并重建您的项目
  • close all Visual Studio instances
  • if your Region settings in the control panel mismatch the Windows Phone SDK's language (e.g. German), set the Format in the Region settings to English (United States)
  • in your windows explorer, navigate to %LOCALAPPDATA%\Microsoft\Phone Tools\CoreCon\ and delete the contents of the folders 10.0 and 11.0
  • reopen Visual Studio and rebuild your project

这篇关于名称“LocalizedStrings"命名空间中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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