In order to build the C# example (CentroidAPI_CSharp_PowerFeed) I had to delete the CentroidAPI assembly and reinstall it. Once I did that I was able to build the project without errors.
Here's how:
1. solution explorer->dependencies->assemblies->CentroidAPI (right click on this and remove it, or just hit DEL).
2. solution->explorer->dependencies (right click and choose Add Project Reference).
3. The Reference Manager will open. Choose browse.
4. A file dialog box will open. Browse to the Centroid working directory (on my system it is C:\cncm).
5. Choose the file "CentroidAPI.dll" and click "Add".
6. Click OK in the Reference Manager.
7. Build your project with Build->Build Solution
Building C# example
Moderator: cnckeith
-
- Posts: 1
- Joined: Thu Nov 28, 2024 8:11 pm
- Acorn CNC Controller: No
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Building C# example
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 82
- Joined: Wed Oct 19, 2022 4:49 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: No
- CNC11: Yes
- CPU10 or CPU7: No
Re: Building C# example
Thanks for this information, I will add these instructions to the API FAQ. It's likely caused by a version mismatch between my CNC12 dev install and your local dev install.
When requesting support please read this post first.
A fresh report makes it easier to assist you. To make a report check this post
A fresh report makes it easier to assist you. To make a report check this post
(Note: Liking will "up vote" a post in the search results helping others find good information faster)