Fixed Version String replacements
This commit is contained in:
parent
fdf4bd22eb
commit
fd20b19d8f
@ -19,15 +19,15 @@ function Replace-Version {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Update SoraV2BatteryHelperSetup.vdproj
|
# Update SoraV2BatteryHelperSetup.vdproj
|
||||||
$vdprojFile = "SoraV2BatteryHelperSetup\SoraV2BatteryHelperSetup.vdproj"
|
$vdprojFile = "SoraV2Utils_Setup\SoraV2Utils_Setup.vdproj"
|
||||||
$vdprojPattern = '(\s*)"ProductVersion" = "8:\d+\.\d+\.\d+"'
|
$vdprojPattern = '(\s*)"ProductVersion" = "8:\d+\.\d+\.\d+"'
|
||||||
$vdprojReplacement = '$1"ProductVersion" = "8:' + $version + '"'
|
$vdprojReplacement = '$1"ProductVersion" = "8:' + $version + '"'
|
||||||
Replace-Version -filePath $vdprojFile -regexPattern $vdprojPattern -replacement $vdprojReplacement
|
Replace-Version -filePath $vdprojFile -regexPattern $vdprojPattern -replacement $vdprojReplacement
|
||||||
|
|
||||||
# Update AssemblyInfo.cs files
|
# Update AssemblyInfo.cs files
|
||||||
$assemblyFiles = @(
|
$assemblyFiles = @(
|
||||||
"SoraV2BatteryHelperSvc\Properties\AssemblyInfo.cs",
|
"SoraV2Utils_Service\Properties\AssemblyInfo.cs",
|
||||||
"SoraV2BatteryHelperNotification\Properties\AssemblyInfo.cs"
|
"SoraV2Utils_Agent\Properties\AssemblyInfo.cs"
|
||||||
)
|
)
|
||||||
|
|
||||||
$assemblyVersionPattern = '(\s*)\[assembly: AssemblyVersion\("(\d+\.\d+\.\d+\.\d+)"\)\]'
|
$assemblyVersionPattern = '(\s*)\[assembly: AssemblyVersion\("(\d+\.\d+\.\d+\.\d+)"\)\]'
|
||||||
|
Loading…
Reference in New Issue
Block a user