我有一個使用引用庫的應用程序。 該庫反過來引用.winmd庫。運行時嘗試查找exe/dll而不是.winmd引用
望着引用庫中的IL,我可以SEEE此引用:
.assembly extern windowsruntime FlurryWin8SDK
{
.ver 0:9:0:0
}
在運行但是,我得到一個例外:
{"Could not load file or assembly 'FlurryWin8SDK' or one of its dependencies. The system cannot find the file specified.":"FlurryWin8SDK"}
此外,通過使用procmon中我看到有嘗試搜索FlurryWin8SDK.exe和FlurryWin8SDK.dll,但不是擴展名爲.winmd的文件。
此外,這是從融合LogViewer中輸出:
BEGIN : Framework bind.
END : The provided identity format is not recognized. (Exception from HRESULT: 0x80132003)
BEGIN : Windows Runtime Type bind.
END : The provided identity format is not recognized. (Exception from HRESULT: 0x80132003)
BEGIN : Immersive bind.
END : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
有什麼能爲這種古怪的行爲的原因?
您是否找到解決方案?我在WP 8.1中使用我自己的WinMD組件時遇到了非常類似的問題。 – Soonts