In the end, by the time you launch the website, you need to collect all kinds, including layouts, in a known place.
In this case, you can copy the general views as root
<siteroot>/Views/Shared/
With this assumption, you can reference these layouts the way you do it. However, visual studio or tools like resharper continue to show this as a bug. You need to get settled with these errors.
source share