C# 无法处理文件 xxx.resx 由于其位于 Internet 或受限区域或文件上具有 Web 标记 [英] 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

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

问题描述

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

由于错误而无法构建:

<块引用>

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

类似的问题在这里

勾选此项并点击应用.清理您的解决方案,它将构建.

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

Can't build due to error:

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.

similar question is here Couldn't process file resx due to its being in the Internet or Restricted zone or having the mark of the web on the file

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).

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 ?

解决方案

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 或受限区域或文件上具有 Web 标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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