Skip to content

Commit ad40abb

Browse files
committed
Update build.ps1 to write separate assembly version - had problem with -pre tag
1 parent 3e9c7e8 commit ad40abb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CefSharp/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static class AssemblyInfo
3333
public const bool ComVisible = false;
3434
public const string AssemblyCompany = "The CefSharp Authors";
3535
public const string AssemblyProduct = "CefSharp";
36-
public const string AssemblyVersion = "37.0.0.0";
36+
public const string AssemblyVersion = "37.0.0";
3737
public const string AssemblyFileVersion = "37.0.0.0";
3838
public const string AssemblyCopyright = "Copyright © The CefSharp Authors 2010-2014";
3939
public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey;

build.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ param(
44
[string] $Target = "nupkg",
55
[Parameter(Position = 1)]
66
[string] $Version = "37.0.0-pre02",
7-
[Parameter(Position = 2)]
7+
[Parameter(Position = 2)]
8+
[string] $AssemlyVersion = "37.0.0",
9+
[Parameter(Position = 3)]
810
[string] $RedistVersion = "3.2062.1898"
911
)
1012

@@ -249,7 +251,7 @@ function WriteAssemblyVersion
249251
$Regex = 'public const string AssemblyVersion = "(.*)"';
250252

251253
$AssemblyInfo = Get-Content $Filename
252-
$NewString = $AssemblyInfo -replace $Regex, "public const string AssemblyVersion = ""$Version"""
254+
$NewString = $AssemblyInfo -replace $Regex, "public const string AssemblyVersion = ""$AssemlyVersion"""
253255

254256
$NewString | Set-Content $Filename -Encoding UTF8
255257
}

0 commit comments

Comments
 (0)