我目前正試圖實現一個插件系統發現here。這是一個美妙的插件系統,但如果我嘗試加載設計師爲MainWindow.xaml所包含的WpfApplication我得到一個異常:無法解析彙編Microsoft.Expression.Interactions
System.Reflection.Adds.UnresolvedAssemblyException
Type universe cannot resolve assembly: Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
一切都建立並運行良好,但它是特別令人沮喪的XAML設計沒有UI視圖。有沒有辦法解決這個錯誤?這裏究竟發生了什麼?
此外.dll位於我的項目文件夾「C:... \ PluginSystem \ Libraries \ Microsoft.Expression.Interactions.dll」下。 .dll與插件系統本身一起分發。
打開的窗口標籤:
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
xmlns:local="clr-namespace:PluginSystem.Controls;assembly=PluginSystem"
xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
xmlns:PluginSystem="clr-namespace:PluginSystem;assembly=PluginSystem"
xmlns:PluginSystem_Controls="clr-namespace:PluginSystem.Controls;assembly=PluginSystem"
xmlns:Plugin1="clr-namespace:Plugin1;assembly=Plugin1"
xmlns:Plugin3Dependency="clr-namespace:Plugin3Dependency;assembly=Plugin3Dependency"
xmlns:WpfApplication_ViewModel="clr-namespace:WpfApplication.ViewModel"
x:Class="WpfApplication.MainWindow"
Title="MainWindow" Height="350" mc:Ignorable="d" Width="525">
我不熟悉插件系統,但確保它沒有被阻止,因爲你從網上下載它。 (右鍵單擊DLL ...屬性...,如果該選項存在,請單擊「取消阻止」)。 – keyboardP
我解鎖了原始的.zip文件。所有文件都暢通無阻。 – DanteTheEgregore