Increment RuntimeMinification Version Number via A...
# help-with-umbraco
c
Hi all, I'm looking into the idea of using this in production and I would like to be able to update the version number using a powershell script. Has anyone else done this please? "CacheBuster": "Version", "Version": "XXXX"
c
Awesome. Thank you.
@Anders Bjerner which yml file does this go in?
a
We've configured the release pipeline via the UI, so not sure about how to do this in yml
p
If its for a razor view I have used this, no need for the cachebuster stuff then.
m
would
appDomain
not be better for production? (linked to your assembly version number then?) Oh looks like I've misremembered that.. docs now say
Version - Caches will be busted when your assembly version changes....
So don't specify a specific version and should bust anyway as you're incrememting the assembly version?
Copy code
csharp
            _cacheBusterValue = $"{prefix}_{umbracoVersion}_{downstreamVersion}".GenerateHash();
m
In the YAML builder if you search for "Set variable" does it pop up? It may also be something from here: https://learn.microsoft.com/en-us/azure/devops/pipelines/process/set-variables-scripts?view=azure-devops&tabs=bash Write-Host "##vso[task.setvariable variable=mySecretVal;issecret=true]secretvalue"