04-20-2010 09:17 PM
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
Solved! Go to Solution.
04-21-2010 08:08 PM
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
04-22-2010 08:27 AM
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.
-Penny
04-22-2010 09:52 AM
Glad to hear it worked 🙂 Good luck!
Mallori