If the VS version change is minor - you can opt to use MS side-by-side assemblies VC Runtime configuration to use the older VC Runtime dll in your extension. But in case you have a major version change - better opt to build PySide6 from sources along with Qt: Please see Building from source at https://pypi.org/project/PySide6/ so that it picks your VS version instead.