<commit_before>$version = [System.Reflection.Assembly]::LoadFile(".\src\Sitecore.React\bin\Release\Sitecore.React.dll").GetName().Version
$versionStr = "{0}.{1}.{2}" -f ($version.Major, $version.Minor, $version.Build)

Write-Host "Setting .nuspec version tag to $versionStr"

$content = (Get-Content .\build\Sitecore.React.Nuget\Sitecore.React.Web.nuspec) 
$content = $content -replace '\$version\$',$versionStr

$content | Out-File .\Build\Sitecore.React.Web.nuspec

& $root\NuGet\NuGet.exe pack .\Build\Sitecore.React.Nuget\Sitecore.React.nuspec
& $root\NuGet\NuGet.exe pack .\Build\Sitecore.React.Nuget\Sitecore.React.Web.nuspec<commit_msg>Another attempt at sorting the pack ps file paths<commit_after>$root = (split-path -parent $MyInvocation.MyCommand.Definition)
$version = [System.Reflection.Assembly]::LoadFile("$($root)\src\Sitecore.React\bin\Release\Sitecore.React.dll").GetName().Version
$versionStr = "{0}.{1}.{2}" -f ($version.Major, $version.Minor, $version.Build)

Write-Host "Setting .nuspec version tag to $versionStr"

$content = (Get-Content $root\build\Sitecore.React.Nuget\Sitecore.React.Web.nuspec) 
$content = $content -replace '\$version\$',$versionStr

$content | Out-File $root\Build\Sitecore.React.Web.nuspec

& $root\NuGet\NuGet.exe pack $root\Build\Sitecore.React.Nuget\Sitecore.React.nuspec
& $root\NuGet\NuGet.exe pack $root\Build\Sitecore.React.Nuget\Sitecore.React.Web.nuspec
{'fraction_non_alphanumeric': 0.1760113555713272, 'fraction_numerical': 0.0042583392476933995, 'mean_word_length': 5.266666666666667, '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': '2901832', 'n_tokens_mistral': 532, 'n_tokens_neox': 517, 'n_words': 73}