Build the future of communications.
Start Building for Free

.net core posts

  • By Chris Gargotta
    How to use Twilio SMS and Voice with a .NET 6 Minimal API How to use Twilio SMS and Voice with NET 6 Min API.png

    With the release of .NET 6, ASP.NET Core introduced a new feature called Minimal APIs. Minimal APIs give you the ability to create HTTP APIs with minimal code. This is ideal for developers who want to build applications or microservices with the minimum amount of files and code possible. In this tutorial, you will learn how to build a Minimal API and use it with Twilio to respond to SMS messages and voice calls.


    You will need these items to follow along:

    You can find the source code for this tutorial on …

    Read More
  • By Niels Swimberghe
    How to send SMS with C# .NET and Azure Functions using the Twilio Output Binding How to send SMS with C# .NET & Azure Functions using Twilio Output Binding

    Azure Functions has its own opinionated way of developing applications based on triggers, input bindings and output bindings. Azure supports two Twilio products using output bindings: Twilio Programmable Messaging for sending SMS and Twilio SendGrid for sending emails.
    In this tutorial, you'll learn how to send text messages with C# .NET using Azure Functions and Twilio binding.


    You will need these items to follow along:

    • OS that supports .NET (Windows/Mac/Linux)
    • .NET 6 SDK
    • Azure Functions Core Tools
    • A code editor or IDE (Recommended: VS Code with C# plugin, Visual Studio, or JetBrains Rider)
    • A free Twilio account (If you register here, you'll receive $10 in Twilio credit when you upgrade to a paid account!)

    Get started with Twilio

    You will need to set up a couple of things with Twilio before developing the Azure function:

    • If you don't already have a Twilio phone number, go and buy a …
    Read More
  • By Niels Swimberghe
    How to send Emails with C# and .NET 6 using the SendGrid API Send Emails using the SendGrid API with .NET 6 and C#

    Email has been around for decades, but sending emails at scale is still hard. With Twilio SendGrid, you can send emails without worrying about scalability. You can use the SendGrid APIs and SDKs to start sending emails within minutes. You could also use the SMTP protocol if you already have an existing codebase that relies on SMTP. In this post, you will learn how to send emails using the SendGrid .NET SDK and a .NET 6 console application.


    You will need the following things to follow along:

    • OS that supports .NET (Windows/Mac/Linux)
    • .NET 6 SDK (download)
    • A code editor or IDE (Recommended: VS Code with C# plugin, Visual Studio, JetBrains Rider)
    • A Twilio SendGrid account (signup)

    Everything you will learn applies even if you’re using an older version of .NET (Core), but you will need to make minor adjustments.

    Configuring your SendGrid account to …

    Read More
  • By Layla Porter
    Senden einer WhatsApp-Nachricht mit C# in 30 Sekunden Senden einer WhatsApp-Nachricht mit C# in 30 Sekunden

    Hallo und Danke fürs Lesen! Dieser Blogpost ist eine Übersetzung von Send a WhatsApp message with C# in 30 Seconds. Während wir unsere Übersetzungsprozesse verbessern, würden wir uns über Dein Feedback an freuen, solltest Du etwas bemerken, was falsch übersetzt wurde. Wir bedanken uns für hilfreiche Beiträge mit Twilio Swag :)

    Wir haben bereits erfahren, wie wir SMS-Nachrichten einer Anwendung hinzufügen. Jetzt können wir dank der neuen Twilio-API für WhatsApp eine WhatsApp-Nachricht auf ganz ähnliche Weise senden.

    Und das innerhalb kürzester Zeit.

    In diesem 30-Sekunden-Video zeigen wir, wie schnell das geht.

    Und um den Einstieg noch einfacher zu gestalten, findest du unten den vollständigen Code und einen Link zum abgeschlossenen Projekt auf GitHub.

    Eine vollständige Integration von Twilio-APIs in einer .NET Core-Anwendung findest du in dieser kostenlosen 5-teiligen Videoreihe von mir. Die Videoreihe ist zwar unabhängig von diesem Tutorial, bietet aber eine vollständige Erklärung zahlreicher APIs an …

    Read More
  • By Luís Leão
    Enviar uma mensagem do WhatsApp em 30 segundos usando C# Enviar uma mensagem do WhatsApp em 30 segundos usando C#

    Já mostramos como adicionar mensagens SMS ao aplicativo, mas agora, com a nova API da Twilio para WhatsApp, você pode enviar uma mensagem do WhatsApp da mesma maneira.

    E com rapidez.

    Assista ao vídeo abaixo de trinta segundos que mostra a rapidez do envio.

    E para facilitar ainda mais, veja abaixo todo o código e um link para o projeto concluído no GitHub.

    Veja a integração completa das APIs Twilio em um aplicativo .NET Core, confira esta série de vídeos em cinco partes gratuita que criei. Ela é separada deste tutorial, mas tem um resumo completo de muitas APIs.

    O que você vai precisar:

    Depois de criar o …

    Read More
  • By Dustin Ewers
    C# 8 – Excelling at Indexes csharp-8-indexes.png

    “There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors.” — Riff on a joke by Phil Karlton

    After this post, one of these problems will become a little easier for you to solve: you’re going to learn about indices and ranges. While nearly everyone programming in C# uses standard indexes on a regular basis, there are some new ways of accessing arrays and lists that can make your development life a little bit easier. In a few minutes you’ll be up to speed on this C# 8.0 feature and more prepared to take on the C# 9.0 release.


    One of the first things you learn as a beginning programmer in any language is how to access an array. Most languages use a 0-based index. Some languages use 1-based array indexes (and are wrong), but the basic syntax is similar. Here are a …

    Read More
  • By Jeff Rosenthal
    Sending and Receiving SMS Messages In Windows Presentation Foundation Apps with Twilio Messaging wpf-twilio-sms.png

    The vast majority of SMS messages are sent and received from person to person on mobile phones. But there are also times it’s helpful to be able to send and receive SMS messages from a custom application running on a desktop or laptop computer.

    If you’ve built an application with Windows Presentation Foundation (WPF) you can integrate bidirectional SMS capabilities into your custom user interface with Twilio Messaging. Twilio’s SMS service enables you to send and receive SMS messages programmatically through a Twilio phone number.

    In this tutorial you’ll learn how to set up a Twilio phone number to send and receive SMS messages and how to interact with the Twilio APIs to use the Twilio phone number to send and receive SMS messages from a WPF application. You’ll see how a WPF user interface can be automatically updated when new messages arrive and you’ll learn how to group messages …

    Read More
  • By Jeff Rosenthal
    Introducing Windows Presentation Foundation (WPF) Animations wpf-animations.png

    When it comes to web pages, HTML is the tool to present the elements and CSS to provide the styling. Sure, there are exceptions and embellishments but, in short, that is how it boils down. If you want to implement some sort of animation or have something move, and it’s more complex than the simple animations supported by CSS, you generally have to fall back on JavaScript. In contrast, these aspects of presentation, styling, and animation are all an integral part of the Windows Presentation Foundation XAML.

    XAML stands for Extensible Application Markup Language, and it is a declarative language that describes WPF’s elements, relationships, and behaviors. XAML elements map directly to Common Language Runtime (CLR) object instances and XAML attributes correspond to the properties and events of CLR objects.

    In this tutorial, you will explore the various ways to animate visual elements in …

    Read More
  • By Jeff Rosenthal
    Understanding Windows Presentation Foundation (WPF) Data Binding with the DataContext Class In .NET Core wpf-datacontext.png

    The Windows Presentation Foundation (WPF) framework allows you to develop desktop applications with amazing graphic capabilities, but it does not stop there. An application needs to display data of some sort and connecting UIElements to underlying data structures needs to be flexible. That is where DataContext comes into play.

    DataContext works hand-in-hand with data binding to provide hierarchical data presentation. It is what connects the front end to the code-behind and enables changes made to data in the user interface to update the data source, and conversely, while maintaining the order of your data structure. You’ll see examples of this in the case study project for this post.

    This tutorial will guide you through building a WPF application where you can explore DataContext at work. You will create a data dashboard that visualizes data from different simulated sources.


    You’ll need the following tools and resources to build and run …

    Read More
  • By Jeff Rosenthal
    Getting Started with Windows Presentation Foundation (WPF) in .NET Core getting-started-wpf.png

    Windows Presentation Foundation (WPF) is a user interface framework for building desktop applications. Implementing Extensible Application Markup Language (XAML) to define and script views, it has become the standard for Windows application user interfaces. Introduced in 2006, Microsoft has reenergized its commitment to WPF with its inclusion into .NET Core.

    The tutorial in this post will guide you through creating a project that will mimic many of the basic functions of a word processor. You will be surprised at how easy it is to implement many features with standard tool elements. You will be introduced to some of the many constructs of WPF and create a foundation for experimenting further.


    You’ll need the following tools and resources to build and run this project:

    Windows 10 – It puts the Windows in Windows Presentation Foundation.

    .NET Core SDK 3.1 – The SDK includes the APIs, runtime, and CLI.

    Visual Studio …

    Read More
  • Newer
    Sign up and start building
    Not ready yet? Talk to an expert.