Errors when building Inventor 2019 Addin with Visual Studio 2019 and Nifty Addin template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Community,
On a new workstation I have installed Windows 10 Pro, Inventor 2019, Visual Studio 2019, and .NET 4.8.
When I try to build an addin using @BrianEkins 'Nifty Add-in Inventor 2018' template, a couple of errors are reported, but VS reports a successful build. Please see below:
1>------ Build started: Project: Inventor_Addin_2020-11-05_A, Configuration: Debug Any CPU ------
1> Inventor_Addin_2020-11-05_A -> C:\Users\jberns\source\repos\Inventor_Addin_2020-11-05_A\bin\Debug\Inventor_Addin_2020-11-05_A.dll
1> '"\VsDevCmd"' is not recognized as an internal or external command, operable program or batch file.
1> 'mt.exe' is not recognized as an internal or external command, operable program or batch file.
1> C:\Users\jberns\source\repos\Inventor_Addin_2020-11-05_A\Autodesk.Inventor_Addin_2020-11-05_A.Inventor.addin
1> 1 File(s) copied
1> C:\Users\jberns\source\repos\Inventor_Addin_2020-11-05_A\ButtonResources\SampleButton\16x16.png -> C:\Users\jberns\source\repos\Inventor_Addin_2020-11-05_A\bin\Debug\ButtonResources\SampleButton\16x16.png
1> C:\Users\jberns\source\repos\Inventor_Addin_2020-11-05_A\ButtonResources\SampleButton\32x32.png -> C:\Users\jberns\source\repos\Inventor_Addin_2020-11-05_A\bin\Debug\ButtonResources\SampleButton\32x32.png
1> 2 File(s) copied
1> The system cannot find the path specified.
1> C:\Users\jberns\source\repos\Inventor_Addin_2020-11-05_A\bin\Debug\Autodesk.Inventor_Addin_2020-11-05_A.Inventor.addin -> C:\Users\jberns\AppData\Roaming\Autodesk\ApplicationPlugins\Inventor_Addin_2020-11-05_A\Autodesk.Inventor_Addin_2020-11-05_A.Inventor.addin
1> C:\Users\jberns\source\repos\Inventor_Addin_2020-11-05_A\bin\Debug\Inventor_Addin_2020-11-05_A.dll -> C:\Users\jberns\AppData\Roaming\Autodesk\ApplicationPlugins\Inventor_Addin_2020-11-05_A\Inventor_Addin_2020-11-05_A.dll
1> C:\Users\jberns\source\repos\Inventor_Addin_2020-11-05_A\bin\Debug\Inventor_Addin_2020-11-05_A.xml -> C:\Users\jberns\AppData\Roaming\Autodesk\ApplicationPlugins\Inventor_Addin_2020-11-05_A\Inventor_Addin_2020-11-05_A.xml
1> C:\Users\jberns\source\repos\Inventor_Addin_2020-11-05_A\bin\Debug\ButtonResources\SampleButton\16x16.png -> C:\Users\jberns\AppData\Roaming\Autodesk\ApplicationPlugins\Inventor_Addin_2020-11-05_A\ButtonResources\SampleButton\16x16.png
1> C:\Users\jberns\source\repos\Inventor_Addin_2020-11-05_A\bin\Debug\ButtonResources\SampleButton\32x32.png -> C:\Users\jberns\AppData\Roaming\Autodesk\ApplicationPlugins\Inventor_Addin_2020-11-05_A\ButtonResources\SampleButton\32x32.png
1> 5 File(s) copied
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
1> '"\VsDevCmd"' is not recognized as an internal or external command, operable program or batch file.
1> 'mt.exe' is not recognized as an internal or external command, operable program or batch file.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
When I start Inventor, Addin Manager, the addin reports:
There was an error opening the file.
I have run the VsDevCmd.bat file to initialize the system. I have used the '-test' option, to which no errors are reported.
The only 'mt.exe' file on my system is found here:
C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\arm64\mt.exe
C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\mt.exe
C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86\mt.exe
I discovered that a User Environment Variable and a System Environment Variable had not been set for VS2019. I added these.
Any thoughts as to what has not been installed or configured to cause the error for the Inventor addin?
Thank you for your time and attention. I look forward to your replies.
Regards,
Jerry
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional