1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| param($installPath, $toolsPath, $package, $project)
|
| if ([System.IO.File]::Exists($project.FullName))
| {
| function MarkItemASCopyToOutput($item)
| {
| Try
| {
| #mark it to copy if newer
| $item.Properties.Item("CopyToOutputDirectory").Value = 2
| }
| Catch
| {
| write-host $_.Exception.ToString()
| }
| }
|
| MarkItemASCopyToOutput($project.ProjectItems.Item("ApplicationInsights.config"))
| }
|
|