Asp.net Core + Vue CI/CD pipeline issue
I have a vue project whose entrypoint is a specific route in an [ASP.NET](https://ASP.NET) Core server (ex/ [mywebpage.com/Home/Vue](https://mywebpage.com/Home/Vue)). I'm trying to build an Azure DevOps CI/CD pipeline for this website but I've hit a snag:
Every time I build my vue project, I have to manually update the layout .cshtml with references to the new css and js bundles. What is the easiest way to automate this process?
​
The C# project and Vue project are independent of eachother but are in the same git repo. They share the same parent folder inside the repo:
myProject - source/ -- csharpproj -- vueproj
​
\_LayoutVue.cshtml
<!DOCTYPE html> <html>
<head> <meta charset=utf-8> <meta http-equiv=X-UA-Compatible content="IE=edge"> <meta name=viewport content="width=device-width,initial-scale=1"> <link rel="shortcut icon" href="~/favicon.ico"> <title>My Site</title> <link as="style" href="~/css/app.d473b255.css" rel=preload> <!-- NEED TO UPDATE THIS WITH EVERY VUE BUILD --> <link as="style" href="~/css/chunk-vendors.4aacc5da.css" rel="preload"> <!-- NEED TO UPDATE THIS WITH EVERY VUE BUILD --> <!--[if !IE]>--> <link as=script href="~/js/app.65e4fc2f.js" rel=preload> <!-- NEED TO UPDATE THIS WITH EVERY VUE BUILD --> <link as=script href="~/js/chunk-vendors.9b67085f.js" rel=preload> <!-- NEED TO UPDATE THIS WITH EVERY VUE BUILD --> <!--<![endif]--> <link href="~/css/chunk-vendors.4aacc5da.css" rel=stylesheet> <!-- NEED TO UPDATE THIS WITH EVERY VUE BUILD --> <link href="~/css/app.d473b255.css" rel=stylesheet> <!-- NEED TO UPDATE THIS WITH EVERY VUE BUILD -->
</head>
<body> @RenderBody() <noscript> <strong>We're sorry but this site doesn't work properly in IE or without JavaScript enabled.</strong> </noscript> <div id=app></div> <!--[if !IE]>--> <script type=text/javascript src="~/js/chunk-vendors.9b67085f.js"><!-- NEED TO UPDATE THIS WITH EVERY VUE BUILD --></script> <script type=text/javascript src="~/js/app.65e4fc2f.js"></script><!-- NEED TO UPDATE THIS WITH EVERY VUE BUILD --> <!--<![endif]--> </body>
</html>
​