C#无法处理文件xxx.resx,因为它位于Internet或“受限制的区域"中或文件上带有网络标记 [英] C# Couldn't process file xxx.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file

查看:887
本文介绍了C#无法处理文件xxx.resx,因为它位于Internet或“受限制的区域"中或文件上带有网络标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在VS2012中构建项目时遇到问题.

I have issue while i try to build project in VS2012.

由于错误而无法构建:

由于文件xxx.resx位于Internet或受限制"区域中,或者文件上带有网络标记,因此无法处理.如果要处理这些文件,请删除网络上的标记.

Couldn't process file xxx.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files.

类似的问题在这里 可以'无法处理文件resx,因为它位于Internet或受限制的区域"中或文件上带有网络标记

但是我尝试了该选项,但没有运气,因为我没有从Internet下载文件.该项目是从头开始构建的.在选择属性"之后的项目中,在Windows资源管理器中没有任何反应,我没有取消阻止"选项,只有默认的3个选项(只读,隐藏,存档).

but I try that option and have no luck, because I didn't downloaded file from internet. That project was build from scratch. In project after selecting Properties, in Windows Explorer nothing happened, i don't have "unblock" option, only default 3 options (read only, hidden, archived).

我有同样的错误,无法生成或重建项目.我的理论是更新Windows后出现最近的错误.在更新之前,一切正常.有什么想法吗?

I have same error and can't build or rebuild project. I have theory that is recent error after update Windows. Before update, everything works fine. Any ideas ?

推荐答案

转到Windows文件资源管理器中的xxx.resx文件.右键单击并选择属性.对话框底部是一个取消阻止"选项:

Go to xxx.resx file in Windows File Explorer. Right-click and select properties. At the bottom of the the dialog is an "unblock" option:

选中此项,然后单击应用".清洁您的解决方案,它就会生成.

Check this and click Apply. Clean your solution and it will build.

这篇关于C#无法处理文件xxx.resx,因为它位于Internet或“受限制的区域"中或文件上带有网络标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