Hi,
Could you please help me with the following issue?
On Visual Studio 2022 the Unit Tests are passing but in Jenkins the following message is shown.
System.BadImageFormatException: Could not load file or assembly 'SLManagedScripting, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
In the test project.
<ItemGroup>
<PackageReference Include="FluentAssertions">
<Version>5.10.3</Version>
</PackageReference>
<PackageReference Include="Moq">
<Version>4.16.1</Version>
</PackageReference>
<PackageReference Include="MSTest.TestAdapter">
<Version>1.3.2</Version>
</PackageReference>
<PackageReference Include="MSTest.TestFramework">
<Version>1.3.2</Version>
</PackageReference>
<PackageReference Include="Skyline.DataMiner.Core.DataMinerSystem.Common">
<Version>1.1.1.4</Version>
</PackageReference>
<PackageReference Include="Skyline.DataMiner.Core.DataMinerSystem.Protocol">
<Version>1.1.1.4</Version>
</PackageReference>
<PackageReference Include="Skyline.DataMiner.Dev.Protocol">
<Version>10.4.1.2</Version>
</PackageReference>
<PackageReference Include="Skyline.DataMiner.Files.SLManagedScripting">
<Version>10.4.1.2</Version>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers">
<Version>1.1.118</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
could you please point me in the right direction?
thanks in advance.
Issue was resolved by updating the GIT system files via the SLC repo manager.
Hi Ola, could you post a new question and link this one in the description. Someone should be able to answer it. Im assuming you can also add the files manually but I'm not 100% sure of the configuration.
Hello Geovanny, I have the same error but I fond that SLC repo manager is only for Skyline employees, So how can I solve this error?