Finally, we got this to work with a network resource using the following commands:
setx COMPLUS_LoadFromRemoteSources 1 caspol -m -ag 1.2 -url file://<path>* FullTrust
For example, if the path is \\computer\share\ , then the second command will be:
caspol -m -ag 1.2 -url file://\\computer\share\* FullTrust
(note the asterisk at the end of the path)
Close VS first, run the commands, restart VS. This worked for me without having to clean / build my project.
source share