NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Csharp OI - Build Errors

Hello,
 
I am trying to build the Csharp Full-Featured TestStand OI without making any changes to the code.  I am however getting two errors that I could use some assistance with.  Like I said I have not made any changes to NI's code.
 
'TestExec.MainForm' does not contain a definition for 'AxEntryPoint1ButtonEnter' (CS0117) - C:\Program Files\National Instruments\TestStand 3.5\OperatorInterfaces\NI\Full-Featured\CSharp\MainForm.cs:358,67
 
 
Solution target 'CopyManifestToOutputDirectory' is invalid. - C:\Program Files\National Instruments\TestStand 3.5\OperatorInterfaces\NI\Full-Featured\CSharp\TestExec.sln:1
 
Thank you,
- Kyle
0 Kudos
Message 1 of 6
(4,230 Views)
I figured out the CopyManifestToOutputDirectory error.  I was trying to open the project in SharpDevelop, and it wasn't recognizing the VS Project.
 
The other error however still persists. 
 
The Line of code is:
 

this

.axEntryPoint1Button.Enter += new System.EventHandler(this.AxEntryPoint1ButtonEnter);

0 Kudos
Message 2 of 6
(4,225 Views)

Hi Kyle,

You said that you were trying to open this project in SharpDevelop, what are you opening it in now? If it is Visual Studio, what version are you using?

Also, I know you said you didn't change any code, but it sounds like something has changed because when I open the Full-Featured OI I am able to compile and run it. Specifically, I have a definition for the AxEntryPoint1ButtonEnter. Do you have the following line of code?

private NationalInstruments.TestStand.Interop.UI.Ax.AxButton axEntryPoint1Button

Also, does the button appear on your Form? It should look like a simple button that says ENTRYPOINT1. If you are missing the button, you could try copying the ENTRYPOINT2 button and changing its name.

Let me know if those things are there for you and we'll go from there.

Regards,

Matt M.
NI

0 Kudos
Message 3 of 6
(4,204 Views)
Thank you for your response Matt. 
 
I am still currently opening the solution in SharpDevelop.  It is version 2.1.0.
 
What I did was simply delete the CopyManifestToOutputDirectory Project from my solution.  This way I could (if i didn't have that other error) compile and then simply manually copy over the manifest file to the build directory. 
 
However I am still having problems, especially since I do have the definition line that you posted. 
 
Now I can however comment out that line, and the button does not seem to lose functionality.  It will still "Test UUTs". 
 
 
0 Kudos
Message 4 of 6
(4,198 Views)

Hi Kyle,

Are you sure nothing has been changed in your code? Because I didn't have the line of code that is causing your problem until I added an Enter event for the button.

In any case, as I was looking over your code, I realized that it wasn't the button that is not defined, but rather the event. Your code is looking for an event handler entitled AxEntryPoint1ButtonEnter. Is that function defined anywhere in your code? If it is not, is there a similar function? When I created the enter event, it added the function as axEntryPoint1Button_Enter. Is that function defined in your code?

In order to make this error disappear, you either need to remove the line of code (which would remove the Enter event) or update the line of code to point to the correct event handler. This should solve your problem.

Matt M
NI

0 Kudos
Message 5 of 6
(4,187 Views)

Matt,

 

I appreciate all your help and for putting up with my elementary questions.  I must have accidently clicked the button while looking over things.

 

Thank you again.

0 Kudos
Message 6 of 6
(4,164 Views)