<commit_before>﻿$ErrorActionPreference = "Stop"

param(
    [string]$packageVersion,
    [string]$configuration
)

if(-not $packageVersion){
    $packageVersion = ($env:PackageVersion)
}

if(-not $configuration){
    $configuration = ($env:Configuration)
}

if(-not $packageVersion){
    throw "invalid package version"
}
if(-not $configuration){
    throw "invalid configuration"
}

"$PSScriptRoot\.nuget\nuget.exe" restore "$PSScriptRoot\Dapper.FastCRUD.sln"

"$(${env:ProgramFiles(x86)})\MSBuild\14.0\Bin\MsBuild.exe" "$PSScriptRoot\Dapper.FastCRUD.sln" /t:Rebuild /p:Configuration="$configuration"

"$PSScriptRoot\.nuget\nuget.exe" pack "$PSScriptRoot\NuGetSpecs\Dapper.FastCRUD.nuspec" -OutputDirectory Releases -Version "$packageVersion" -Properties configuration=$configuration -Verbosity detailed
"$PSScriptRoot\.nuget\nuget.exe" pack "$PSScriptRoot\NuGetSpecs\Dapper.FastCRUD.ModelGenerator.nuspec" -OutputDirectory Releases -Verbosity detailed  -Version "$packageVersion" -Properties configuration=$configuration<commit_msg>build script fixed<commit_after>﻿$ErrorActionPreference = "Stop"

$packageVersion = ($env:PackageVersion)
$configuration = ($env:Configuration)
$msBuildExe = ($env:MsBuildExe)
$msBuildTarget = ($env:Targets)

& "$PSScriptRoot\.nuget\nuget.exe" restore "$PSScriptRoot\Dapper.FastCRUD.sln"

& "$msBuildExe" "$PSScriptRoot\Dapper.FastCRUD.sln" /t:"$msBuildTarget" /p:Configuration="$configuration"

& "$PSScriptRoot\.nuget\nuget.exe" pack "$PSScriptRoot\NuGetSpecs\Dapper.FastCRUD.nuspec" -OutputDirectory Releases -Version "$packageVersion" -Properties configuration="$configuration" -Verbosity detailed
& "$PSScriptRoot\.nuget\nuget.exe" pack "$PSScriptRoot\NuGetSpecs\Dapper.FastCRUD.ModelGenerator.nuspec" -OutputDirectory Releases -Verbosity detailed  -Version "$packageVersion" -Properties configuration="$configuration"
{'fraction_non_alphanumeric': 0.14431879375336565, 'fraction_numerical': 0.0026925148088314485, 'mean_word_length': 7.043290043290043, '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': '6969582', 'n_tokens_mistral': 633, 'n_tokens_neox': 587, 'n_words': 93}