[Bug]: Enclosed property value works differently in different powershell versions
f-alizada opened this issue · comments
Farhad Alizada commented
Issue Description
While invoking msbuild from different versions of powershell and cmd the arguments of property interpreted differently.
Steps to Reproduce
<Project>
<Target Name="TargetName">
<Message Text="Property value = $(property)" Importance="high" />
</Target>
</Project>
PWD: msbuild projectfile.proj /p:property="asdf
" results " Property value = asdf "
CMD: msbuild projectfile.proj /p:property="asdf
" results " Property value= asdf
"
PowerShell 7.4.1 : msbuild projectfile.proj /p:property="asdf
" results " Property value= "asdf" "
Expected Behavior
The output to be the same when invoked from cmd, powershell, powershell windows
Actual Behavior
the output is different