13 lines
372 B
PowerShell
13 lines
372 B
PowerShell
param($installPath, $toolsPath, $package, $project)
|
|
|
|
$configItem = $project.ProjectItems.Item("NLog.config")
|
|
|
|
# set 'Copy To Output Directory' to 'Copy if newer'
|
|
$copyToOutput = $configItem.Properties.Item("CopyToOutputDirectory")
|
|
$copyToOutput.Value = 2
|
|
|
|
# set 'Build Action' to 'Content'
|
|
$buildAction = $configItem.Properties.Item("BuildAction")
|
|
$buildAction.Value = 2
|
|
|