A fully working example using RazorLight > https://github.com/toddams/RazorLight.

This will use a seperate Templates library based on .Net Standard 2.1 and can be called from .Net Core 3.1