Last post Mar 03, 2020 12:20 PM by PatriceSc
Mar 02, 2020 02:59 PM|Zanest|LINK
I have an ASP.NET Core project using Razor pages, I published the project from Visual studio 2019 to an Azure web app, Its working fine.
But when I doing a change in a single page, I want to publish the only modified page to the host, I'm doing this from : Project menu----> Publish page.cshtml, Visual studio is telling me the file has published successfully, but I do not see any change in
the online page.
Is there is any missing step after publishing the page?
Kindly help me regarding this issue.
Mar 03, 2020 09:54 AM|Rena Ni|LINK
As far as I known,when you publish to the site,all the razor pages would generate into one compile file which is named like `ProjectName.View.dll`.So although you publish single page,it could not change in your site.
Mar 03, 2020 12:11 PM|Zanest|LINK
Thank you for your answer,
Yes, you are right,
Kindly advice me regarding another way for publishing the project via Visual studio in order to publish single pages after that.
Mar 03, 2020 12:20 PM|PatriceSc|LINK
Try to apply https://docs.microsoft.com/en-us/aspnet/core/mvc/views/view-compilation?view=aspnetcore-3.1 which explains how to enable runtime compilation
for Razor files (I never tried).