Is it possible to set project's Output Path property from nuget powershell?
I would like to set Visual Studio project property "Output Path" from nuget powershell console. How could it be done?
I have found a blog post describing how to set some project properties, but Output Path is not included.
Furthermore, the Output Path property depends on current build configuration 开发者_开发问答(Debug/Release). How can be the Output Path set for any configuration (not active at the time)?
You want to set (Get-Project).ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath").Value
for example:
(Get-Project).ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath").Value = "bin\NewDebugPath"
精彩评论