dotnet / msbuild

The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.

Home Page:https://docs.microsoft.com/visualstudio/msbuild/msbuild

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Enclosed property value works differently in different powershell versions

f-alizada opened this issue · comments

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