Last post Jul 28, 2020 01:31 AM by bruce (sqlwork.com)
Jul 28, 2020 12:17 AM|CopBlaster|LINK
I have been using ILSpy to decompile an ASP.Net Core website and it has worked great for all .cs and .cshtml.cs files, but when I try to decompile views/.cshtml files it does not output the actual HTML source code. Instead it gives me stuff like:
WriteLiteral(" />\r\n <meta property=\"og:locale\" content=\"en_US\" />\r\n <meta property=\"og:type\" content=\"website\" />\r\n <meta name=\"description\"");
Is there a way to get ILSpy to convert this to the raw HTML source code of the views or is there some other app I can use to convert this to the same raw HTML code used by ASP.NET Core views?
Jul 28, 2020 01:31 AM|bruce (sqlwork.com)|LINK
No. That is the c# code generated as the first step of compiling the view.