User1567530616 posted
I am creating a new website with ASP.Net Core 2.1.1.
The website runs fine locally. Yesterday I did my first attempt at deploying it to Azure. At first the website worked fine on Azure, but when I updated any cshtml file, the website stopped working. I did some research and found that if I add this line
to my csproj file, it would work again (I was getting an error related to framework):
<RuntimeFrameworkVersion>2.1.1</RuntimeFrameworkVersion>
So now the website works, but when I make a change and do a fresh web deploy, my changed cshtml, css, etc. files are not updated.
I changed the deployment settings to delete extra files on Azure and did a preview and web deploy wants to delete almost all of my files on Azure. It does not appear to recognize these files are still part of my project (although they are marked as such).
When I do a web deploy without asking it to delete extra files, it will update a few dll, json and web.config files, but nothing that I changed in my cshtml, css, etc. files.
Any ideas on why web deploy will not update my files and why it instead wants to delete them from Azure?