简体   繁体   English

无法加载资源(.resx)文件,因为它不受信任

[英]Unable to load resource (.resx) file because it is not trusted

I am facing an issue while building windows source in Visual studio 2017. Showing the error message mentioned in the title. 在Visual Studio 2017中构建Windows源代码时遇到问题。显示标题中提到的错误消息。

Anyone have any idea about this error message? 有人对此错误消息有任何想法吗?

Finally I could have resolved the issue as below: 最后,我可以解决以下问题:

  1. Open the file explorer. 打开文件资源管理器。 Navigate to project/solution directory 导航到项目/解决方案目录
  2. Search for *.resx. 搜索* .resx。 --> You will get list of resx files ->您将获得resx文件列表
  3. Right click the resx file, open the properties and check the option 'Unblock' 右键单击resx文件,打开属性并选中“取消阻止”选项
  4. Repeat #3 for each resx file. 对每个resx文件重复#3。
  5. Reload the project. 重新加载项目。

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

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