GlmSharp
GlmSharp copied to clipboard
troubles building in VS2013
Hi. I m experiencing problems in building the library with VS2013 community edition. After a fresh clone, the build fail: "\GlmSharp-master\GlmSharp\GlmSharp\Extensions.cs(37,71,37,73): error CS1002: ; expected"
it seams related to lambda expression declaration. I am not familiar with lambda expression, any hint to solve this ? thx j
Sorry to answer this late, I missed the notification.
GlmSharp currently requires C# 6 to build and thus VS2015. However, the NuGet version (i.e. the dll) works on older VS versions. Do you want to use GlmSharp in your project (in that case, the NuGet version should be fine) or do you want to modify the code (in which case, I would recommend changing the generator project)?
If you want to explore the code while using the library, I can recommend dotPeek. In general, using ReSharper is recommended for any C# work ;)
FYI, that is not a real lambda expression but rather a normal function with a one-line return body. In such a case, C# 6 allows for the shorter, lambda-esque version.
E.g. int foo(int x) { return x + 1; }
is the same as int foo(int x) => x + 1;
.