I need to add the version at each css file, for that I have created a function which returns the build version, but when I add the function to the path it doesn't get properly rendered:
<!--Code-->
<link href="Styles/Site.css<% Version() %>" rel="stylesheet" type="text/css" />
<!--Render-->
<link href="Styles/Site.css<% Version() %>" rel="stylesheet" type="text/css" />
I tried both <% %> and <%= %> and even using a global variable instead of a public function but with no results, however I was able to add the version to js files through modifyng the path in the ScriptManager object.