xamarin-studio

Xamarin Studio, GTK 2.0 C# application, runtime error, can't load libglib-2.0-0.dll

主宰稳场 提交于 2019-12-05 15:35:34
I've installed fresh Xamarin Studio 5.10 on Windows 7 and created standard GTK 2.0 C# project (via New Project > .Net > GTK#2.0 Project). Code's below: using System; using Gtk; namespace _test { class MainClass { public static void Main (string[] args) { Application.Init (); MainWindow win = new MainWindow (); win.Show (); Application.Run (); } } } Build is ok, but runtime error raises (I've translated error from my native language into english): Can't load DLL "libglib-2.0-0.dll": Procedure was not found (Exception from HRESULT: 0x8007007F) Mono and gtk# seems to be installed ok via exes from

How to check memory leak in Xamarin.Android?

时光怂恿深爱的人放手 提交于 2019-12-05 07:59:00
Could anyone share suggestions or ways to check memory in the Xamarin.Android platform using Xamarin Studio? I have tried with the below option available in Xamarin Studio, Tools > Instruments > Allocations But in that, I can select only iOS devices in the options as in below image, Is there any solution for this? Sadly, but you can't do it from Xamarin Studio in any reliable way. You can try profiler, but it requires Enterprise license. My suggestion is to use standard Android tools. PREPARATION: 1) Download "Eclipse Memory Analyzer" 2) Find Android Device Monitor. Bundled with Android SDK

WebHeaderCollection & HttpWebRequest on Xamarin

£可爱£侵袭症+ 提交于 2019-12-05 07:34:27
问题 I'm trying to port my project from Xamarin Studio on Mac to Visual Studio 2012 on Windows 7. On Mac and XS works all fine. On VisualStudio 2012 i've those 2 problems: Error 3 'System.Net.WebHeaderCollection' does not contain a definition for 'Add' and no extension method 'Add' accepting a first argument of type 'System.Net.WebHeaderCollection' could be found (are you missing a using directive or an assembly reference?) C:\Users\user\Documents\Visual Studio 2012\Projects\MyProject\MyProject

How can I get PixlUI for Android custom fonts working?

不问归期 提交于 2019-12-04 18:44:14
I am trying to use PixlUI to implement custom fonts into my Android app using Xamarin. I've followed these steps: Added a new Android Java Bindings Library to my main solution Added pixlui-1-0-5.jar to the jars folder Under properties for pixlui-1-0-5.jar i've set the "include in deploy" to true Tested my new Android Java Bindings Library and it builds fine without errors Under the main project i've added my font to the assets/fonts folder Under references i've added the pixlUI binding library In my main.axml i've placed this code: <RelativeLayout xmlns:android="http://schemas.android.com/apk

No resource found that mach the given name Theme.AppCompat.Light.NoActionBar

故事扮演 提交于 2019-12-04 17:53:40
问题 I am adding some items in Styles.xml files. However, it is giving me an error. Here is my code. <?xml version="1.0" encoding="UTF-8" ?> <resources> <style name="MyTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">#2196F3</item> <item name="drawerArrowStyle">@style/MyDrawerArrowStyle</item> </style> <style name="MyDrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle"> <item name="color">#F5F5F5</item> <item name="spinBars">true</item> </style> </resources>

Cannot load a TextureAtlas file in IOS using libgdx while loading through AssetManager

徘徊边缘 提交于 2019-12-04 14:58:14
I started porting my LIBGDX appliction to IOS. I Used Xamarin studio port of libgdx to run my application on IOS. I was successful in porting but the application failed to load the TextureAtlas File & BitmapFont File in Iphone Simulator. the code I tried was ... AssetManager assetManager = new AssetManager(); assetManager.load("packer/help.txt", TextureAtlas.class); if (assetManager.update()) { } ... The above code is running fine for me on Desktop and android but while running it on Iphone Simulator I got the following log. Unhandled Exception: 0 iosgame 0x000f4f7e mono_handle_exception

setup of xamarin studio to work with PCL & MVVMCross

若如初见. 提交于 2019-12-04 11:50:27
问题 I really enjoy Xamarin Studio and I'm looking for a template solution to start developing a cross devices application with MvvmCross. But I can't find how to set a project to work with PCL and MvvmCross with Xamarin Studio. If anyone can give me a link where I can find a tutorial to make it, it would be awesome. I would be very pleased to contribute to this community by giving my feedback and providing some tutorial about how to start using Xamarin Studio, PCL MvvmCross and get rid of Visual

Using SQLite-Net Extensions and SQLiteConnection in Xamarin.Mac

为君一笑 提交于 2019-12-04 10:41:50
问题 I'd like to know, how can I use SQLite-Net Extensions within Xamarin.Mac project? I'm using Xamarin Studio 5.9.5 , I've created project from Mac->App->Empty project (Unified API). Installed package SQLite-Net Extensions . Here is the beginning of my code: var db = new SQLiteConnection(???????, dbPath); db.CreateTable<Stock>(); db.CreateTable<Valuation>(); How can I call SQLiteConnection constructor? I need sqlite platform as first parameter, but there are no SQLite.Net.Platform. dlls added to

Visual Studio : The Android SDK Directory could not be found. Please set via /p:AndroidSdkDirectory

China☆狼群 提交于 2019-12-04 01:52:27
I have installed Xamarin plugin for Visual Studio 2012. And when create an Android Project and build the same. I am getting the following error. Error 1 The Android SDK Directory could not be found. Please set via /p:AndroidSdkDirectory. AndroidApplication1 I think this error is due to some mapping. Kindly guide to resolve this issue. Thanks in advance. You can solve this by editing the build definition in the VS 2012. Right click on the Build Definition and Edit Build Definition Goto Process -> Advanced -> MSBuild Arguments and append the below parameter value to it /p:AndroidSdkDirectory=C:

WebHeaderCollection & HttpWebRequest on Xamarin

此生再无相见时 提交于 2019-12-03 21:32:56
I'm trying to port my project from Xamarin Studio on Mac to Visual Studio 2012 on Windows 7. On Mac and XS works all fine. On VisualStudio 2012 i've those 2 problems: Error 3 'System.Net.WebHeaderCollection' does not contain a definition for 'Add' and no extension method 'Add' accepting a first argument of type 'System.Net.WebHeaderCollection' could be found (are you missing a using directive or an assembly reference?) C:\Users\user\Documents\Visual Studio 2012\Projects\MyProject\MyProject.Core\Services\MyProjectService.cs Error 4 'System.Net.HttpWebRequest' does not contain a definition for