zoukankan      html  css  js  c++  java
  • wpf Cannot locate resource 'app.xaml'

    具体信息:

    StackTrace    "   at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)\r\n   at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)\r\n   at System.IO.Packaging.PackagePart.GetStream()\r\n   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)\r\n   at ecSolutions.EnquiryDefineTool.App.InitializeComponent() in d:\\2011-7-11ABC\\EnquiryDefineTool\\App.xaml:line 1\r\n   at ecSolutions.EnquiryDefineTool.App.Main() in D:\\2011-7-11ABC\\EnquiryDefineTool\\obj\\x86\\Debug\\App.g.cs:line 0\r\n   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)\r\n   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.ThreadHelper.ThreadStart()"    string

    解决方法:

    查看:AssemblyInfo.cs 是否被屏蔽掉。
    [assembly: NeutralResourcesLanguage("zh-cn", UltimateResourceFallbackLocation.Satellite)]

    如果没有,将其屏蔽掉即可

     
  • 相关阅读:
    [arm]虚拟机,2440开发板,主机三者互通
    Linux下的lds链接脚本简介(四)
    Linux下的lds链接脚本简介(三)
    Linux下的lds链接脚本简介(二)
    Linux下的lds链接脚本简介(一)
    程序员面试资源大收集
    Source Insight 3.50.0065使用详解
    DNW烧写FL2440 NAND Flash分区
    php isset()与empty()的使用
    JSON.parse()和JSON.stringify()的区别
  • 原文地址:https://www.cnblogs.com/tianya/p/2210095.html
Copyright © 2011-2022 走看看