Pergunta

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

Foi útil?

Solução

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

(Get-Project).ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath").Value = "bin\NewDebugPath"
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top