xamarin-studio

Using xamarin to retrieve JSON message from URl and show in table view

谁说胖子不能爱 提交于 2020-01-04 03:18:21
问题 I'm started developement in xamarin cross platform development in visual studio. I want to know, how to retrieve the JSON message from url to show the details in table view. Here i give a sample url, how to retrieve all the city name in the json data and show in table. Help me! url: http://api.wunderground.com/api/02e5dd8c34e3e657/geolookup/conditions/forecast/q/Dhaka,Bangladesh.json 回答1: As @Udi said, your question is too broad. But because of that, I'll give broad answers. First, use

Xamarin Studio / MonoDevelop T4 pre-build

拥有回忆 提交于 2020-01-04 02:44:47
问题 Is there a way, with Xamarin Studio, to have a pre build command that runs a T4 template? This would help generating a C# file on the fly. 回答1: Ok here is the solution if somebody is interested: Just create a mono-t4 file in your solution folder: #!/bin/bash mono /Applications/Xamarin\ Studio.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.TextTemplating/TextTransform.exe -o $1 $2 Don't forget to make it executable with chmod +x mono-t4 Then in your project options, in "Custom commands"

How to change Picker background Color in Xamarin MAC Platform

不打扰是莪最后的温柔 提交于 2020-01-02 08:14:12
问题 After updating the Xamarin Library and MAC OS to latest system, facing issue in Picker Background color and color of item that is selected/focused in picker for MAC Platform in my visual studio 2017. Picker that is filled with multiple values On opening the picker can not able to set the background color and the item that is selected is also not visible because of its color How can I set the background color of that picker and the color of that focused/selected item of picker? 回答1: This seems

Xamarin Add-ins Aren't working, cannot see list of add ins

ぐ巨炮叔叔 提交于 2020-01-02 06:14:15
问题 I'm just getting started with CocosSharp in Xamarin Studio on Mac. I'm trying to follow this walk-through. https://developer.xamarin.com/guides/cross-platform/game_development/cocossharp/first_game/part1/ The first step in the Walk-through is to open up Xamarin Studio, and install the CocosSharp add-in. "If running on a Mac, select Xamarin Studio > Add-in Manager...Click the Gallery tab, expand the CocosSharp item, select CocosSharp project templates, and finally click Install... ." When I do

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

馋奶兔 提交于 2020-01-02 06:00:12
问题 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

How can I get PixlUI for Android custom fonts working?

别说谁变了你拦得住时间么 提交于 2020-01-01 19:34:35
问题 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

Code coverage on Xamarin Studio

白昼怎懂夜的黑 提交于 2020-01-01 15:32:33
问题 Is there a reliable tool that would help us measure the code coverage of my unit tests? I'm mostly working on Xamarin projects (in Xamarin Studio). For the sake of not getting heaps of -1, I've looked around but couldn't find something mature enough to be reliable. I don't ask the product to be free (but it's of course better if it is ! ) 回答1: There is the code coverage profiler that is in the Mono 4.x line (since a April 7, 2015 commit). It does not help you if you doing Mobile testing, but

Codesign error in Xamarin Studio 5.9.7 (build 9) and Xamarin.iOS 9.0.1.18

痞子三分冷 提交于 2020-01-01 05:34:11
问题 I have upgraded Xamarin Studio to the latest version in the beta channel. When I try to run the app I get the following error: Signing application codesign -v --force --sign "[hex]" --entitlements "/Users/[username]/devel/git/[app]/bin/iPhone/Debug/[app].xcent" "/Users/[username]/devel/git/[app]/bin/iPhone/Debug/[app].app" /Users/[username]/devel/git/[app]/bin/iPhone/Debug/[app].app: invalid resource specification rule(s) codesign exited with code 1 Why could this be? And how can I get around

How do I add a system.core.dll reference to my project in xamarin studio/monodevelop

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-30 11:07:32
问题 I'm trying to use System.Linq because it has an 'Unknown resolve error'. I've done a bit of looking around on how to do this and all I can find is people saying that it needs to be added or that they added it. I'm wondering how to add it to my project so that I can use the '.ToList' function. 回答1: If you are doing a traditional iOS or Android project with Xamarin Studio, by default a reference to System.Core should already be added. However, if you're creating a PCL you will see a reference

Xamarin Studio Error MSB4018: The “ConvertResourcesCases” task failed unexpectedly

核能气质少年 提交于 2019-12-30 10:59:51
问题 I am getting the following error while trying to build my solution. I am trying to update an existing project that I haven't touched for a few months. Its location in my PC has not changed. C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error MSB4018: The "ConvertResourcesCases" task failed unexpectedly. System.IO.FileNotFoundException: Could not find file 'obj\Debug\res\anim\slide_out_left.xml'. File name: 'obj\Debug\res\anim\slide_out_left.xml' at System