Is it possible to edit the .cshtml files after publish or are there any draw backs?
You could use DotPeek (jetbrains.com/decompiler) to decompile the DLL's within the bin folder of your published site.
razor helps you embed serverside code like C# code into web pages. cshtml is just a file extension. razor view engine is used to convert razor pages(. cshtml) to html.
One major advantage to aspx compared to cshtml is that you can view and edit the page itself (WUSIWYG kind of) using the design tab. With cshtml files you might as well use notepad to edit your html page. You are working "in the dark". @nivs1978: I actually find this to be a down-side of it.
Yes, you can edit the .cshtml file after you publish it.
Yes, there are drawbacks.
I strongly recommend adhering to a cycle
Use a version control system that supports branching and tagging to make that cycle much easier.
Even if "QA" is a VM on your development server and you put on the "QA" hat, I would not skip that step.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With