MicrosoftDocs / WindowsCommunityToolkitDocs

Creative Commons Attribution 4.0 International
179 stars 155 forks source link

Add documentation about the visual c++ runtime requirement for XAML islands #282

Open lhak opened 4 years ago

lhak commented 4 years ago

After updating the xaml host package of my application (.net winforms with a custom XAML island control) I noticed that the application did not run anymore on certain machines (crashed at startup with a XAML parsing exception). Apparently, there is a dependency on a visual c++ runtime version which is newer than what is currently shipped even in the latest stable Windows release. It would be very helpful if this was pointed out in the documentation.

michael-hawker commented 4 years ago

FYI @marb2000

mcleanbyron commented 4 years ago

Hi @lhak - Can you please provide more details about which Visual C++ runtime version you installed to overcome the exception you were seeing? Also, where did you find out that you needed to install a newer Visual C++ runtime? (did someone mention this on a forum, did you find this information in some other docs, etc.).

lhak commented 4 years ago

I just downloaded the most recent version available from the Microsoft website at that time (version 14.23.27820). I suspected it to be the problem because my application worked correctly on one machine with visual studio installed (which probably always installs the most recent visual c++ runtime), but did not work on another one with the exact same Windows version.

Kyaa-dost commented 3 years ago

@lhak I know it's been a long time but is this issue still persistent?

CC: @mcleanbyron