Donate

How To Enable Add COM Reference In A .NET Core Application Using Visual Studio 2019

Hello,

When creating a project using Visual Studio 2019 like for example a Console App and you might want to reference a certain COM library, you might wonder why the Add COM Reference is not found on the context menu when you right clicked the project. This usually happens if you perform a fresh install of the Visual Studio 2019 IDE on your machine. So to enable the Add COM Reference, simply follow the steps below:

1. Upgrade VS 2019 to latest version. As of now, the latest update is version 16.8.6.
2. Set the Target framework of your console app to .NET Core 3.0. But I recommend .NET Core 3.1     framework.
3. Right click on the console app project or the Dependencies. You should be able to see Add COM Reference from the context menu.
How To Enable Add COM Reference In A .NET Core Application Using Visual Studio 2019
4. Search for a COM Libary. Ex. Microsoft Excel 16.0 Object Library. 5. Add to your Project.
How To Enable Add COM Reference In A .NET Core Application Using Visual Studio 2019


That's it!

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

How To Insert Or Add Emojis In Microsoft Teams Status Message

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.