src/modules/previewpane/README.md
To add a new Previewer update the Product.wxs file in PowerToysSetup similar to existing Previewer to register the Preview Handler. More details about registration of Preview Handlers can be found here. - implemented in modulesRegistry.h.
[Important] This method of registering Preview Handler DLL's is not recommended. It could lead to registry corruption.
XYZPreviewHandler and its dependencies. To sign an assembly in VS, follow steps given Create and sign an assembly with a strong name by using Visual Studio.XYZPreviewHandler project.Tools > Command Line > Developer Command Prompt.gacutil -i <path to dependency>
cd C:\Windows\Microsoft.NET\Framework64\4.0.x.x
gacutil -i <path to XYZPreviewHandler.dll>
RegAsm.exe /codebase <path to XYZPreviewHandler.dll>
cd C:\Windows\Microsoft.NET\Framework64\4.0.x.x
RegAsm.exe /unregister <path to XYZPreviewHandler.dll>
gacutil -u XYZPreviewHandler
Since in-process preview handlers run under a surrogate hosting process (prevhost.exe by default), to debug a preview handler, you need to attach the debugger to the host process.
Debug->Attach to Process and select prevhost.exe with type Managed(version), x64.After successful integration, your preview handler should appear in the PowerToys settings UI under the File Explorer Preview Tab. In here you should be able to enable and disable all the preview handles.