3F / Examples

An complete examples and related support for various popular projects, and more.
https://github.com/3F/DllExport/issues/84
MIT License
28 stars 15 forks source link

VS2012 don't undestand DllExport attribute #1

Closed ak964 closed 4 years ago

ak964 commented 4 years ago

VS2012, C#. Create ClassLibrary project, install DllExport 1.7.3 package, add function from example. Compiler can't find DllExport and DllExportAttribute.

What's wrong?

ak964 commented 4 years ago

Namespace in DllExport.dll looks like this: D3F00FF1770DED978EC774BA389F2DC901F4.B00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.D00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.E00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.F00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

DllExport.zip

ak964 commented 4 years ago

Such situation shown in video. In my case it's slightly wrong: DllExport.bat lays not in project path (as in video), but deeper in \packages\DllExport.1.7.3. Running from there it breaks the project, so VS can`t find DllExport.bat. To solve the problem: copy DllExport.bat into project path (near sln file), run it, click Apply.

3F commented 4 years ago

@ak964

Not sure what you are trying to find in \packages folder but you need either getting DllExport.bat from here or activation from here

Your mentioned way is incorrect or just for not regular use. Please simply follow the official steps - https://github.com/3F/DllExport/wiki/Quick-start

Thanks for using!

Please also note, this repo only for examples and for related things/problems. You need to open an issue in the original project if you have something related to it - https://github.com/3F/DllExport/issues

Thanks,