Error 1 The "RGiesecke.DllExport.MSBuild.DllExportAppDomainIsolatedTask" task could not be loaded from the assembly C:\Users\Hammer\Documents\Visual Studio 2012\Projects\MYSQL_DLL\packages\UnmanagedExports.1.2.6\tool s\RGiesecke.DllExport.MSBuild.dll. Could not load file or assembly 'Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. MYSQL_DLL
I have even tried with this simple and rudimentar lines of code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RGiesecke.DllExport;
using System.Runtime.InteropServices;
using MySql.Data.MySqlClient;
namespace MYSQL_DLL
{
public class Class1
{
[DllExport("TEST", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.LPStr)]
public static String TEST(string TestString) { return TestString; }}
But the problem doesn't go away.... what am I doing wrong?
I've even tried to use the dll file that was created from those failed Builds on a simple DM project and I wrote this code:
mob/verb/TESTXX()
world<<call("MYSQL_DLL.dll","TEST")("JustTesting")
And this is what DM gave me in return...
runtime error: The specified procedure could not be found.
proc name: TESTXX (/mob/verb/TESTXX)
usr: Guest-4232088995 (/mob)
src: Guest-4232088995 (/mob)
call stack:
Guest-4232088995 (/mob): TESTXX()
What the hell am I doing wrong?
I'm working with visual studio Express 2012 for windows desktop,the platform that I'm using is x86,the Target framework is .NET Framework 4.5 and yes I have installed the UnmanagedExports stuff....
Oh I am also using windows 10 Technical Preview, idk if is relevant though
Thanks as always for your attention.
Hug
MistY