See https://learn.microsoft.com/en-us/microsoft-365-apps/security/internet-macros-blocked#remove-mark-of-the-web-from-a-file for more detail.
One way to unblock macros in a file, like one from the internet or an email attachment, is remove the Mark of the Web protection on your local device. To remove, right-click on the file, choose Properties, and then select the Unblock checkbox on the General tab.

In W4548, when I tried to build KapprisIManageAgent.sln in VisualStudio I was getting this:
error MSB3821: Couldn't process file FormInfo.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.
None of the suggestions in the above link helped - the Properties dialog for the resx file doesn't look like the snap above - there's no Security/Unblock section.
Eventually I found an article that said:
…if the resx contains potentially malicious serialized data it may cause the error.
And indeed the resx did contain a serialized icon file. But VS doesn't know it's an image - but it could be a serialized malware - so VS flags it and doesn't let you build at all.
I got the error to go away by including the icon via its file path rather than putting its base64-serialized contents in the resx file. (And the resx file is much shorter afterwards!)


Title Index
Recently Changed
Page Hierarchy
Incomplete
Tags
