سؤال

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"
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top