Philip-Trettner / GlmSharp

Open-source semi-generated GLM-flavored math library for .NET/C#
MIT License
46 stars 18 forks source link

troubles building in VS2013 #1

Open GreystWdR opened 9 years ago

GreystWdR commented 9 years ago

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

Philip-Trettner commented 9 years ago

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;.