I came across the below error when trying to add C# code with InfoPath Designer 2013. The MS Office client install does not offer a checkbox for VSTA anymore to install everything at once. Instead developers need to go download those tools separately. Oh, but the fun continues because I also needed Dot Net Framework 4.5 and Visual Studio 2012 installed.
After installing all three and running a Repair then I was finally able to write C# from InfoPath. Whew! Not as simple as the Office 2010 installer.
- Microsoft Visual Studio Tools for Applications 2012
- Microsoft .NET Framework 4.5
- Microsoft Visual Studio 2012
- Repair VSTA from Control Panel
BTW – All of the purple icons are confusing. InfoPath? OneNote? Visual Studio? Who knows!