Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all 204402 articles
Browse latest View live

How to add checkbox control in XAML

$
0
0

Hi,

I want to add Checkbox control in Xaml page. I added below code in .Xaml page.

    <CheckBox Margin="10, 10, 3, 3" 
                  Name="acceptPolicy" 
                  Content = "Accept our policy"
                  FontSize="12" 
                 Checked="CheckBox_Checked"/>

But i am getting below error?

Error CS0246: The type or namespace name 'CheckBox' could not be found (are you missing a using directive or an assembly reference?)

I am new to Xaml, since i am unable to find Checkbox control in Xamarin.Forms Xaml, i tried to use default Checkbox from here.

If some controls doesn't exist in Xamarin.Forms Xaml, whether can i use default Xaml controls or not?


PRISM + Unity Container - Link sdk and user assemblies

$
0
0

Have anyone already configure the linker to work properly with the Microsoft Unity container?
I have an app that is currently in production but at for now i've only use "SDK assemblies only". So i'm trying to reduce the size of this app and linker is the best option but i'm not getting to make it work.

I've already make a test: created a new Prism.Unity app, with the Prism Template Package and the only change that i made was set link to full mode...the app crashes as well.

The error message:

Unhandled Exception:
08-29 13:52:02.485 E/mono    (12194): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Practices.Unity.ArrayResolutionStrategy' threw an exception. ---> System.InvalidOperationException: Sequence contains no matching element
08-29 13:52:02.485 E/mono    (12194):   at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <b5bd9d990a0b4733885e90ca5ec6c0fb>:0 
08-29 13:52:02.485 E/mono    (12194):   at Microsoft.Practices.Unity.ArrayResolutionStrategy..cctor () [0x00014] in <95410a6f72e5460987abb52dc3238a18>:0 
08-29 13:52:02.485 E/mono    (12194):    --- End of inner exception stack trace ---
08-29 13:52:02.485 E/mono    (12194):   at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
08-29 13:52:02.485 E/mono    (12194):   at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <183b200ee49746d48fc781625979428e>:0 
08-29 13:52:02.485 E/mono    (12194):    --- End of inner exception stack trace ---

Show List in ListView

$
0
0

`using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;

namespace App1
{
public partial class MainPage : ContentPage
{
ObservableCollection Items;
bool isLoading;
Page page;
public MainPage()
{
InitializeComponent();
Items = new ObservableCollection();
var listview = new ListView();

        listview.ItemsSource = Items;
        listview.ItemAppearing += (sender, e) =>
        {
            if (isLoading || Items.Count == 0)
                return;

            //hit bottom!
            if (e.Item.ToString() == Items[Items.Count - 1])
            {
                LoadItems();
            }
        };

        // The root page of your application
        page = new ContentPage
        {
            Content = new StackLayout
            {
                VerticalOptions = LayoutOptions.Center,
                Children = {
                    listview
                }
            }
        };




        ///////////////// Here I must implement List in ListView





        LoadItems();
    }
    async Task LoadItems()
    {
        isLoading = true;
        page.Title = "Loading";

        //simulator delayed load

        for (int i = 0; i < 20; i++)
        {
            Items.Add(string.Format("Item {0}", Items.Count));
        }
        page.Title = "Done";
        isLoading = false;
    }
}

}
`

I want to open a cross platform app but it doesn't appear at my Visual studio preview.

Getting linker working with Prism.Unity.Forms on Visual Studio for Mac

$
0
0

VS Version : 7.4 (Build 1033)
Blank application using prism template
Prism.Unity.Forms 7.0.0.396

Option: Link all assemblies w/o linking file

Error:

