Select Page

If you download a Visual Studio project as a .zip file, it might get flagged as blocked because it came from an internet zone. Some applications, such as Visual Studio, will mark this as an untrusted document.

You will get a similar error to the following in Visual Studio when building the project:

Error MSB3821 Couldn’t process file Forms\Form_Main.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. SystemRadar C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 3312

There are two ways to unblock the file.

  1. Right click on the .resx file, select properties, then click Unblock.
  2. Run unblock-file * in the folder that the file is with PowerShell.

 

Translate ยป