WPF 程序在 Visual Studio 2010 中运行,但单击 exe 时不运行
我制作了一个在 Visual Studio 2010 中完美运行的 WPF 应用程序。 当我构建它(调试或发布模式)并尝试运行该应用程序时,出现错误, 该表格不启动。
有什么想法吗?
谢谢
菲利普
I've made a WPF application that runs perfectly inside Visual Studio 2010.
When I built it (debug or release mode) and try to run the app, I've got an error,
the form doesn't start.
any ideas?
thanks
Filip
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您引用了PresentationFramework.Aero,请尝试将引用属性“Copy Local”更改为true。它对我有用,
If you have reference to the PresentationFramework.Aero try changing reference property "Copy Local" to true. It worked for me,
我遇到过类似的问题,主要问题与反射有关。通常,发生这种情况是因为代码比附加调试器时得到了更多优化。
I have had a problem similar to this, the main problem turned out to be related to reflection. Usually when this happens it is because the code gets optimized more than when the debugger is attached.