Чтобы загрузить PresentationFramework.dll и получить доступ к информации о ней, мне сначала нужно было загрузить WindowsBase.dll. Окончательный код выглядит примерно так:
Assembly assem1 = Assembly.LoadFrom(@"C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.1\WindowsBase.dll");
Assembly assem2 = Assembly.LoadFrom(@"C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.1\PresentationFramework.dll");
Type t2 = assem2.GetType("System.Windows.Controls.Button");
PropertyInfo contentProperty = t2.GetProperty("Content");
Если я пытаюсь добавить ссылку на PresentationFramework.dll, он расстраивается, говоря:
There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "PresentationFramework", "AMD64".
, что имеет смысл.