Python.Included: Problem with WinUI3 Project
Hi,
I have created a project using the new WinUI3 Template in Visual Studio 2022:

Trying to use Python.Included, I receive the following error in the debug output:
Exception thrown at 0x00007FFF99A34FD9 in WinUI3PythonIncluded.exe: Microsoft C++ exception: EEMessageException at memory location 0x000000DF2519D450.
Exception thrown: 'System.DllNotFoundException' in Python.Runtime.dll
The project can be found here https://github.com/onslauth/WinUI3PythonIncluded.
Creating a normal console application with Python.Included works fine.
Do you perhaps have any suggestions that I can try to resolve the problem?
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 20 (10 by maintainers)
https://github.com/pythonnet/pythonnet/issues/1796
Thank you for the help.