Error 1 Unknown build error, 'Cannot resolve dependency to
assembly 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral PublicKeyToken=null'
because it has not been preloaded. When using the ReflectionOnly APIs, dependent
assemblies must be pre-loaded or loaded on demand through the
ReflectionOnlyAssemblyResolve event. Line 20 Position 14.'
任何想法,我是否必须包含更多的dll或任何东西
WPF
<Window ... xmlns:activeXControl="clr-namespace:AxWMPLib;assembly=AxInterop.WMPLib">
<Grid>
<WindowsFormsHost x:Name="winFormsHost" Grid.Column="1">
<activeXControl:AxWindowsMediaPlayer x:Name="activeXMediaPlayer"/>
</WindowsFormsHost>
</Grid>
</Window>
窗口标签故意剪断