.NET Programmability for Office 2019

Add-in Express™ Support Service
That's what is more important than anything else

.NET Programmability for Office 2019
 
Jeff Montgomery


Guest


Add-In Express supports Office 2019, but I noticed yesterday while troubleshooting our add-in that Project 2019 no longer seems to install the .NET Programmability components to allow us to automate Project. The new installers are "Click To Run" and don't have an advanced options screen to do this. Our add-in loads in the ribbon, etc. just fine, but when we try to interact with the Project COM objects, it gets a null reference exception.

Do you have any advice on getting these components installed for Office 2019 products? It almost seems like Microsoft is ending interop support for 2019...

Thanks, Jeff

Here are some related links I found:
https://answers.microsoft.com/en-us/msoffice/forum/all/o365-excel-net-programmability-support-not-enabled/e1d0c609-3d39-4650-84d3-240a7a92f79a?auth=1
http://blog.accessitautomation.com/office-2019-msi
Posted 20 Oct, 2020 09:03:49 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Jeff,

That feature was a way to deliver Primary Interop Assemblies to a PC. The current way is described at https://docs.microsoft.com/en-us/visualstudio/vsto/office-primary-interop-assemblies?view=vs-2019. Also, Add-in Express installs these (and all other interops) on your development PC: check {Add-in Express installation folder}\Redistrbutables\Interop Assemblies.


Andrei Smolin
Add-in Express Team Leader
Posted 20 Oct, 2020 09:17:30 Top
Jeff Montgomery


Guest


Thank you Andrei, I have seen that Microsoft documentation section, but at 1,700 pages total, it's a lot of information and I didn't see a solution. I can look at it again.

We have been shipping our .msi-based add-in for many years, but in Office 2019, Microsoft stopped installing and registering the primary interop DLLs by default. I just need to know how they will get on the customer's system now. If I can't find it in the link above I can ask MS support.

Thanks, Jeff
Posted 20 Oct, 2020 10:48:23 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Jeff,

The Add-in Express setup project wizard adds interops your add-in project uses to the setup project. You can create a new empty add-in project, let Add-in Express create a setup project for it and see the interops 1) in the Interops folder of the test project and 2) referenced by the setup project.


Andrei Smolin
Add-in Express Team Leader
Posted 21 Oct, 2020 02:19:53 Top