Jennilein1991 / assimp-net

Automatically exported from code.google.com/p/assimp-net
0 stars 0 forks source link

AssimpLibrary.cs - Compile Error #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I downloaded the Source via SVN, opend the Projekt in VS2012 Express and tried 
to compile the Sources.

Projekt AssimpNet:
AssimpLibrary.cs arround Line 1471
private void PreloadFunctions() {...}
in that function is following line:
GetFunction(funcType.GetCustomAttribute<AssimpFunctionNameAttribute>().Unmanaged
FunctionName, funcType);

The Error is like (translated from German):
'System.Type' has no defination for 'GetCustomAttribute', and can not find a 
Method 'GetCustomAttribute' which accepts as first parameter 'System.Type'.

If I check:
http://msdn.microsoft.com/en-us/library/system.type.getcustomattributes(v=vs.110
).aspx
- that is correct.

Original issue reported on code.google.com by DasWaech...@gmail.com on 7 Sep 2013 at 5:28

GoogleCodeExporter commented 9 years ago
Ah shoot, oversight - that method isn't in 2.0, the 4.5 configurations should 
be fine.

Original comment by nicholas.woodfield on 7 Sep 2013 at 5:59

GoogleCodeExporter commented 9 years ago
hi, thanks for the fast answere, but even in .NET4.5 are the parameteres others 
(as far as I understand it)

Original comment by DasWaech...@gmail.com on 7 Sep 2013 at 6:30

GoogleCodeExporter commented 9 years ago
Its an extension method only in 4.5, which I failed to realize:

http://msdn.microsoft.com/en-us/library/hh194292.aspx

Original comment by nicholas.woodfield on 7 Sep 2013 at 7:18

GoogleCodeExporter commented 9 years ago
Fixed in r99

Original comment by nicholas.woodfield on 9 Sep 2013 at 11:22