Skip to content

pnvnd/dotnet-webapp

Repository files navigation

.NET Web App

Start by installing the .NET 10 SDK, which includes runtime for .NET, ASP.NET Core, and .NET Desktop. Then, create an application with:

dotnet new webapp -n dotnet-webapp

Instrument with New Relic .NET Agent

Edit the dotnet-webapp.csproj and add the following to instrument the application with the New Relic .NET Agent:

<ItemGroup>
  <PackageReference Include="NewRelic.Agent" Version="10.47.2" />
  <PackageReference Include="NewRelic.Agent.Api" Version="10.47.2" />
</ItemGroup>

Running the Application

Run the app locally with this command:

dotnet run

About

Sample .NET Web Application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published