Error in Visual Studio when using Trados Studio 4 libraries to develop a tool.

Hi!
I'm using Trados Studio 4 libraries to develop a tool, to complement the Studio, by following the sample code at
http://producthelp.sdl.com/SDK/ProjectAutomationApi/2017/html/41728de4-3eca-4ffe-a272-f632ca798c70.htm
I tried VS 2012,2013,2015,2017.

I kept getting the following error messages:
1)
Managed Debugging Assistant 'PInvokeStackImbalance' : 'A call to PInvoke function 'SentinelRMSCore!SentinelRMSCore.Interface.LSAPI::VLSsetFileName' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.'
2)
"Could not load file or assembly 'Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word_2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
" at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)\r\n at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)\r\n at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)\r\n at System.Type.GetType(String typeName, Boolean throwOnError)\r\n at Sdl.Core.PluginFramework.DefaultPluginTypeLoader.LoadType(IPlugin plugin, String typeName)"

Please advise, urgently. Thank you so much!