Demo64d.exe is correct filename.
Hi,
I have download the zip file PlanetCNC_API.
I try to compile the demo in C# but Visual Studio print an error. It can't find the debug target. It generate a file named Demo64d.exe while it should generate a file named DemoCSharp.exe in the __Output folder.
Have I miss something ?
Similar Threads:
Demo64d.exe is correct filename.
Thanks for your reply.
I don't why, but the assembly name was "DemoCSharp" when I open the project, and not "Demo64d".
I change the name and it is better.
So, I continue my tests and I have a other error. :-D
Visula Studio don't find the DLL. Should I add it ?
This is cut/paste from .csproj file
Make sure that correct dll is referenced in PlanetCNCTNGAPI.cs file:Code:<PropertyGroup> <AssemblyName Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">Demo32d</AssemblyName> <AssemblyName Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">Demo32</AssemblyName> <AssemblyName Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">Demo64d</AssemblyName> <AssemblyName Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">Demo64</AssemblyName> </PropertyGroup>
Code:private const string PlanetCNCLib = "PlanetCNCLib64.dll";
Ok, I could compile it and start the demo.
Thanks for your help and your time.
For others users, I post some explanations & some stuffs I didn't understand.
- I am working with Visual Studio Community 2013. It seems that Visual Studio didn't care about instructions which are between tags <PropertyGroup>. It is in csproj file but Visual Studio take the name of the project for the executable file.
- in the PlanetCNCTNGAPI.cs, this is the correct DLL name which is referenced. But Windows can't find it. So I have manually copy the file PlanetCNCLib64.dll from PlanetCNC installation folder to __Output folder for the DemoCSharp.
Hello Guys,
I have same problem. I tried above solutions but doesn't work. When I start the program below error occurs. Waiting help please...
"System.DllNotFoundException: 'Unable to load DLL 'PlanetCNCLib64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)'"
Your executable needs to be in same folder as PlanetCNCLib64.dll'