I have two asp.net core applications which share a number of static assets (images, css, fonts etc) and as a temporary solution I’m keeping copies in both projects. I want to streamline this and obviously keep only one copy of the asset and make it accessible to both projects.
I was thinking about solutions to this and wondered if it was possible to create a new project in the solution and somehow replicate the content to the Azure CDN for example upon git commit and then just reference the CDN URL’s in the source. Obviously I dont want to manually manage this content and have to manually upload the files to a CDN/Storage endpoint every time I change my CSS or add an image.
However, I can’t see if this is possible and if so how to set this up? The app itself is hosted in Azure so this either needs to be implemented as a visual studio fix (e.g. the old ‘add link’ no longer seems to be available?) or in Azure.
Any suggestions on how to achieve this would be welcomed.
Thanks