WPF 应用程序在发布后崩溃
我已将 WPF 应用程序升级到 Visual Studio 2k8。 App是.NET 3.0,项目中设置为平台。
如果我构建项目 & 发布配置,应用程序运行良好。 如果我尝试使用 ClickOnce 发布它,它会崩溃,因为找不到 xaml 资源。
任何想法?
非常感谢。
PS 看来 XAML 资源并未真正包含在程序集中的资源中。 如果 assemble 刚刚重建(没有发布),则一切正常,并且 XAML 包含在资源中。
I've upgraded WPF application to Visual Studio 2k8. App is .NET 3.0 which is set as a platform in the project.
If I build project & release confiuguration, app is running well.
If I try to publish it using ClickOnce, it is crashing because xaml resources couldn't be find.
Any idea?
Thank you very much.
P.S. It seem that XAML resources aren't really included in Resources in the assembly. If assemble is just rebuilded (without Publish) everything is ok and XAML are included in resources.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看来我解决了这个问题。
我的应用程序已从V2k5升级到V2k8。
如果.NET 3.0是目标平台,则存在问题。
如果.NET 3.5是目标平台,问题就解决了。
谢谢您的合作。
It seems I solved this problem.
My application has been upgraded from V2k5 to V2k8.
If .NET 3.0 is target platform, the problem exists.
If .NET 3.5 is target platform, problem solved.
Thank you for your collaboration.
查看项目上的一键部署选项。
在“发布”选项卡上,查看“应用程序文件”部分。
某些文件可能未包含在内。
Have a look at the One Click Deployment options on your project.
On the Publish tab, have a look at the Application Files section.
Some files might not have been included.