[Error] ERR: exClass=android.runtime.JavaProxyThrowable
[Error] ERR: exMsg=Unity.Exceptions.ResolutionFailedException: Resolution of the dependency failed, type = 'Prism.Modularity.IModuleCatalog', name = '(none)'.
[Error] Exception occurred while: while resolving.
[Error] Exception is: ArgumentNullException - Value cannot be null.
[Error] Parameter name: method
[Error] -----------------------------------------------
[Error] At the time of the exception, the container was:
[Error] Resolving Prism.Modularity.ModuleCatalog,(none) (mapped from Prism.Modularity.IModuleCatalog, (none))
[Error] Resolving Prism.Modularity.ModuleCatalog,(none)
[Error] ---> System.ArgumentNullException: Value cannot be null.
[Error] Parameter name: method
[Error] at System.Linq.Expressions.Expression.Call (System.Linq.Expressions.Expression instance, System.Reflection.MethodInfo method, System.Linq.Expressions.Expression arg0) [0x00051] in <0a24f453be304a8aa6b2cbbf538eb178>:0
[Error] at System.Linq.Expressions.Expression.Call (System.Linq.Expressions.Expression instance, System.Reflection.MethodInfo method, System.Collections.Generic.IEnumerable`1[T] arguments) [0x00041] in <0a24f453be304a8aa6b2cbbf538eb178>:0
[Error] at System.Linq.Expressions.Expression.Call (System.Linq.Expressions.Expression instance, System.Reflection.MethodInfo method, System.Linq.Expressions.Expression[] arguments) [0x00000] in <0a24f453be304a8aa6b2cbbf538eb178>:0
[Error] at Unity.ObjectBuilder.BuildPlan.DynamicMethod.DynamicMethodConstructorStrategy.CreateThrowWithContext

Option: Link all assemblies with linking file

<br /> <?xml version="1.0" encoding="UTF-8" ?><br /> <linker><br /> <assembly fullname="Microsoft.Practices.Unity"><br /> <type fullname="Microsoft.Practices.Unity*" /><br /> </assembly></p> <pre><code> <assembly fullname="Prism.Unity.Forms"> <type fullname="Prism.Unity.Extensions.DependencyServiceExtension" preserve="all"> <method name=".ctor" /> </type> <type fullname="Prism.Unity.Navigation.UnityPageNavigationService" preserve="all" /> </assembly> <assembly fullname="Prism.Forms"> <type fullname="Prism.Common.ApplicationProvider" preserve="all" /> <type fullname="Prism.Services.PageDialogService" preserve="all" /> <type fullname="Prism.Services.DeviceService" preserve="all" /> </assembly>


error

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(5,5): Error MSB4018: The "LinkAssemblies" task failed unexpectedly.
Mono.Linker.Steps.XmlResolutionException: Failed to process XML description: ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Microsoft.Practices.Unity, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Microsoft.Practices.Unity, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x000ff] in

Forms Previewer and ImageResourceExtension not loading

$
0
0

Hi, the forms previewer don't show image from my imageresource, is there something I do wrong? It work well on my Android or iOS

my xaml (The normal ContentPage with:)

<Image Source="{local:ImageResource SIV_Lite.back_menu_haut.png}" />

the class:

[ContentProperty("Source")]
public class ImageResourceExtension : IMarkupExtension
{
public string Source { get; set; }

public object ProvideValue(IServiceProvider serviceProvider)
{
    if (Source == null)
    {
        return null;
    }
    // Do your translation lookup here, using whatever method you require
    var imageSource = ImageSource.FromResource(Source);

    return imageSource;
}

}

Using a DataTemplate in a UserControl

$
0
0

Hi Developers,

I created a UserControl that shows Tiles from a List (ItemSource) similar to the ListView control.

My Tiles user Control is currently inheriting from a ContentView and I want it to behave like a ListView, so is it possible to use a DataTemplate to customize the Tiles?

This is the method that creates the tiles but this is very static:

        private void UpdateTiles()
        { 
            foreach (TileGridModel item in ItemsSource)
            {
                var tileItem = new Frame
                {
                    Margin = 10,
                    CornerRadius = 10,
                    HasShadow = false,                    
                    WidthRequest = widthHeight,
                    HeightRequest = widthHeight,
                    OutlineColor = Color.Blue,
                    BackgroundColor = Color.LightGray,
                    Content = new StackLayout
                    {
                        //Padding = 5,                        
                        Orientation = StackOrientation.Vertical,
                        Children =
                        {
                            new CircleImage { Source = item.ImageSource, WidthRequest = widthHeight, HeightRequest = widthHeight / 2, BorderThickness = 2, BorderColor = (Color) Application.Current.Resources["ColorAccent"] },
                            new Label { Text = item.Title, HorizontalTextAlignment = TextAlignment.Center }
                        }
                    }
                };

                var recognizer = new TapGestureRecognizer();
                recognizer.Tapped += OnTileItemTapped;

                tileItem.GestureRecognizers.Add(recognizer);

                mainWrapLayout.Children.Add(tileItem);
            }
        }

So it whould be very nice if I could use a DataTemplate to create the look of the tiles in XAML.
Any ideas how I can realize it?

Show List in ListView

$
0
0

Hello ! I have ListView in the Grid in Xaml . How can I do finish my code to implement information in the ListView ?

`<?xml version="1.0" encoding="utf-8" ?>

<ContentPage.Content>

<Grid.RowDefinitions>

</Grid.RowDefinitions>
<Grid.ColumnDefinitions>

        </Grid.ColumnDefinitions>
        <ListView Grid.Row="0" Grid.RowSpan="5" Grid.Column="0" Grid.ColumnSpan="1" x:Name="list"/>

    </Grid>
</ContentPage.Content>

`

`using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;

namespace App1
{
public partial class MainPage : ContentPage
{
ObservableCollection Items;
bool isLoading;
Page page;
public MainPage()
{
InitializeComponent();
Items = new ObservableCollection();
var listview = new ListView();

        listview.ItemsSource = Items;
        listview.ItemAppearing += (sender, e) =>
        {
            if (isLoading || Items.Count == 0)
                return;

            //hit bottom!
            if (e.Item.ToString() == Items[Items.Count - 1])
            {
                LoadItems();
            }
        };

        // The root page of your application
        page = new ContentPage
        {
            Content = new StackLayout
            {
                VerticalOptions = LayoutOptions.Center,
                Children = {
                    listview
                }
            }
        };




        ///////////////// Here I must implement List in ListView





        LoadItems();
    }
    async Task LoadItems()
    {
        isLoading = true;
        page.Title = "Loading";

        //simulator delayed load

        for (int i = 0; i < 20; i++)
        {
            Items.Add(string.Format("Item {0}", Items.Count));
        }
        page.Title = "Done";
        isLoading = false;
    }
}

}
`


Build problems for iOS Bindings project of Twilio Client SDK

$
0
0

I have created a bindings project with Visual Studio on the Mac, it has the output files from Objective Sharpie and linked libraries as you can see in this repo:
bitbucket.org/mlang74/twiliovoice.ios/src

When the project is built the system is confused about the enumerations, as if they don't even exist.

  • error CS0246: The type or namespace name 'TCConnectionState' could not be found (are you missing a using directive or an assembly reference?)
  • error CS0246: The type or namespace name 'TCDeviceState' could not be found (are you missing a using directive or an assembly reference?)
  • error CS0246: The type or namespace name 'TCLogLevel' could not be found (are you missing a using directive or an assembly reference?)

It seems there must be some simple solution to get the compiler to recognize the StructsAndEnums.cs file and build a dll properly. Any ideas? Is this a project code or setup problem, or a problem with my computer configuration? Can someone open and build this project to verify?

Here is the full build output that I get on my Mac:

Building: TwilioVoice.iOS (Debug)
Build started 11/8/2017 8:32:49 PM.
__________________________________________________
Project "/Users/michaellang/TwilioVoice.iOS/TwilioVoice.iOS.csproj" (Build target(s)):

Target _CollectBundleResources:
    CollectBundleResources Task
      BundleResources: <null>
      OptimizePropertyLists: False
      OptimizePNGs: False
      ProjectDir: /Users/michaellang/TwilioVoice.iOS
      ResourcePrefix: Resources
Target _CreateEmbeddedResources:
    CreateEmbeddedResources Task
      BundleResources:
      Prefix: monotouch
Target _GenerateBindings:
    BTouchEmitDebugInformation: false
    BTouch Task
      BTouchToolPath: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/
      BTouchToolExe: btouch-native
      AdditionalLibPaths: <null>
      AllowUnsafeBlocks: True
      ApiDefinitions:
        ApiDefinition.cs
        ApiDefinitions.cs
        StructsAndEnums.cs
      BaseLibDll: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll
      CompilerPath: <null>
      CoreSources: <null>
      DefineConstants: __UNIFIED__;__MOBILE__;__IOS__;DEBUG;
      EmitDebugInformation: False
      ExtraArgs: <null>
      GeneratedSourcesDir: obj/Debug/ios/
      GeneratedSourcesFileList: obj/Debug/ios/sources.list
      Namespace: <null>
      NativeLibraries: <null>
      NoStdLib: False
      OutputAssembly: <null>
      ProcessEnums: False
      ProjectDir: /Users/michaellang/TwilioVoice.iOS
      References:
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll
      Resources: <null>
      Sources: <null>
    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/btouch-native /v /baselib:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll /unsafe /d:"__UNIFIED__;__MOBILE__;__IOS__;DEBUG" /Users/michaellang/TwilioVoice.iOS/ApiDefinition.cs /Users/michaellang/TwilioVoice.iOS/ApiDefinitions.cs /Users/michaellang/TwilioVoice.iOS/StructsAndEnums.cs -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll /tmpdir:/Users/michaellang/TwilioVoice.iOS/obj/Debug/ios/ /sourceonly:/Users/michaellang/TwilioVoice.iOS/obj/Debug/ios/sources.list /target-framework=Xamarin.iOS,v1.0 
Target _PrepareNativeReferences:
    PrepareNativeReferences Task
      IntermediateOutputPath: obj/Debug/
      NativeReferences: <null>
Target _CompressNativeFrameworkResources:
  Skipping target "_CompressNativeFrameworkResources" because it has no inputs.
Target _CompressObjCBindingNativeFrameworkResources:
  Skipping target "_CompressObjCBindingNativeFrameworkResources" because it has no inputs.
Target _GenerateCompileInputs:
    /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(3163,5): warning MSB9004: ManifestResourceWithNoCulture item type is deprecated. Emit EmbeddedResource items instead, with metadata WithCulture='false', Type='Resx', and optional LogicalName.
Done building target "_GenerateCompileInputs" in project "TwilioVoice.iOS.csproj".
Target GenerateTargetFrameworkMonikerAttribute:
  Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
Target CoreCompile:
    /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/4.5/csc.exe /noconfig /unsafe+ /nowarn:2008 /nostdlib+ /errorreport:prompt /warn:4 /define:__UNIFIED__;__MOBILE__;__IOS__;DEBUG /errorendlocation /preferreduilang:en-US /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll /debug+ /debug:portable /optimize- /out:obj/Debug/TwilioVoice.iOS.dll /resource:libcrypto.a /resource:libssl.a /resource:libTwilioClient.a /target:library /utf8output Properties/AssemblyInfo.cs libcrypto.linkwith.cs libssl.linkwith.cs libTwilioClient.linkwith.cs Structs.cs /Users/michaellang/TwilioVoice.iOS/obj/Debug/ios/ObjCRuntime/Libraries.g.cs /Users/michaellang/TwilioVoice.iOS/obj/Debug/ios/ObjCRuntime/Messaging.g.cs /Users/michaellang/TwilioVoice.iOS/obj/Debug/ios/TwilioVoiceiOS/Constants.g.cs /Users/michaellang/TwilioVoice.iOS/obj/Debug/ios/TwilioVoiceiOS/TCConnection.g.cs /Users/michaellang/TwilioVoice.iOS/obj/Debug/ios/TwilioVoiceiOS/TCConnectionDelegate.g.cs /Users/michaellang/TwilioVoice.iOS/obj/Debug/ios/TwilioVoiceiOS/TCDevice.g.cs /Users/michaellang/TwilioVoice.iOS/obj/Debug/ios/TwilioVoiceiOS/TCDeviceDelegate.g.cs /Users/michaellang/TwilioVoice.iOS/obj/Debug/ios/TwilioVoiceiOS/TCPresenceEvent.g.cs /Users/michaellang/TwilioVoice.iOS/obj/Debug/ios/TwilioVoiceiOS/TwilioClient.g.cs "/var/folders/1y/7trvx64j5n5ctxhnzq44cpp40000gn/T/Xamarin.iOS,Version=v1.0.AssemblyAttributes.cs"
    obj/Debug/ios/TwilioVoiceiOS/TCConnection.g.cs(206,18,206,35): error CS0246: The type or namespace name 'TCConnectionState' could not be found (are you missing a using directive or an assembly reference?)
    obj/Debug/ios/TwilioVoiceiOS/TCDevice.g.cs(254,18,254,31): error CS0246: The type or namespace name 'TCDeviceState' could not be found (are you missing a using directive or an assembly reference?)
    obj/Debug/ios/TwilioVoiceiOS/TwilioClient.g.cs(83,36,83,46): error CS0246: The type or namespace name 'TCLogLevel' could not be found (are you missing a using directive or an assembly reference?)
Done building target "CoreCompile" in project "TwilioVoice.iOS.csproj" -- FAILED.

Done building project "TwilioVoice.iOS.csproj" -- FAILED.

Build FAILED.

/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(3163,5): warning MSB9004: ManifestResourceWithNoCulture item type is deprecated. Emit EmbeddedResource items instead, with metadata WithCulture='false', Type='Resx', and optional LogicalName.
obj/Debug/ios/TwilioVoiceiOS/TCConnection.g.cs(206,18,206,35): error CS0246: The type or namespace name 'TCConnectionState' could not be found (are you missing a using directive or an assembly reference?)
obj/Debug/ios/TwilioVoiceiOS/TCDevice.g.cs(254,18,254,31): error CS0246: The type or namespace name 'TCDeviceState' could not be found (are you missing a using directive or an assembly reference?)
obj/Debug/ios/TwilioVoiceiOS/TwilioClient.g.cs(83,36,83,46): error CS0246: The type or namespace name 'TCLogLevel' could not be found (are you missing a using directive or an assembly reference?)
    1 Warning(s)
    3 Error(s)

Time Elapsed 00:00:01.43

---------------------- Done ----------------------

Build: 3 errors, 1 warning

Xamarin Forms Custom View Renderer for TextView Height issue

$
0
0

I want to render xamarin forms view control into android textview.

Below customrenderer renders Android TextView on Android device with initial default text.

Now, If I add more text into it, this control would not grow in height but instead becomes scrollable to see the text not visible on screen.

On other way around, if I reduce text content, this control would not reduce in height and occupy the same space and show reduced text content on scree.

Issue : In this case of text change, this label should increase or reduce height on screen for Android. It is working fine on IOS as expected.

Here is a sample code.

class CopyableLabelRenderer : ViewRenderer
    {
        protected override void OnElementChanged(ElementChangedEventArgs<Xamarin.Forms.View> e)
        {
            base.OnElementChanged(e);
            try
            {
                var label = new TextView(MainApplication.Context);
                label.SetTextIsSelectable(true);
                label.LinksClickable = true;

                label.Text = (e.NewElement as CopyableLabel).BindingText; // this line sets text into this label

                SetNativeControl(label);
            }
            catch (Exception ex)
            {
                var msg = ex.Message;
            }
        }

        protected override void OnElementPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            base.OnElementPropertyChanged(sender, e);

            if (e.PropertyName.Equals("BindingText"))
            {
                TextView textView = this.Control as TextView;
                textView.Text = (Element as CopyableLabel).BindingText;

            }
        }

    }

Here is a base class,

public class CustomLabel : View
    {
        public static readonly BindableProperty BindingTextProperty = BindableProperty.Create("BindingText", typeof(string),typeof(View),
                string.Empty
               );

        private int _fontSize;
        private bool _request = false;

        public string BindingText
        {
            get
            {
                return (string)GetValue(BindingTextProperty); 
            }

            set
            {
                SetValue(BindingTextProperty, value);
            }
        }

    }

Get the default colors

$
0
0

I'm trying to show a subtle warning message when a value in an Entry is bad by flashing the background of the entry red. I have an animation working that will animate from one color to another. The problem is that I can't seem to get the actual background color of the Entry. The BackgroundColor ends up being Color.Default, which is basically RGBA(0,0,0,0). So, when I animate from that to my red color it doesn't look correct.

How can I get the actual background color of a control? Or, how can I get default style's background color that is used for various controls?

Alternatives to update Stripe

$
0
0

Recently got a notification that the library of Stripe being used was going to become obsolete, for which I need to update them to keep having credit card payments via app.

I've been using the Component present in the Xamarin Component Store and the version Stripe has officially on nuget doesn't seem to be the same as the Component.

What are the alternatives I have to keep using Stripe on Xamarin projects? If possible, I'd like to avoid using native libraries ( double the work to keep them working ).

fakeLogOpen ERROR

$
0
0

Hello, i'm developing with VISUAL STUDIO 2017 (C#) on WINDOWS.

When i try to Build an ANDROID APP, i get the following ALERT:

"fakeLogOpen(/dev/log_security) failed"

without any further details of the problem.

Does anyone have an idea about what's happening here ?

THANK YOU,
Bye
Alessandro

How to set focus on next entry in Listview

$
0
0

i want focus on next entry in List-view, if the user click on completed event

StripeView is not existed in Stripe.Net

$
0
0

Hello
Avoiding using of Components I try to use Stripe.Net nugget package. But StripeView is not existed there.
Where could I get it?


CoreCLR Debug Component Missing?

$
0
0

When attempting to debug a Xamarin cross-platform UWP application on the Local Machine, I am encountering a popup error message box that states "Unable to attach to CoreCLR. A debug component is not installed."

I can not find any reports of a similar nature.

This is on VS17 v 15.5.7. Any ideas where and how I get this component installed?

Publishing/Building app

$
0
0

When i press build the app, i dont get any IPA and all the files are 0 bytes. Nothing makes sense. Anybody who have had this problem before?

Encryption/Decryption in Xamarin

$
0
0

Hi,
I'm working with local database, and I want to encrypt the strings when save to tables, when I want to show info from database to the user I want to decrypt the info.
I'm using an example that I found for .NET here http://www.codeproject.com/Articles/33350/Encrypting-Query-Strings
I'm not using it to encrypt querystrings but it works for everything.
the Encryption method works well, but the Decryption method always throws an System.Security.Cryptography.CryptographicException: Bad PKCS7 padding. Invalid length...
Searching on the web(google) I realized that is a general problem of Mono, but I cant find a solution that could make this example to work or any public solution.

It is possible to make the example to work in xamarin ?

Localizing With RESX Resource Files Does Not Work

$
0
0

My location resources files stopped working. I have two files, AppResources.resx and AppResources.pt-BR.resx and it WAS WORKING before of updating the VS for the update of iOS 11, but I only noticed yesterday that isn't working anymore.

Anyone know how to fix?? A workaround maybe? I found this https://bugzilla.xamarin.com/show_bug.cgi?id=31720 but I'm with problem with Android and iOS. So sad. =/

I'm using VS for Mac (community version 7.1.5 build 2). Thanks.

mscorlib conflict

$
0
0

I am already searched for similar questions and answers but my problem is still remaining. I work in VS2017 and I am a new Developer of Xamarin.

When I built the solution. I get the following problem:
No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.

What I tried so far is to reinstall my packages in nuget packages but I had no luck on this. Also I run the command "update-package -reinstall" in package manager console. How to solve this problem?

Viewing all 204402 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>