Open JosHuybrighs opened 3 years ago
Hello JosHuybrighs, thank you for opening an issue with us!
I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌
@marb2000 any guidance here?
Hi @JosHuybrighs couple of weeks ago I also started to add Xaml Islands components to my WPF project and I have more than two UWP ‘host’ components. As I read your problem, immediately tried to build in release mode, and I could. I could also run the bridge application. Can you please update your project in OneDrive, I'd like to check, but it says, the item is no longer exists.
Hi,
I created a new link to the solution file: WPFXamlIslandsWithBGTask.ziphttps://1drv.ms/u/s!AugQvFxkydtIhq1NnnoolVdYmhrggQ?e=jkoebE
Thanks for the help.
I am setting up a desktop bridge project with a WPF desktop app that uses Xaml Islands and Background Tasks. When building in Release mode the ‘package’ project generates the error: “Conflicting values for resource ‘Files/App.xbf’”.
The exact error messages are:
Building in Debug mode gives no error and the app also runs successfully: the xaml user control is correctly displayed and the background task (a 15 minute Timer task) successfully fires.
It looks like the error in Release mode is related with the fact that there are 2 UWP ‘host’ apps in the package. They are required because:
The packaging project therefore contains:
The error has been reported to the Visual Studio team, and the response was:
If this is correct then this not only has to be mentioned in the Xaml Islands documentation, but one should wonder whether Xaml Islands is a good concept for building WPF desktop apps. The reason why one would choose WPF (and not UWP) is that typically those apps want to do more than what UWP allows us to do, like being able to run background processes for things like periodically scheduling some actions, detecting USB peripheral insertion, etc.
For anyone interested in trying this, I made a full solution (which is really simple at this point in time) available on OneDrive (see WPFXamlIslandsWithBGTask.zip. It should give the above error when building in Release mode (x64 and x86).