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:
Demonstrates how to consume Office Primary Interop Assemblies (PIA) with .NET Core 3.1.
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.
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.
-
Install .NET Core 3.1.
-
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
.
- Double click on
-
Press F5 to build and debug the project.