Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1056: Unexpected character '$'

Source Error:


Line 85:                                 @if (pager.CurrentPage > 1)
Line 86:                                 {
Line 87:                                     <li><a href="/kategori/@pagePath/@(pager.CurrentPage-1)@(s!=null ? $"?s={s}":"")"><i class="fa fa-angle-left"></i></a></li>
Line 88:                                 }
Line 89: 

Source File: c:\inetpub\vhosts\dogaladogru.com\httpdocs\Views\Home\News.cshtml    Line: 87






Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0