I am trying to concatenate a variable with a string but get always a space a inbetween
[xml] $buildConfig = Get-Content $paths_target_file_path
$ver = $buildConfig.Project.PropertyGroup.LibVersion
$ver = $ver -replace "\s+",""
$version = "V"+$ver
Write-Host "Downloading LIB version: $version"
The above output is Downloading Lib version: V 1.2.11 i.e. a space between V and 1.2.11 despite replacing any whitespace character
Markus