源码地址: https://gitee.com/zhang_jianli

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)]

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

 

 

posted on 2011-10-13 12:22  天涯  阅读(1241)  评论(0编辑  收藏  举报

导航

源码地址: https://gitee.com/zhang_jianli