PlanetCNC_API - DemoCsharp : Can't compile it !

Results 1 to 5 of 5

Thread: PlanetCNC_API - DemoCsharp : Can't compile it !

  1. #1
    Member RollieTyler's Avatar
    Join Date
    Apr 2021
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default PlanetCNC_API - DemoCsharp : Can't compile it !

    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:


  2. #2
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    856
    Downloads
    0
    Uploads
    0

    Default Re: PlanetCNC_API - DemoCsharp : Can't compile it !

    Demo64d.exe is correct filename.



  3. #3
    Member RollieTyler's Avatar
    Join Date
    Apr 2021
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Re: PlanetCNC_API - DemoCsharp : Can't compile it !

    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 ?

    Attached Thumbnails Attached Thumbnails PlanetCNC_API - DemoCsharp : Can't compile it !-assembly_name-bmp   PlanetCNC_API - DemoCsharp : Can't compile it !-dll_not_found-bmp  


  4. #4
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    856
    Downloads
    0
    Uploads
    0

    Default Re: PlanetCNC_API - DemoCsharp : Can't compile it !

    This is cut/paste from .csproj 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>
    Make sure that correct dll is referenced in PlanetCNCTNGAPI.cs file:
    Code:
    private const string PlanetCNCLib = "PlanetCNCLib64.dll";




  5. #5
    Member RollieTyler's Avatar
    Join Date
    Apr 2021
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Re: PlanetCNC_API - DemoCsharp : Can't compile it !

    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.



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

PlanetCNC_API - DemoCsharp : Can't compile it !

PlanetCNC_API - DemoCsharp : Can't compile it !

PlanetCNC_API - DemoCsharp : Can't compile it !