Using TypeScript with an inline server-side `<script>` block and ASP.Net
问题 I want to be able to have inline TypeScript in an ASPX (or Razor) page that is converted to Javascript when the page compiles. So: <script type="text/typescript" runat="server"> ... </script> Becomes... <script type="text/javascript"> ... </script> It should happen at the same point that @ or <% %> blocks are converted. This should be possible at run time with some kind of page post-processing, but that won't generate exceptions at compile time - I want to find errors in the script at the