I have updated the lates version of mono for android 4.0, and in the runtime itg gets me an Internal Error. Argument cannot be null. Parameter name: source.
How can I fix it?
What version of MonoDevelop are you running? Mono for Android 4.0 requires v2.8.4.1
http://android.xamarin.com/Releases/Mono_for_Android_4/Release_4.0.0
Edit: This was brought up on the mailing list today and is a bug:
This is a bug that's been identified today, and it's due to the project having external assembly references. While this is being fixed, disable "Fast Deployment" on the Project Options / Mono for Android Build panel.
This was just fixed in MonoDevelop 2.8.4.2.
Download from: http://monodevelop.com/Download
Related
Severity Code Description Project File Line Suppression State
Error The type 'CoreLocation.CLBeaconIdentityConstraint' (used as a
parameter in
CoreLocation.CLLocationManager/_CLLocationManagerDelegate.DidFailRangingBeacons)
is not available in iOS 12.2 (it was introduced in iOS 13.0). Please
build with a newer iOS SDK (usually done by using the most recent
version of Xcode).
Note: I did not face this issue before a day, suddenly I was getting this Error,Can anyone help out.
OS version : 10.14.5
Xcode 10.2
The latest version of Xcode is 11.3.1 and you are running 10.2. The message you posted suggests using the most recent version. Here is a post explaining how to upgrade Xcode: How do you update Xcode on OSX to the latest version?
In all likelihood, some change you made to the app caused the need to upgrade.
You recently use _CLLocationManagerDelegate.DidFailRangingBeacons in your project and it is only available in iOS 13.
While with XCode 10.2 you use, it uses sdk iOS 12.2. That method is not available under your current version of XCode so you get the error message.
Solution is update both your Visual-Studio and XCode to meet the iOS 13 SDK requirement.
Here is the Visual Studio 2019 Release Notes
I've made a fresh Xamarin Forms Portable Project from the Cross Platform templates in Visual Studio 2015. Haven't touched or modified any of the project files. Then When I try to initially build it, I get the following build error:
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1098,5): error MSB3644: The reference assemblies for framework "MonoAndroid,Version=v6.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
My Project defaults are:
Looking at similar questions, it would seem that, indeed, that version of the framework is not installed. But it seems to be. Android SDK Manager shows the following:
What is going on here? How can I resolve this.
When you get these type of errors, that are really 'out there' and hint of system configuration problems, it's time to reinstall.
I had to completely remove all remnants of Visual Studio, SDKs and Xamarin. 'Modify' and 'Repair' didn't work.
After the complete fresh install of VS 2015 and Xamarin, things are back to normal.
I have problem in C# development in monodevelop tool for unity.
In that many methods and Interfaces not found like IEnumerator and Array.Length.
I found Same question but it's not work for me.
because solution of that question is import System.Collections namespace but I was already imported it then also throw compile time error.
I Have installed latest .Net Framework on Windows 8.1 Os.
How i solve this problem?
I have had that problem before. I was using the latest .net framework and I went to Programs and Features within control panel (if you're using Windows) and selected the box to also run .net framework 3.5 I think it was.
I then shut down my project after saving, restarted my machine and it worked fine
Close the project from MonoDevelop by doing Right Click. And open the *.sln file manually in MonoDevelop
I'm using Debian and I had your error, this error, and both was fixed by installing these packages:
mono-reference-assemblies-2.0
mono-reference-assemblies-3.5
Using APT:
sudo apt install mono-reference-assemblies-2.0 mono-reference-assemblies-3.5
I developed an app that uses Tweetsharp, now I would like to convert that app with mono but I am kinda new to this world!
I downloaded mono, monodevelop and moma and I noticed that in Tweetsharp there is a solution for mono.
I tried to build it with either visual studio and monodevelop but both give me errors. So what is the right procedure to generate a reference for mono applications?
And the reference has to be used with monodevelop or I can use it also in VS using a directive?
From its GitHub history we can see there are few commits to the Mono folder now (Feb 1 2012),
https://github.com/danielcrenna/tweetsharp/commits/master/src/mono
Therefore, I think this library is not yet Mono compatible. If you are not capable of helping port it to Mono, you would have to wait till its authors finish the port, or find another library in this field who supports Mono.
I'm trying to run a .NET exe on a Ubuntu machine (I installed the package mono-complete), so far with no luck. The application is compiled with Visual C# Express 2010 under .NET 4 (Client Profile).
I try executing the program with the following command:
mono application.exe
However, I get the following error:
WARNING: The runtime version supported
by this application is unavailable.
Using default runtime: v1.1.4322
** (application.exe:5586): WARNING **: Missing method
System.Windows.Forms.Application::SetCompatibleTextRenderingDefault(bool)
in assembly
/usr/lib/mono/gac/System.Windows.Forms/1.0.5000.0__b77a5c561934e089/System.Windows.Forms.dll,
referenced in assembly
/media/disk/application.exe
Unhandled Exception:
System.MissingMethodException: Method
not found:
'System.Windows.Forms.Application.SetCompatibleTextRenderingDefault'.
It's suppose to be using .NET 4, not 1, but I don't know how to set it. I tried
mono --runtime=4.0.30319.1 application.exe
But that didn't work either.
Any help would be appreciated.
Sounds like you're experiencing this bug:
My Doc's Got No Nodes: .net 4 Client Profile on Mono 2.8
That is assuming you installed > Mono 2.8 (which was the first release to support .NET 4.0). If not, you should install a more recent Mono package.
The other thing to keep in mind is that Mono doesn't support the entirety of WinForms. Unless you developed your application with Mono in mind, there's a good chance you'll find that something you used isn't supported.
I suspect the exception is because the method System.Windows.Forms.Application.SetCompatibleTextRenderingDefault hasn't been implemented. Have you ran the tool through the Mono Migration Analyzer (MoMA), should help in knowing whether your application is compatible with mono. From that point you can possibly workaround the problem, maybe even incorporating the missing method in your code.
Current mono-complete package (even on Ubuntu Natty) uses mono 2.6.7 which doesn't support .NET 4.0 API. You'll have to build newest version of mono, which is the best way to get a chance of using 4.0 API. "Complete" support of .NET 4.0 is however planned in mono 3.0.
Install Monodevelop and just right click on the example.csprj that is a C#.NET project in linux and click on Monodevelop.