如何在Unity 3d中使用Microsoft Lync 2013 / SharePoint?

时间:2018-10-31 07:37:35

标签: unity3d skype-for-business skypedeveloper lync-2013

我需要在Unity 3d中使用Microsoft Lync 2013。我已经下载了Microsoft Lync 2013的以下DLL:

  • Microsoft.Lync.Controls
  • Microsoft.Lync.Controls.Framework
  • Microsoft.Lync.Model
  • Microsoft.Lync.Utilities
  • Microsoft.Office.Uc

在将这些dlls整合到unity项目中之后,我可以访问Lync Client和其他功能,但是unity给我以下错误:

Assembly 'Assets/Plugins/x86/Microsoft.Lync.Controls.dll' will not be loaded due to errors:

Assembly 'Assets/Plugins/x86/Microsoft.Lync.Controls.Framework.dll' will not be loaded due to errors:

Assembly 'Assets/Plugins/x86/Microsoft.Lync.Utilities.dll' will not be loaded due to errors:

MethodAccessException: Method `System.__ComObject..ctor()' is inaccessible from method `System.__ComObject..ctor()'
System.__ComObject..ctor () (at <39b6717027e94f68a4d7333ec0540cb3>:0)
(wrapper cominterop-invoke) System.__ComObject..ctor()
System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Activator.CreateInstance (System.Type type) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
Microsoft.Lync.Model.LyncClient.EnsureOI () (at <abe166c977f040c8b40c4dda29b08aea>:0)
Microsoft.Lync.Model.LyncClient.GetClient (System.Boolean sideBySideLync) (at <abe166c977f040c8b40c4dda29b08aea>:0)
Test.Start () (at Assets/Test.cs:16)

我正在使用Unity 2018.3 Beta 7,它在2018.2f1或2018.2f13上均不起作用。 我现在应该怎么做才能使用这些库?

Unity项目设置:

.Net Framework 4.x

平台:独立Windows

0 个答案:

没有答案