fguida / ossbuild-vs2010

Automatically exported from code.google.com/p/ossbuild-vs2010
Other
0 stars 0 forks source link

PInvoke issue #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hey, your build is really great
But I have some issue with PInvoke in my project
If I refer to net4 version of .dll I get it
Can you describe diff between those 2 dlls (pros of using net4 version) and the 
way to fix this issue
Thank you for your job

Original issue reported on code.google.com by zakhlevn...@gmail.com on 12 Sep 2012 at 6:07

GoogleCodeExporter commented 9 years ago
Yeah, .NET4 has some stricter limits for setting the calling convention on 
pinvoke. Unfortunately there are some bugs in the gstreamer-sharp library that 
I haven't fixed.

For now, you need to specify an attribute in app.config:
https://code.google.com/p/ossbuild-vs2010/source/browse/Examples/csharp-net4-wpf
/App.config

The .net4 version is exactly the same code as .net2 version, just built against 
.net4 libraries.

Original comment by Petteri.Aimonen on 14 Sep 2012 at 4:17