XamlTypeInfo.g.cs中的Windows UWP App FileNotFoundException

时间:2016-07-09 20:36:03

标签: c# uwp

我正在开发一个在桌面上运行良好的简单Windows UWP app。但是,当我尝试在移动模拟器或设备上调试它时。我在XamlTypeInfo.g.cs文件中收到以下错误。

public global::Windows.UI.Xaml.Markup.IXamlType GetXamlType(string fullName)
        {
            System.Diagnostics.Debug.WriteLine(fullName); // added this line to get file name
            if(_provider == null)
            {
                _provider = new global::ContosoCabs.UWP.ContosoCabs_UWP_XamlTypeInfo.XamlTypeInfoProvider();
            }
            return _provider.GetXamlTypeByName(fullName);
        }

错误是

An exception of type 'System.IO.FileNotFoundException' occurred in App.UWP.exe but was not handled in user code

Additional information: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

找不到的文件名:Windows.Foundation.IReference1<Windows.UI.Xaml.Automation.Peers.AccessibilityView>

我无法弄清楚该文件是什么,因为它在桌面上正常运行。欢迎任何建议。 TIA!

0 个答案:

没有答案