locked
Using Infer.net on android application RRS feed

  • Question

  • Hi

    I try to develop android application in .net using c# ( 2010 ) and use infer.net in my application. but when i add Infer.Compiler and Infer.Runtime as reference and try to build i got this error

    Error    1    Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Perhaps it doesn't exist in the Mono for Android profile?
    File name: 'System.Windows.Forms.dll'
       at Monodroid.Tuner.MonoDroidResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
       at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1 assemblies, AssemblyDefinition assembly)
       at Xamarin.Android.Tasks.ResolveAssemblies.Execute()    AndroidApplication7

    How can I run infer.net in Visual Studio 2010 for develop android application.

    Thanks in advance

    Thursday, March 28, 2013 9:55 PM

All replies

  • A couple of things:

    1. The error that you are receiving "Could not load assembly System.Windows.Forms" is not related to Infer.NET as Windows Forms is a standard .NET component. Are you able to load other .NET assemblies?

    2. The Infer.NET license is for academic use only (i.e. it can't be used in commercial applications) and it may well be that an Android application will not comply with this.

    John 

    Monday, April 8, 2013 3:12 PM