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