However, saying that I don't get any errors at compilation time even though I made a lot of use of C# 6 features all over my project. The compiler is responsible for translating my C# 6 code into IL code which is supported by the framework. NET 4.6, because it is a language feature and not a. Well I know that myself, but the real question is why does it think it is C# 5? It is the compiler's fault The project compiles fine, but intellisense underlines my interpolated string in red and tells me that I can't use this feature in C# 5. Please use language version 6 or greater. It worked (and compiled) perfectly fine until I started using C# 6 features in ASP.NET MVC 5 razor views:įeature 'interpolated strings' is not available in C# 5. Recently I upgraded my IDE to Visual Studio 2015 and made instant use of many new C# 6 features like the nameof keyword or interpolated strings. Using C# 6 features in ASP.NET MVC 5 razor views
0 Comments
Leave a Reply. |