Configure a new project with Visual Studio 2017/2019

Create new solution with a new ASP.NET Core project targeted on framework .NET Core 2.2.

Creation in Visual Studio 2019

visual studio 2019 add new project
visual studio 2019 add new project

Creation in Visual Studio 2017

visual studio 2019 add new project
visual studio 2019 add new project

Verification

Check if your new project is targeted on framework .NET Core 2.2.

sample extension configuration application tab

Project properties, Application tab.

Add references

Add references to the Base and ExtCore (ExtCore is a dependency of Base).

dependencies of sample application

Configure pre-build scripts

Before building, you need to copy all Base dependencies to $(SolutionDir)$(OutDir) folder:

pre build tab configuration

Configure post-build scripts

After building, you need to copy your extension into Base’s extensions folder:

post build tab configuration

Configure debug tab

Most important, configure debugging. Your extension is a partial app and is not directly executed. Here is how to configure your application to enable possibility of debugging.

debug tab configuration

Now, you can debug your extension into Visual Studio.