FileLoadException when trying example
Closed this issue · 2 comments
mika76 commented
Trying the example code from the readme, just adding in the nuget package and I get the following exception... Tried on both MacOs and Windows 10. Am I missing dome dependency?
csproj...
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="WSCT.Wrapper.Desktop" Version="1.2.2" />
</ItemGroup>
</Project>
result...
System.IO.FileLoadException
HResult=0x80131040
Message=Could not load file or assembly 'WSCT, Version=6.1.3.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
Source=<Cannot evaluate the exception source>
mistial-dev commented
I'm using the following in the .csproj, and it's working fine.
<ItemGroup>
<PackageReference Include="WSCT.Core" Version="6.2.0" />
<PackageReference Include="WSCT.Wrapper.Desktop" Version="1.3.0" />
</ItemGroup>
mika76 commented
Shooo this was a looong time ago 😉 I'll try it again some time and see if it's still an issue.