Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

525
Views
RazorEngine templates in VS 2015 - Feature 'implicitly typed local variable' is not available in c# 2

I get the below error when I open RazorEngine cshtml template file in my VS 2015 project.

Feature 'implicitly typed local variable' is not available in c# 2. Please use language version 3 or greater.

The template compiles correctly, just the intellisense is broken.

The project is set up to use .net 4.5 while building. The app is also not an ASP.Net, but a desktop one.

The intellisense also worked fine in VS 2013. The issue appeared after the upgrade to VS 2015.

Does anyone had similar issue and could advice how to resolve this?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I was able to fix the intellisense by adding these lines to the app.config file. Restart Visual Studio after making the change.

<system.web>
    <compilation debug="false" targetFramework="4.5.1" />
</system.web>
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!