JamesNK / Newtonsoft.Json

Json.NET is a popular high-performance JSON framework for .NET
https://www.newtonsoft.com/json
MIT License
10.8k stars 3.26k forks source link

nameof expression in .net 4 or older #745

Closed pischke closed 8 years ago

pischke commented 8 years ago

Hello James,

in one of your last commits you added the nameof expression to source. So there is no possibility to compile under .Net 4 or lower.

Can we please fix this. Thanks.

henkmollema commented 8 years ago

It has nothing to do with .NET 4, just with the C# compiler. Visual Studio 2015 ships with the new Roslyn compiler, which supports the nameof operator. It's possible to use Roslyn in VS2013 too, not sure how though.

JamesNK commented 8 years ago

Yeah, VS2015 will be required to compile going forward.