Is it possible to set the project exit path property from nuget powershell?

I would like to set the Visual Studio project property โ€œExit Pathโ€ from the nuget powershell console. How can I do that?

I found a blog post describing how to set some project properties, but the exit path is not included.

In addition, the Output Path property depends on the current assembly configuration (Debug / Release). What could be the output path for any configuration (inactive at that time)?

+4
source share
1 answer

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

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

All Articles