简体   繁体   English

dll异常处理

[英]Exception Handling with dll

System.IO.FileNotFoundException' in mscorlib.ni.dll mscorlib.ni.dll中的“ System.IO.FileNotFoundException”

So, I have this Universal Windows Platform app that used to work perfectly fine at first on both mobile and computer but when I installed the latest Anniversary update and then tried running the same application it threw above app. 因此,我拥有一个通用Windows平台应用程序,该应用程序最初在移动设备和计算机上都能正常运行,但是当我安装了最新的Anniversary更新并尝试运行该应用程序时,该应用程序已超出该应用程序。

I have tried following methods to try and resolve this: Updated all Nuget packages related to project Made sure that file was referenced in Project.json and under References Copied mscorlib.ni.dll file in bin manually Added that file in solution manually 我尝试了以下方法尝试解决此问题:更新了与项目相关的所有Nuget程序包确保已在Project.json中以及“引用”下的bins中复制了该文件mscorlib.ni.dll文件中引用了该文件手动在解决方案中添加了该文件

Run visual studio as administrator. 以管理员身份运行Visual Studio。 Exception should disappear. 异常应该消失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM