We\'re building an Outlook 2010 plugin using VS2013, .NET4, Microsoft Async and BCL Portability (from Nuget) and encountering build errors similar to this question and this
I had the same issue when upgrading my Visual Studio 2010 VSTO projects to Visual Studio 2013. The way I fix the issue was with a combination of two things:
First I removed the reference to the assembly attribute SecurityTransparent from my AssemblyInfo.vb
<Assembly: SecurityTransparent()>
Second I set Copy Local = true on the Microsoft.Office.Tools.Common.v4.0.Utilities reference.
I was able to fix this error by adding explicit assembly version references in my .csproj. See https://stackoverflow.com/a/29095545/4679952 for details.
You need to remove the SecurityTransparent
attribute from the end of the AssemblyInfo.cs
file.