Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 1.47 KB

README.md

File metadata and controls

29 lines (16 loc) · 1.47 KB

Visio Demo

This is a basic Visio demo sample in .NET Core. It is designed to work with .NET Core 3.1. It is based on the Excel Demo sample found here:

Key Features

Demonstrates how to consume Office Primary Interop Assemblies (PIA) with .NET Core 3.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 2019. Build support for COMReference elements is not supported in the dotnet tool for the Preview 2 release, but the scenario is demoable from within Visual Studio 2019.

  1. Install .NET Core 3.1.

  2. Load VisioDemo.csproj in Visual Studio 2019.

    • Double click on VisioDemo.csproj in File Explorer.

    or

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