Related to this question: Is it possible to set project's Output Path property from nuget powershell?
How can I set the output path of a project to use macro's? Just as when you edit it in the csproj file.
(Get-Project).ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath").Value =
"$(SolutionDir)bin"
This resolves in
<OutputPath>%24%28SolutionDir%29\bin</OutputPath>
But should have been
<OutputPath>$(SolutionDir)\bin</OutputPath>