Commit graph

565 commits

Author SHA1 Message Date
xtqqczze 2014ce66c1
Set StrictMode version 3.0 (#11563) 2020-02-03 09:44:10 -08:00
Travis Plunk 8206e96ba1
Fix Symlink creation in packaging.psm1 (#11723) 2020-01-29 14:24:38 -08:00
Travis Plunk 8b36149795 Move to version 3 of AzFileCopy (#11697) 2020-01-28 19:51:07 +00:00
Aditya Patwardhan 84f2a7d170 Update README.md and metadata.json for next release (#11664) 2020-01-27 16:01:22 -08:00
Aditya Patwardhan cbd2ee56d5 Update README.md and metadata.json for next release (#11597) 2020-01-16 15:40:51 -08:00
Ilya aefb82a308
Correct casing for automatic variables (#11568)
* Remove BOM, insert newline at EOF

* Correct case of $MyInvocation special variable

* Correct case of $OFS special variable

* Correct case of $NestedPromptLevel special variable

* Correct case of $Matches special variable

* Correct case of $LASTEXITCODE special variable

* Correct case of $StackTrace special variable

* Correct case of $args special variable

* Correct case of $this special variable

* Correct case of $input special variable

* Correct case of $PSCmdlet special variable

* Correct case of $error special variable

* Correct case of $PSDefaultParameterValues special variable

* Correct case of $PSScriptRoot special variable

* Correct case of $PWD special variable

* Correct case of $null special variable

* Correct case of $true special variable

* Correct case of $false special variable

* Correct case of $PSModuleAutoLoadingPreference special variable

* Correct case of $IsLinux special variable

* Correct case of $IsMacOS special variable

* Correct case of $IsWindows special variable

* Correct case of $IsCoreCLR special variable

* Correct case of $DebugPreference special variable

* Correct case of $VerbosePreference special variable

* Correct case of $InformationPreference special variable

* Correct case of $ExecutionContext special variable

* Correct case of $HOME special variable

* Correct case of $Host special variable

* Correct case of $PID special variable

* Correct case of $PSCulture special variable

* Correct case of $PSHOME special variable

* Correct case of $PSUICulture special variable

* Correct case of $PSVersionTable special variable

* Fix false positives
2020-01-14 21:39:30 +05:00
Dongbo Wang be813a2fd9 Generate the correct reference assembly for Microsoft.PowerShell.ConsoleHost NuGet package (#11545) 2020-01-13 15:58:02 -08:00
xtqqczze e0d2e2aade Correct case of $PSHOME special variable 2020-01-13 19:35:33 +00:00
xtqqczze 94a73caa41 Correct case of $IsWindows special variable 2020-01-13 19:27:21 +00:00
xtqqczze 4a9d70fdcd Correct case of $PWD special variable 2020-01-13 19:24:10 +00:00
xtqqczze 42d50434f8 Correct case of $PSCmdlet special variable 2020-01-13 19:19:12 +00:00
xtqqczze 89e33f5772 Correct case of $Matches special variable 2020-01-13 19:15:17 +00:00
Bill Hurt 0119ec2b1f Update Debian Install Script To Support Debian 10 (#11540)
Support for installing pwsh on Debian 10 was added in #11236, but the
install script for Debian was not updated. This resulted in an error
when running the install script that claimed the distro was not
supported.

This change simply adds `10` to the collection of supported distro's.

I have tested that the script will now successfully install powershell
preview 7 on a Debian 10 machine.

Fix #11539
2020-01-12 15:00:42 -08:00
xtqqczze 743983390e Update pester syntax to v4 (#11544)
* Capitalize 'Should' command and fix whitespace

```powershell
$_ -ireplace '\s?\|\s?should\b',' | Should'
```

* Capitalise and apply hyphen to 'Not' parameter

```powershell
$_ -ireplace '(\| Should) not\b','$1 -Not'
```

* Capitalise and apply hyphen to 'Be' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?be\b','$1 -Be'
```

* Capitalise and apply hyphen to 'BeExactly' parameter

$_ -ireplace '(\| Should(?: -Not)?) -?beexactly\b','$1 -BeExactly'

* Capitalise and apply hyphen to 'BeGreaterThan' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?begreaterthan\b','$1 -BeGreaterThan'
```

* Use 'BeTrue' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?true\b','$1 -BeTrue'
```

* Use 'BeFalse' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?false\b','$1 -BeFalse'
```

* Capitalise and apply hyphen to 'Match' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?match\b','$1 -Match'
```

* Capitalise and apply hyphen to 'Throw' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?throw\b','$1 -Throw'
```

* Capitalise and apply hyphen to 'BeNullOrEmpty' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?benullorempty\b','$1 -BeNullOrEmpty'
```

* Capitalise 'Because' parameter

```powershell
$_ -ireplace '\s-because\b',' -Because'
```

* Fix 'BeNullOrEmpty'
2020-01-11 20:41:59 +05:00
xtqqczze 70d9ed4d55 Remove Unicode BOM from text files (#11546) 2020-01-11 12:15:34 +05:00
Steve Lee f61c0d4444 Update building of MSIX for RC to use 100 range revision (#11526) 2020-01-09 11:58:51 -08:00
Aditya Patwardhan 0b97d6d5cf Fix symbolic links on Debian 10 packages (#11474) 2020-01-07 16:54:03 -08:00
Aditya Patwardhan 8cb75f7e02 Build test artifacts for Alpine (#11483) 2020-01-07 12:12:19 -08:00
Travis Plunk 2c0d68c1c2
Add script to rebuild WIX component refs (#11485)
* Add script to rebuild component refs

* fix type

* fix document we get componentGroup from

* update files.wxs

* fix dependencies
2020-01-04 12:14:35 -08:00
Dongbo Wang 04cf068878
Update the NextReleaseTag to be v7.0.0-preview.7 (#11372) 2019-12-17 09:49:55 -08:00
Dongbo Wang ed18030e5f
Update ChangeLog, README.md and metadata.json for 7.0.0-rc.1 release (#11363) 2019-12-16 15:04:28 -08:00
Aditya Patwardhan 395c29cff8 Update dependencies from PowerShell Gallery and NuGet (#11323) 2019-12-11 15:21:03 -08:00
Paul Higinbotham 32e219814c Fix Nuget package signing for Coordinated Package build (#11316) 2019-12-10 15:44:00 -08:00
Aditya Patwardhan 8e76ad00e2 Bump .NET to 3.1.0 (#11260) 2019-12-04 13:17:16 -08:00
Travis Plunk 2ee9df5a5d fixes #11187 (#11236) 2019-12-03 19:39:06 +00:00
Dongbo Wang d68d126cae
Change back to use powershell.exe in 'SetVersionVariables.yml' to unblock daily build (#11207)
This reverts commit cf729c3407.
2019-11-27 13:35:21 -08:00
Dongbo Wang cf729c3407
Change to use pwsh to have consistent JSON conversion for DateTime (#11126) 2019-11-26 12:42:18 -08:00
Travis Plunk b60381f922 Update macOS minimum version (#11163) 2019-11-24 17:41:53 +05:00
Paul Higinbotham 35cfe4a99a Update Readme.md for preview.6 release (#11108) 2019-11-21 16:55:41 -08:00
Paul Higinbotham ea2617e940 Correct expected msix number. 2019-11-18 13:32:44 -08:00
Paul Higinbotham d9131f7164 Allow win7x86 msix package to build. 2019-11-18 13:29:49 -08:00
Aditya Patwardhan 8ff29ddc62 Allow semantic versions to be passed to NormalizeVersion fun… (#11087) 2019-11-15 16:41:03 -08:00
Aditya Patwardhan 8fcd772353 Bump .NET core framework to 3.1-preview.3 (#11079) 2019-11-14 17:06:46 -08:00
Ryan Yates 094d49791e Adds examples to install-powershell.ps1 script (#11024) 2019-11-12 14:51:17 -08:00
dependabot-preview[bot] 7411ca8331 Bump Newtonsoft.Json (#11037)
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.2 to 12.0.3.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.2...12.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-12 10:42:44 +05:00
Travis Plunk 57a071e9e6
Add Debian 10, 11 and CentOS 8 packages (#11028) 2019-11-11 12:29:24 -08:00
Dongbo Wang 8081e765d8 Upload Build-Info Json file with the 'ReleaseDate' field (#10986) 2019-11-07 12:10:06 -08:00
Aditya Patwardhan 08e120ca2b
Bump .NET core framework to 3.1-preview.2 (#10993) 2019-11-07 11:45:17 -08:00
Steve Lee ee64f47e76 Enable build of x86 MSIX package (#10934) 2019-11-05 13:03:44 -08:00
MJECloud 96e2a2e941 Install-Powershell.ps1: Add parameter to use MSI installation (#10921) 2019-10-30 13:02:12 -07:00
Ryan Yates 7b7fb0ef5e Add basic examples for install-powershell.ps1 (#10914)
* add basic info for install-powershell.ps1 fixes #10911

Adds some basic details for install-powershell.ps1 script

* Replaced Aliases
2019-10-30 12:31:49 -07:00
Steve Lee 87bb1e6f74 Update AppX Manifest and Packaging module to conform to MS Sto… (#10878) 2019-10-24 13:50:28 -07:00
Andrew b67e2e347e Updating links in README.md and metadata.json for Preview.5 (#10854) 2019-10-23 12:12:18 -07:00
Aditya Patwardhan 49e906bc3b Select the files for compliance tests which are owned by PowerShell (#10837)
* Move fxd compliance to the top to avoid binskim and apiscan on fxd folder

* Choose only the files we build for compliance

* Update tools/packaging/packaging.psm1

Co-Authored-By: Travis Plunk <travis.plunk@microsoft.com>
2019-10-19 10:32:34 -07:00
Aditya Patwardhan 74eaf1980f
Move to .NET Core 3.1 preview 1 (#10798) 2019-10-18 16:49:25 -07:00
Himura Kazuto d200ba0c04 Switch from /etc/lsb-release to /etc/os-release (#10773)
/etc/lsb-release does not exist on Debians
2019-10-12 12:31:23 +00:00
centreboard 54fd7d805d Check pwsh.exe and pwsh in daily version on Windows (#10738)
Improves on #10489
2019-10-10 14:37:35 -05:00
Travis Plunk c091b9ccc4 Remove unneeded tap in installpsh-osx.sh (#10752) 2019-10-09 14:50:43 -07:00
Dongbo Wang 74517923cf Make Add-Type usable in application that hosts PowerShell (#10587) 2019-09-25 16:26:19 -07:00
Christoph Bergmeister [MVP] 3b93fd285e Update to .Net Core 3.0 RTM (#10604) 2019-09-23 13:10:58 -07:00