我在 Visual Studio 中重建项目时遇到错误

问题描述 投票:0回答:1

Couldn't process file MLogin.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.

以上是我遇到的错误。

我将文件属性更改为始终复制。我仍然收到错误。 picture of the properties

visual-studio
1个回答
1
投票

此问题可能是由于文件被标记为来自 Internet 或受限区域,因此在处理该文件时出现问题所致。以下是解决此问题的步骤:

1:在Windows资源管理器中右键单击该文件,选择“属性”,在此对话框的底部应该有一个“取消阻止”选项。请记住单击“确定”接受更改。

2:使用PowerShell命令批量解锁文件。打开 PowerShell,然后导航到您的项目文件夹并输入以下命令:

获取-ChildItem -路径您的解决方案路径-递归|解锁文件

请将 YOUR-SOLUTION-PATH 替换为您的解决方案路径。

© www.soinside.com 2019 - 2024. All rights reserved.