locked
Dow Do I Decompile Views to Source Code? RRS feed

  • Question

  • User-939035612 posted

    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?

    Tuesday, July 28, 2020 12:17 AM

Answers

  • User-474980206 posted

    No. That is the c# code generated as the first step of compiling the view.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 28, 2020 1:31 AM