Author Topic: Build errors when I add an advancedHMI control  (Read 1563 times)

hypnotize

  • Newbie
  • *
  • Posts: 7
    • View Profile
Build errors when I add an advancedHMI control
« on: February 14, 2018, 08:53:26 AM »
Hi
I am using the latest AdvancedHMI version with C#. (AdvancedHMIv399x)
I have both VS 2013 and VS Community 2017.

When I don't change the original project files that came inside the ZIP, the project builds fine and runs the empty black form.
When I add a control, doesn't matter which one, I get lots of compilation errors:
(in both VS versions)
The problem does not occur when I run version AdvancedHMIv399w.

Severity   Code   Description   Project   File   Line   Suppression State
Error   CS0012   The type 'EthernetIPforCLX' is defined in an assembly that is not referenced. You must add a reference to assembly 'MfgControl.AdvancedHMI.Drivers, Version=3.99.19.2, Culture=neutral, PublicKeyToken=null'.   AdvancedHMIcs   F:\Documents\SegevTech\BLDC_Dual\HMI\AdvancedHMIv399x\AdvancedHMICS\MainForm.Designer.cs   40   Active

What could be the problem
???

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5261
    • View Profile
    • AdvancedHMI
Re: Build errors when I add an advancedHMI control
« Reply #1 on: February 14, 2018, 09:41:02 AM »
The AdvancedHMIcs project in version 3.99x is missing 2 references.

- In Solution Explorer, expand down the AdvancedHMIcs project
- Right click References and select Add Reference
- Browse to and select AdvancedHMIDrivers\Support\MfgControl.AdvancedHMI.Drivers.dll
- Repeat for AdvancedHMIControls\Support\MfgControl.AdvancedHMI.Controls.dll
- Rebuild the solution