开发者

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

开发者 https://www.devze.com 2023-03-12 16:57 出处:网络
I would like to set Visual Studio project property \"Output Path\" from nuget powershell console. How could it be done?

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"
0

精彩评论

暂无评论...
验证码 换一张
取 消