SEAL icon indicating copy to clipboard operation
SEAL copied to clipboard

Can I use SEAL with .NET Framework 4.7.2?

Open TaroNakasendo opened this issue 3 years ago • 2 comments

I can use SEAL with .NET 6.0 by NuGet. But, I can't use SEAL with .NET Framework 4.7.2 by NuGet or local build.

The moment I execute the following line, I get an error.

label1.Text = SEALVersion.Version;

System.BadImageFormatException
  HResult=0x8007000B
  Message=Could not load file or assembly 'SEALNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. An attempt was made to load a program with an incorrect format.
  Source=WindowsFormsApp1

Can SEAL be used in the .NET Framework 4.x.x environment?

TaroNakasendo avatar Oct 13 '22 05:10 TaroNakasendo

You should be able to build SEALNet manually/locally for .NET Framework 4.x.x. It does require you to modify the project configurations in dotnet directory.

WeiDaiWD avatar Oct 21 '22 20:10 WeiDaiWD

Thank you. I've tried the following. In build\dotnet\src\SEALNet.csproj From <TargetFramework>netstandard2.0</TargetFramework> To <TargetFramework>net472</TargetFramework>

But I've got same error. (.NET 6.0 project has no error.)

System.BadImageFormatException
  HResult=0x8007000B
  Message=Could not load file or assembly 'SEALNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
  Source=WindowsFormsApp2

Is something wrong?

TaroNakasendo avatar Oct 24 '22 00:10 TaroNakasendo