File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Exceptionless.Signed/NuGet/tools
Exceptionless/NuGet/tools Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ function update_config($configPath, $platform) {
36
36
$shouldSave = $false
37
37
38
38
if ($configXml -ne $null ) {
39
+ $config = $configXml.SelectSingleNode (' configuration' )
40
+ if ($config -eq $null ) {
41
+ $configXml.AppendChild ($configXml.CreateElement (' configuration' ))
42
+ $shouldSave = $true
43
+ }
44
+
39
45
$configSection = $configXml.SelectSingleNode (" configuration/configSections/section[@name='exceptionless']" )
40
46
if ($configSection -eq $null ) {
41
47
$parentNode = $configXml.SelectSingleNode (" configuration/configSections" )
@@ -46,6 +52,7 @@ function update_config($configPath, $platform) {
46
52
$parentNode = $configXml.SelectSingleNode (" configuration" ).InsertBefore($configXml.CreateElement (' configSections' ), $configXml.SelectSingleNode (" configuration" ).ChildNodes[0 ])
47
53
}
48
54
}
55
+
49
56
$configSection = $configXml.CreateElement (' section' )
50
57
$configSection.SetAttribute (' name' , ' exceptionless' )
51
58
$configSection.SetAttribute (' type' , ' Exceptionless.ExceptionlessSection, Exceptionless.Signed' )
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ function update_config($configPath, $platform) {
36
36
$shouldSave = $false
37
37
38
38
if ($configXml -ne $null ) {
39
+ $config = $configXml.SelectSingleNode (' configuration' )
40
+ if ($config -eq $null ) {
41
+ $configXml.AppendChild ($configXml.CreateElement (' configuration' ))
42
+ $shouldSave = $true
43
+ }
44
+
39
45
$configSection = $configXml.SelectSingleNode (" configuration/configSections/section[@name='exceptionless']" )
40
46
if ($configSection -eq $null ) {
41
47
$parentNode = $configXml.SelectSingleNode (" configuration/configSections" )
@@ -46,6 +52,7 @@ function update_config($configPath, $platform) {
46
52
$parentNode = $configXml.SelectSingleNode (" configuration" ).InsertBefore($configXml.CreateElement (' configSections' ), $configXml.SelectSingleNode (" configuration" ).ChildNodes[0 ])
47
53
}
48
54
}
55
+
49
56
$configSection = $configXml.CreateElement (' section' )
50
57
$configSection.SetAttribute (' name' , ' exceptionless' )
51
58
$configSection.SetAttribute (' type' , ' Exceptionless.ExceptionlessSection, Exceptionless' )
You can’t perform that action at this time.
0 commit comments