Hakan Fıstık
Hakan Fıstık

Reputation: 19401

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.

Upvotes: 5

Views: 963

Answers (1)

Hakan Fıstık
Hakan Fıstık

Reputation: 19401

Solved like this.

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

Upvotes: 9

Related Questions