
$currentScriptDirectory = Get-Location
[System.IO.Directory]::SetCurrentDirectory($currentScriptDirectory.Path)

Set-Location -Path ${PSScriptRoot}
$solutiondir = Resolve-Path -Path "$currentScriptDirectory"

Write-Host "Solution dir is " $solutiondir

$path = "$solutiondir\ReactiveDomain\ReactiveDomain.nuspec"
Write-Host "NuSpec File is" $path

$dll = "$solutiondir\ReactiveDomain\bin\x64\Debug\ReactiveDomain.dll" 
Write-Host "Loading dll: " $dll

$Assembly = [Reflection.Assembly]::Loadfile($dll)
$AssemblyName = $Assembly.GetName()
$Assemblyversion = $AssemblyName.version.ToString()

Write-Host "Assembly version is" $Assemblyversion

#Modify the nuspec file to get the assembly version of this build
$xml = [xml](Get-Content $path)
$node = $xml.package.metadata
$node.version = $Assemblyversion
$xml.Save($path)










$currentScriptDirectory = Get-Location
[System.IO.Directory]::SetCurrentDirectory($currentScriptDirectory.Path)

Set-Location -Path ${PSScriptRoot}
$solutiondir = Resolve-Path -Path "$currentScriptDirectory\src\ReactiveDomain"

Write-Host "Solution dir is " $solutiondir

$path = "$solutiondir\ReactiveDomain\ReactiveDomain.nuspec"
Write-Host "NuSpec File is" $path

$dll = "$solutiondir\ReactiveDomain\bin\x64\Debug\ReactiveDomain.dll" 
Write-Host "Loading dll: " $dll

$Assembly = [Reflection.Assembly]::Loadfile($dll)
$AssemblyName = $Assembly.GetName()
$Assemblyversion = $AssemblyName.version.ToString()

Write-Host "Assembly version is" $Assemblyversion

#Modify the nuspec file to get the assembly version of this build
$xml = [xml](Get-Content $path)
$node = $xml.package.metadata
$node.version = $Assemblyversion
$xml.Save($path)









Fix path to updatenuget script
Fix path to updatenuget script
