Proof of concept .NET 6/8 console application using pythonnet 3 to run the Python package of SaxonC HE 12 (saxonche) with .NET code
The saxonche Python package needs to be installed first with e.g. pip install saxonche
. You also need to make sure you set/adjust the environment variable
PYTHONNET_PYDLL
to identify your python3x.dll
e.g. C:\Users\username\AppData\Local\Programs\Python\Python312\python312.dll
on Windows or e.g. /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/libpython3.9.dylib
on macOS.