Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot find custom tool MxbCodeGenerator after VS2005->2008 conversion

Solved!
Go to solution

I am limping along in C# and recently converted a VS2005 C# project with Measurement Studio 2009 to VS2008 using the VS conversion wizard.  Since then the VS2008 project has been building and running great, until today when I tried modify my VisaTask1.mxb assistant.  When I did that, I got a warning on the build saying:  

 

"Cannot find custom tool 'NationalInstruments.MeasurementStudio.Tools.DotNET.MxbCodeGenerator' on this system."

 

I am pretty sure that the MxbCodeGenerator must be on the system somewhere.  In my project I have working references to NI.Common, NI.UI, NI.UI.WindowsForms, and NI.VisaNS .  Does anyone know how I can locate this MxbCodeGenerator tool again?  Without it my automatically generated VisaTask1.cs code cannot update.

 

Thanks,

Penny

 

0 Kudos
Message 1 of 4
(3,994 Views)

Hello Penny,

 

Thanks for posting. When you look at the properties of your component (VisaTask1.mxb), the "Custom Tool" property should refer to "NationalInstruments.MeasurementStudio.Tools.DotNET.MxbCodeGenerator.2008".

If the "Custom Tool" property is empty or wrong (i.e. just says "NationalInstruments.MeasurementStudio.Tools.DotNET.MxbCodeGenerator"), add the .2008 to the end.

 

Another troubleshooting step might include adding a new component and observing what the exact property contents are. You can then set these for the old component you are trying to convert. I have seen some cases where you had to fill in the Custom Tool property of the .mxb file by hand to get it to generate code.

 

Regards,

Mallori

Mallori M
National Instruments
Sr Group Manager, Education Services

ni.com/training
0 Kudos
Message 2 of 4
(3,970 Views)
Solution
Accepted by topic author Penny

Mallori,

 

It worked!  Thanks so much.  I just added the ".2008" as you suggested and now my VisaTask1.cs is updating again.

 

These discussion boards are just the greatest thing since sliced bread.  Smiley Very Happy

 

-Penny

 

0 Kudos
Message 3 of 4
(3,960 Views)

Glad to hear it worked 🙂 Good luck!

Mallori

Mallori M
National Instruments
Sr Group Manager, Education Services

ni.com/training
0 Kudos
Message 4 of 4
(3,953 Views)