Creating a “Hello World” Application with SignalR in .NET 8

Sajjad Hussain
Cloud Believers
Published in
2 min readOct 31, 2024

--

Today, we are building the first SignalR web application which is a powerful library in the .NET ecosystem. The real advantage of SingleR lies in seamless interactions between clients and servers. With SingleR developers create applications for instant messaging, live notifications, and collaborative tools.

Create a New ASP.NET Project

  1. Click on Visual Studio icon on your desktop, when application open click on Create a new project.
  2. Choose ASP.NET Core Web App (Model-View-Controller) from the list of templates.
  3. Name your project (e.g., SignalRHelloWorld) and click Create.
  4. In the next window, select .NET 8 as the target framework and ensure that Enable HTTPS is checked.

Add SignalR to Your Project

SignalR not directly available to you, you need to add it via NuGet.

  1. In your solution explorer select Manage NuGet Packages.
  2. You have to search for Microsoft.AspNetCore.SignalR, when you will find install it.
  3. You can also use Package Manager Console by typing Install-Package Microsoft.AspNetCore.SignalR

Create a SignalR Hub

--

--

Cloud Believers
Cloud Believers

Published in Cloud Believers

The blog is developed for programmers, developers and startups, here we discuss the diffrent ideas of cloud technology and the programming