Xamarin Forms: MVVM Navigation, Converters, Multi-language all in one place

A toolkit for Xamarin.Forms, inspired by hours of hours re implementation of the same navigation logic, converters, and the other tools needed to build a mobile app idea.

RecurrenceToolkit

I’ve published my first NuGet collection, which contains a lot of code, from MVVM Navigation through Bindable objects implementing INotifyPropertychanged, and XAML Converters, Multi-language tools.

Forms.RecurrenceToolkit has arrived

And can be downloaded from NuGet.org.

Feel free to contribute at GitHub.
Find more info’s on the project’s GitHub page:

https://github.com/banditoth/Forms.RecurrenceToolkit/

Have a great app building!

This content has 3 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

Visual Studio: Azure DevOps Git – The pull operation failed

When trying to sync or pull our repository from remote, it fails with the following error:

The pull operation failed, see Output Window for details.

In the output window, the error is the following:

Cannot determine the organization name for this 'dev.azure.com' remote URL. Ensure the `credential.useHttpPath` configuration value is set, or set the organization name as the user in the remote URL '{org}@dev.azure.com'.

Go to Visual Studio’s Tools, and then Options, search for ‘Git’ in the searchbar.

Select the Git Global Settings option, and find the ‘Credential helper’ setting, and set it from ‘Unset’ to:

GCM For Windows

This should solve your problem.

This content has 3 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

Azure Functions : Application settings from Azure

Values hard coded to an application is the brightest “DO NOT” thing in software development. But how to bring your Azure Function more professional level?

Start using application settings

You can define key value pairs on the Microsoft Azure portal for your Function app. Go to your app and find the Settings section, and click on the configuration button.

Configuration item

You can add your keys and values by clicking the New application setting button.

Adding a new setting

Application Settings are exposed as environment variables for access by your application at runtime. Learn more

Access your settings from your code

You can access your newly created setting from C# using the GetEnvironmentVariable call.

System.Environment.GetEnvironmentVariable("yourvariablename");

What about local debugging?

You do not need to add and modify the environment variables in your operating system. Add a new json file to your solution called ‘local.settings.json’, and fill it up with some data like below:

{
  "IsEncrypted": false,
  "Values": {
    "yourvariablename": "fanncyyy!"
  },
  "Host": {
    "LocalHttpPort": 7071,
    "CORS": "*",
    "CORSCredentials": false
  },
  "ConnectionStrings": {
    "SecretSQL": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  }
}
This content has 3 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

Visual Studio for Mac : Delete all ‘bin’ and ‘obj’ with script

Open a terminal where your source codes are stored, and give out the following command:

sudo find . -iname "bin" -o -iname "obj" | xargs rm -rf

Type your superuser password when the terminal prompts it. This will clean up some hard disk space for you.

This content has 3 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.