Home > Forum > User Voice > SDK Teams plugin

SDK Teams plugin
0

Hey there,
I just found the GitHub from Webcon and i tried to install the teams plugin but unfortunately is continuously crashing when i try to upload it in Webcon . The error is the one showed below . I have to mention that i tried to change the version of the NuGet package but the error is the same.




Type: System.IO.FileNotFoundException
-------------------------------------------------------

Message: Could not load file or assembly 'Microsoft.Graph.Core, Version=1.21.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
-------------------------------------------------------

CallStack
-------------------------------------------------------
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)

at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

at System.Reflection.Assembly.ReflectionOnlyLoad(String assemblyString)

at WebCon.WorkFlow.Studio.Forms.ModuleSDK.AssemblyNameLoader.MyReflectionOnlyResolveEventHandler(Object sender, ResolveEventArgs args)

at System.AppDomain.OnReflectionOnlyAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
-------------------------------------------------------

MVP
In reply to: Michał Bednarczyk

Hello,
This package is using Microsoft.Graph.Core and few more dlls, so you have to put this dlls in package. Example of correct package is published on github as release https://github.com/WEBCON-BPS/BPSExt-Teams/releases/tag/2021.1

Hi Iulian,

if you don't want to do it manually every time, you could use a PowerShell script.


https://daniels-notes.de/posts/2021/custom-action-xml-to-item-list#vs-solution-information

Here's an example:
https://github.com/cosmoconsult/webconbps/blob/main/SDK_Actions/CC_XmlToItemList/CreatePackage.ps1

And the post build event:
powershell $(SolutionDir)\CreatePackage.ps1 -targetDir '$(TargetDir)' -projectDir '$(ProjectDir)' -projectName '$(ProjectName)' -copyDestinationFolder '\\gldtc-ap-bpsa02\c$\Install\Extensions'

You can omit the "copyDestinationFolder" parameter.

For a little bit more information you can refer to:
https://daniels-notes.de/posts/2021/custom-action-xml-to-item-list#vs-solution-information

Remark:
The repository above uses an older version of "IndentTextLogger".
https://github.com/Daniel-Krueger/webcon_reportSubscriptions/blob/main/ReportSubscriptions/ReportSubscriptions/Logic/IndentTextLogger.cs
This one creates event log error entries in case of errors in case of exceptions using the explanation from here:
https://community.webcon.com/forum/thread/406?messageid=406

Best regards,
Daniel