是这样的 我用wpf做了一个项目 导出为dll 我在另一个项目中导入这个dll文件
然后我想要加载这个dll文件中的xaml文件
以下是我的代码
public MainWindow()
{
InitializeComponent();
string path = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Assembly vm = Assembly.LoadFile(path + @"\XinjieModbus485.dll");
App.LoadComponent(new Uri("XinjieModbus485.View.Modbus485Page.xaml"));
}
但是报错了
有知道的小伙伴吗