Hello World API
This tutorial will show how to create a myAvatar ScriptLink-compatible API with .NET 8.0.
Before You Begin
You will need the following to complete this tutorial:
- Visual Studio
- Visual Studio Code
When using Visual Studio you will want the following workloads and components installed.
- ASP.NET and web development workload.
- .NET 8.0 Runtime (if not already included with the install of the above workload)
The following extensions are recommended when using Visual Studio Code.
Create Project
- Visual Studio
- Visual Studio Code
- Launch Visual Studio 2022.
- Create a new project.
- Select C# and then search for ASP.NET.
- Select ASP.NET Core Empty and then select Next.
- Configure your new project.
- Set your project name.
- Select the location to store your project.
- Set your solution name.
- Don't check Place solution and project in the same folder. we will be adding additional projects to this solution in other tutorials.
- Select Next.
- Set the Framework to .NET 8.0 (Long Term Support).
- Select Configure for HTTPS.
- Select Create.
- Open Windows Terminal.
- Navigate to the directory you wish to store the solution and project in.
- Create the solution and then change to that directory
dotnet new sln --output ScriptLinkHelloWorldDemo
cd ScriptLinkHelloWorldDemo
dotnet new web --output ScriptLinkHelloWorldDemo
dotnet sln add ScriptLinkHelloWorldDemo/ScriptLinkHelloWorldDemo.csproj
code .