I'm generating stylesheet/javascript links all over my website using a single extension method, so i have a place to generate querystring.
Example
http://mydomain.com/site.css?v0.0.1
The plan is when i do a new build, the content should be fetched freshly from the server. No surprises there.
However, i'm trying to figure out the best way to generate this value.
Obviously, ideally, doing something as a MSBuild task is the most ideal, but i've tried and failed that in the past.
We're using SquishIt for most static content, but for files not in the bundle (e.g ones that aren't required on every page), we need to generate the querystring param for the file.
I'm thinking i create a singleton guid on app start, then use that when generating links.
Thoughts?