Looks like you're trying to create a classic Win32 DLL with Win32-style export? (Win32-style export is what DllImport gets.) You cannot do this with managed code (C # or managed C ++); as far as I know, you will need to use unmanaged C / C ++ for this.
Windows Win32 ; Win32 DLL "hello world". Win32 DLL Visual Studio , , , -.
, .dll, Win32, , Win32, , " ", dll, .
-
- : , " DLL" , DLL, , . DLL #, , C/++, API- Win32. , : , DLL- Win32, , CLR ; , CLR, . DLL , , , # C/++, , #/ Win32 DLL.