Skip to content
Branch: master
Find file History
NextTurn and mairaw Remove version strings from docs links (#1488)
* Remove version strings from docs links

* Apply suggestions from code review

Co-Authored-By: Maira Wenzel <>
Latest commit 3fb5367 Sep 18, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
ExcelDemo.csproj Remove version strings from docs links (#1488) Sep 18, 2019
Program.cs Add demo for Excel automation in .NET Core 3.0 (#487) Dec 4, 2018 Remove en-us from links (#1214) Aug 26, 2019

Excel Demo

This is a basic Excel demo sample in .NET Core. It is designed to work with .NET Core 3.0. It is based on the How to automate Microsoft Excel from Microsoft Visual C#.NET sample for .NET Framework.

Key Features

Demonstrates how to consume Office Primary Interop Assemblies (PIA) with .NET Core 3.0 Preview 1.

  • Embedding of Interop types (i.e. No-PIA).
  • Support for the IDispatch interface.

Note Adding COM references to .NET Core projects from Visual Studio is not currently supported. The workaround is to create a .NET Framework project, add the COM references, and then copy the relevant COMReference elements in the project. See ExcelDemo.csproj for further details.

Build and Run

To build and run the sample, the project must be loaded in Visual Studio 2017. Build support for COMReference elements is not supported in the dotnet tool for the Preview 1 release, but the scenario is demoable from within Visual Studio 2017.

  1. Install .NET Core 3.0 Preview 1.

  2. Load ExcelDemo.csproj in Visual Studio 2017.

    • Double click on ExcelDemo.csproj in File Explorer.


    • Open a Developer Command prompt and open with devenv.exe ExcelDemo.csproj.
  3. Press F5 to build and debug the project.

You can’t perform that action at this time.