Is it possible to set project's Output Path property from nuget powershell?

邮差的信 提交于 2020-01-23 08:43:47

问题


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)?


回答1:


You want to set (Get-Project).ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath").Value for example:

(Get-Project).ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath").Value = "bin\NewDebugPath"


来源:https://stackoverflow.com/questions/6312635/is-it-possible-to-set-projects-output-path-property-from-nuget-powershell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!