Search code examples
asp.netasp.net-mvcrazor

How to include @ symbol inside Razor


I am using ASP.NET MVC, and in one of the Razor view I have to include the script using CDN

<script src="//unpkg.com/babel-polyfill@process"></script>

I am getting the following error

CS0103: The name 'process' does not exist in the current context

I tried using @@ instead of @, but it did not work.


Solution

  • Solved like this.

    <script src="//unpkg.com/babel-polyfill@('@')process"></script>