I'm using DIS on VS2017 to develop an automation script from scratch.
I used the following option to create an Automation Script solution and just added some code.
As soon as I try to publish on my DMA I'm getting the following error:
System.MissingMethodException:
Message="Method not found: 'System.Collections.Generic.IEnumerable`1<System.ValueTuple`2<System.String,System.String>> Skyline.AppInstaller.AppPackageAutomationScriptBuilderHelper.ExtractAssemblies(Byte[], System.Collections.Generic.IEnumerable`1<System.String>)'."
Source="SLDisCompiler"
StackTrace:
at SLDisCompiler.PackageBuilder.AutomationScriptPackageBuilder.CreatePackage()
at SLDisCompiler.PackageBuilder.AutomationScriptPackageBuilder.Build()
at Skyline.VSX.ProtocolEditor.Margin.PublishDropDownButton.<>c__DisplayClass20_0.<PublishAutomationScript>b__2(DoWorkEventArgs a)
at SLDisCommon.Tools.Tools.<>c__DisplayClass46_0.<RunInBackground>b__0(Object a, DoWorkEventArgs b)
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
This error still shows up when I comment all the code, so should be some setting on DIS that is raising it. Can anyone please advise?
I've experienced same issue after upgrading DIS to latest version (and using VS 2017).
I have been advised to upgrade to a more recent VS ( 2019 ) ; and this has fixed my issue.
Hi Bruno,
Looks like problem with the Skyline.AppInstaller class, which is one of the packages in the Dataminer Class Library. I had a similar issue in VS 2019 some time ago and fixed it by re-generating the Class Library Code: in Visual Studio solution -> Extensions -> DIS -> Automation Script -> Generate Class Library Code.
Pawel, thank you for your input, however, selecting that option, doesn’t yield any result in my case.
I’m using an automation script solution by the way.