Skip to content

Commit a220b21

Browse files
committed
clean-up on setVersion script
1 parent 86e46aa commit a220b21

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

scripts/setVersion.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
param (
2-
[string]$path = "c:\Users\$($env:username)\desktop\AssemblyInfo.cs",
2+
[string]$path, # = "c:\Users\$($env:username)\desktop\AssemblyInfo.cs",
33
[int]$major = 1,
44
[int]$minor = 0
55
)
66

7-
#$file = Get-Content $path | Out-String
87
$file = [System.IO.File]::ReadAllText( $path )
98

109
#adjust AssemblyVersion
@@ -34,4 +33,3 @@ $file = ([regex]::Replace( $file, $pattern, $v ))
3433
Write-Host $file
3534
[System.IO.File]::SetAttributes( $path, [System.IO.FileAttributes]::Normal );
3635
[System.IO.File]::WriteAllText( $path, $file )
37-
#Set-Content -Path $path -Value $file.Trim()

0 commit comments

Comments
 (0)