I’ve got several ASP.NET MVC websites running on .NET 4.7.2. These sites have the same fairly large header/footer sections. I’m looking for a way to share/inject these sections (maybe using partial views) into the sites so I only have to edit them once when things change. Sharing/injecting any CDN resources is also preferable. This would all be nice even if only possible in dev mode. But wait, there’s more…
Going beyond what I mentioned above, there is a corporate website created in Sharepoint that all of the .NET 4.7.2 sites must mirror their header/footer sections from. There is no good way for all these sites to keep their header/footer in sync that I’m finding. Currently I need to be told the corporate site has changed and then manually change each of the 4.7.2 sites. Sharing/injecting these sections from Sharepoint is obviously a bonus.
If no good solutions in 4.7.2, is there any way to accomplish this if the 4.7.2 sites were rewritten in new .Net? Any suggestions to any of this would be helpful!