<commit_before>param(
    [ValidateSet("vs2013", "vs2012", "nupkg", "nupkg-only")]
    [Parameter(Position = 0)] 
    [string] $Target = "nupkg",
    [Parameter(Position = 1)]
    [string] $Version = "39.0.0-pre01",
    [Parameter(Position = 2)]
    [string] $AssemblyVersion = "39.0.0",
    [Parameter(Position = 3)]
    [string] $RedistVersion = "3.2171.1972"
)

$WorkingDir = split-path -parent $MyInvocation.MyCommand.Definition

$CefSln = Join-Path $WorkingDir 'CefSharp3.sln'

$MSBuildExe = join-path -path (Get-ItemProperty "HKLM:\software\Microsoft\MSBuild\ToolsVersions\4.0").MSBuildToolsPath -childpath "msbuild.exe"
$MSBuildExe = $MSBuildExe -replace "Framework64", "Framework"

function Write-Diagnostic 
{
    param(
        [Parameter(Position = 0, Mandatory = $true, ValueFromPipeline = $true)]
        [string] $Message
    )

    Write-Host
    Write-Host $Message -ForegroundColor Green
    Write-Host
}

if (Test-Path Env:\APPVEYOR_BUILD_VERSION)
{
    $Version = $env:APPVEYOR_BUILD_VERSION
}

if ($env:APPVEYOR_REPO_TAG -eq "True")
{
    $Version = "$env:APPVEYOR_REPO_TAG_NAME".Substring(1)  # trim leading "v"<commit_msg>Upgrade cef reference to 3.2171.1979 (strange that it wasn't already)<commit_after>param(
    [ValidateSet("vs2013", "vs2012", "nupkg", "nupkg-only")]
    [Parameter(Position = 0)] 
    [string] $Target = "nupkg",
    [Parameter(Position = 1)]
    [string] $Version = "39.0.0-pre03",
    [Parameter(Position = 2)]
    [string] $AssemblyVersion = "39.0.0",
    [Parameter(Position = 3)]
    [string] $RedistVersion = "3.2171.1979"
)

$WorkingDir = split-path -parent $MyInvocation.MyCommand.Definition

$CefSln = Join-Path $WorkingDir 'CefSharp3.sln'

$MSBuildExe = join-path -path (Get-ItemProperty "HKLM:\software\Microsoft\MSBuild\ToolsVersions\4.0").MSBuildToolsPath -childpath "msbuild.exe"
$MSBuildExe = $MSBuildExe -replace "Framework64", "Framework"

function Write-Diagnostic 
{
    param(
        [Parameter(Position = 0, Mandatory = $true, ValueFromPipeline = $true)]
        [string] $Message
    )

    Write-Host
    Write-Host $Message -ForegroundColor Green
    Write-Host
}

if (Test-Path Env:\APPVEYOR_BUILD_VERSION)
{
    $Version = $env:APPVEYOR_BUILD_VERSION
}

if ($env:APPVEYOR_REPO_TAG -eq "True")
{
    $Version = "$env:APPVEYOR_REPO_TAG_NAME".Substring(1)  # trim leading "v"
{'fraction_non_alphanumeric': 0.15059726962457337, 'fraction_numerical': 0.036262798634812285, 'mean_word_length': 4.053879310344827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2576712', 'n_tokens_mistral': 912, 'n_tokens_neox': 857, 'n_words': 160}