WPF application is crashing after publish
-
12-09-2019 - |
Question
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.
Solution 2
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.
OTHER TIPS
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.