3

I just upgraded my Xamarin to the latest that includes the new Mono 4.8.

My projects are all set to Xamarin .NET 4.5.2.

I have been using Ionic DotnetZip library in this project.

I am building for OSX.

I checked out my code on a mac that has not been updated and it still works, so it is definately the upgrade in .NET or Mono that is causing the problem.

The problem is that now when I try to instanciate a ZipFile object I get a FileNotFoundException:

Could not load file or assembly 'I18N, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies

SushiHangover
  • 73,120
  • 10
  • 106
  • 165
user856232
  • 1,073
  • 2
  • 14
  • 40

1 Answers1

2

Make sure that you are including references for the I18N-based internationalization that you are using on your Xamarin.Mac application:

enter image description here

And in the project options, under the Mac Build settings, select which I1BN resource(s) to package in your app bundle:

enter image description here

SushiHangover
  • 73,120
  • 10
  • 106
  • 165
  • That was it. That must be a new thing with the latest Xamarin. Thank You!!! – user856232 Mar 10 '17 at 17:18
  • @user856232 Yes, new requirement for the iOS and Mac packaging when using I18N – SushiHangover Mar 10 '17 at 17:20
  • To add the I18N assemblies, right-click References and select "Assemblies" in the dialog to add them from the Framework, for anyone else who was confused. (They are not nuget packages; they are part of the Mono framework.) – voxoid Jun 18 '19 at 16:43