是否可以从nuget powershell设置项目的输出路径属性?

dkl*_*dkl 4 powershell visual-studio-2010 nuget

我想从nuget powershell控制台设置Visual Studio项目属性"输出路径".怎么可能呢?

我找到了一篇博客文章,描述了如何设置一些项目属性,但不包括输出路径.

此外,Output Path属性取决于当前的构建配置(Debug/Release).如何为任何配置设置输出路径(当时不活动)?

chr*_*ian 5

你想设置(Get-Project).ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath").Value例如:

(Get-Project).ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath").Value = "bin\NewDebugPath"
Run Code Online (Sandbox Code Playgroud)