Skip to content

Commit 56d68da

Browse files
qiutongMSQiutong Shen
andauthored
add strictMode for 2 files in other Repo's pipeline (#5433)
Co-authored-by: Qiutong Shen <[email protected]>
1 parent c1c3d11 commit 56d68da

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

build/scripts/CreateInstallerOverrideHeader.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
[String]$DestinationFolder
55
)
66

7+
Set-StrictMode -Version 3.0
8+
$ErrorActionPreference = 'Stop'
9+
710
$overrideHeaderName = "windowsappruntime_definitions_override.h"
811

912
# Mapping of filenames to identifiers

build/scripts/ExtractMSIXFromNuget.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ param
77
[String]$Dest
88
)
99

10+
Set-StrictMode -Version 3.0
11+
$ErrorActionPreference = 'Stop'
12+
1013
function Remove-ItemIfExists ($Item)
1114
{
1215
if (Test-Path $Item)

0 commit comments

Comments
 (0)