Move into the
VonageSms directory that you created in the previous step and execute the following command:
dotnet add package Vonage
You can now open the
VonageSms.csproj file in Visual Studio.
Note: This tutorial assumes that you are using Visual Studio. Alternatively, you could open the
VonageSms folder in Visual Studio Code or another editor, but you might have to create some of the scaffolding that Visual Studio generates for you.
How to Send an SMS With ASP.NET Core MVCEnhance your .NET application by adding the ability to send SMS messages to users. This tutorial walks you through adding a simple form to your web application, and sending an SMS message to the number provided.