Registering COM Add-ins using Visual Studio

John 506 Reputation points
2023-06-14T19:19:25.6766667+00:00

I have coded a project in C#, and I want to register it as a COM Add-in for Microsoft Word.

Are there any possible ways?

By the way, I do not like using Node.js, because it has resulted in too many downloading and installing errors and warnings. In addition to this, Node.js runs only on projects written in VS Code framework with JavaScript.

Can anyone provide me some steps to register a project as a COM Add-in for Microsoft Word using Visual Studio 2022 edition?

Microsoft 365 and Office Development Other
Microsoft 365 and Office Word For business Windows
Developer technologies C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-06-14T19:53:24.9733333+00:00

    the legacy VSTO Add-In (COM) are only supported by Office for Windows. just create the correct project type (be sure to install the required workload):

    https://learn.microsoft.com/en-us/visualstudio/vsto/office-solutions-development-overview-vsto?view=vs-2022

    the Office add-in platform is supported all version of office (desktop and online). These are a html/javascript app hosted by the office app. The javascript app has access to the office client api. Node is used to build and test the add-in.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.