dotnet / dotnet/aspnetcore

Publish only front-end razor pages - .cshtml

Open
#55,091 2 comments 0 reactions 0 assignees View on GitHub
area-mvc untriaged
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

When we make tiny html or content changes on a .cshtml page - no code-behind cshtml.cs file involved, we have to publish the whole razor pages project to apply the changes. That's really not ideal since it restarts the application and interprets the production.

Is there a way to just publish the .cshtml file instead of publishing the whole project just for web content changes? Like old ASP.NET WebForms, we can just publish .aspx file if no changes are made from code-behind cs file.

If not, is there any alternative? Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.