Skip to content

cannot find reference 'addreference' in 'clr.py'

WalterW edited this page Dec 2, 2023 · 4 revisions

**Environment ** Python 3.10.10 pythonnet 3.0.3 operation system windows 11 64bit .net SDK 5.0.407 .net SDK6.0.417 .net Framework 4.7.2 , 4.5.2 image

Details: I am new to Python, and recently I want to reverse engineering one of the pyinstaller exe into bunch of pyc. Then I use pycdc.exe to decompile pyc into py file. The code is not complete, but have already show most of it. The original tool, UI is use C# WPF and main function is to use python.

I have two issue / question :

  1. Why it show cannot find reference 'addreference' in 'clr.py' image

  2. is reference System, wpf\PresentationFramework, System.Windows.Forms, System.Data, System.Collections.Specialized, System.Collections. those refer to *.dll in the path "C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App", I can't find system.dll, but rest of them all can be find(eg. System.Collections.dll).

I am really new to coding, please help me! Really appreciate your help!

image