Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Commit 45e8516

Browse files
committed
set strict mode off
1 parent a176b3d commit 45e8516

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/PowerShellGet/private/functions/New-NugetPackage.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function New-NugetPackage {
1717
[switch]$UseDotnetCli
1818

1919
)
20+
Set-StrictMode -Off
2021

2122
if (-Not(Test-Path -Path $NuspecPath -PathType Leaf)) {
2223
throw "A nuspec file does not exist at $NuspecPath, provide valid path to a .nuspec"

src/PowerShellGet/private/functions/New-NuspecFile.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function New-NuspecFile {
4747
[PSObject[]]$Files
4848

4949
)
50+
Set-StrictMode -Off
5051

5152
$nameSpaceUri = "http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"
5253
[xml]$xml = New-Object System.Xml.XmlDocument

src/PowerShellGet/private/functions/Publish-NugetPackage.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function Publish-NugetPackage {
1616
[Parameter(ParameterSetName = "UseDotnetCli")]
1717
[switch]$UseDotnetCli
1818
)
19+
Set-StrictMode -Off
1920

2021
$Destination = $Destination.TrimEnd("\")
2122

0 commit comments

Comments
 (0)