diff --git a/.gitattributes b/.gitattributes index 4460ddaf..c8e094c0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,8 @@ # Needed for publishing of examples, build worker defaults to core.autocrlf=input. -* text eol=autocrlf +/source/** text eol=autocrlf +/Exercises/** text eol=autocrlf +/Lab/** text eol=autocrlf +/Test/** text eol=autocrlf *.mof text eol=crlf *.sh text eol=lf diff --git a/Resolve-Dependency.ps1 b/Resolve-Dependency.ps1 index 3848462c..935cbbb8 100644 --- a/Resolve-Dependency.ps1 +++ b/Resolve-Dependency.ps1 @@ -202,6 +202,11 @@ if (-not $powerShellGetModule -and -not $nuGetProvider) { $providerBootstrapParameters.Add('Scope', $Scope) } + + 'AllowPrerelease' + { + $providerBootstrapParameters.Add('AllowPrerelease', $AllowPrerelease) + } } if ($AllowPrerelease) @@ -307,6 +312,10 @@ try { $installPowerShellGetParameters.Add('Credential', $GalleryCredential) } + 'AllowPrerelease' + { + $installPowerShellGetParameters.Add('AllowPrerelease', $AllowPrerelease) + } } Write-Progress -Activity 'Bootstrap:' -PercentComplete 60 -CurrentOperation 'Installing newer version of PowerShellGet'