---
title: "Discussion on \"Adding a Razor view to a .NET 6 ASP.NET Core API project\" | Hashnode"
description: "Discussion on \"Adding a Razor view to a .NET 6 ASP.NET Core API project\". I recently needed to add a Razor view to an existing ASP.NET Core API project. This is a relatively straightforward task, and this article documents the necessary steps.\n\nInstall the Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation NuGet package.\nUp..."
url: "https://hashnode.com/posts/adding-a-razor-view-to-a-net-6-aspnet-core-api-project/621f7ce4aa0b9716581fb11e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Adding a Razor view to a .NET 6 ASP.NET Core API project](https://techblog.timhilton.xyz/adding-a-razor-view-to-a-net-6-aspnet-core-api-project?utm_source=hashnode&utm_medium=feed)

I recently needed to add a Razor view to an existing ASP.NET Core API project. This is a relatively straightforward task, and this article documents the necessary steps. Install the Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation NuGet package. Up...

Mar 2, 2022 · 1 min read · techblog.timhilton.xyz  
Read the article

-   [#dotnetcore](https://hashnode.com/tag/dotnetcore)
-   [#aspnet-core](https://hashnode.com/tag/aspnet-core)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#apis](https://hashnode.com/tag/apis)
-   [#web-api](https://hashnode.com/tag/web-api)

## Written by

[Tim Hilton](https://hashnode.com/@tjhilton)

@tjhilton

  
[View profile](https://hashnode.com/@tjhilton)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
