Commit Graph
7945 Commits
Author SHA1 Message Date
Paul Higinbotham 668d72c4af Clean up the IPC named pipe on PowerShell exit (#12187) 2020-03-26 09:47:33 -07:00
Shayde Nofziger 238cb5c8dc Fix erroneous comment in tokenizer.cs (#12206)
The BigInteger NumberSuffixFlags enum is 'N', not 'I'. Fix the comment to indicate it as such.
2020-03-26 13:18:33 +05:00
Aditya Patwardhan 7193800bc2 Allow case insensitive paths for determining PSModulePath (#12192)
* Allow case insensitive comparison of paths for determining PSModulePath

* Address codefactor issue
2020-03-25 12:11:06 -07:00
Steve Lee f23be437af Fix terms checker issues (#12189) 2020-03-24 11:38:45 -07:00
Steve Lee b7cb335f03 Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00
Joel Sallow (/u/ta11ow) f8fb77052f Fix <img /> detection regex in web cmdlets (#12099) 2020-03-24 10:51:55 -07:00
Aditya Patwardhan 3c81de6d26 Add PowerShell version 7.0 to compatible version list (#12184) 2020-03-24 10:49:54 -07:00
Kevin Locke 68442a33e5 Add documentation for WebResponseObject and BasicHtmlWebResponseObject properties (#11876) 2020-03-23 15:13:47 -07:00
Paul Higinbotham cce214e884 Implement ForEach-Object -Parallel runspace reuse (#12122)
* Implement foreach parallel runspace reuse

* Change runspace dispose

* Refactor runspace reset check

* Fix race condition.

* Fix CodFactor issues

* Implement -UseNewRunspace parameter switch, add tests

* Fix Codacy error
2020-03-23 14:00:43 -07:00
Travis Plunk 7a8094fd31 Put symbols in separate package (#12169) 2020-03-21 12:36:10 -07:00
Travis Plunk 5309774403 Disable x86 pdb generation (#12167) 2020-03-20 13:54:39 -07:00
dependabot-preview[bot] 78d7a90bdd Bump NJsonSchema from 10.1.8 to 10.1.11 (#12166)
Bumps [NJsonSchema](https://github.com/RicoSuter/NJsonSchema) from 10.1.8 to 10.1.11.
- [Release notes](https://github.com/RicoSuter/NJsonSchema/releases)
- [Commits](https://github.com/RicoSuter/NJsonSchema/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-20 12:22:46 -07:00
Travis Plunk 3ab605aeec Create crossgen symbols for Windows x64 and x86 (#12157) 2020-03-19 17:24:27 -07:00
Steve Lee 495dea0783 Move to .NET 5 preview.1 (#12140) 2020-03-19 11:27:13 -07:00
Damir Ainullin 5da06978b1 Set correct priority for ?: operator (#12075) 2020-03-19 08:54:39 +05:00
Dongbo Wang c737f3162c Fix NullReferenceException when binding common parameters of type 'ActionPreference' (#12124) 2020-03-18 23:18:21 +05:00
Ilya 43e0e1a1c5 Fix default formatting for deserialized MatchInfo (#11728)
MatchInfo class has ToEmphasizedString() member method to color output line.
In remote scenario MatchInfo class is deserialized as Deserialized.Microsoft.PowerShell.Commands.MatchInfo without the method. As result default formating in remote scenario show nothing.

The fix is to directly output Line property.
2020-03-18 18:43:01 +05:00
Ilya 8ebff6a2a4 Use async streams in Invoke-RestMethod (#11095) 2020-03-18 18:40:35 +05:00
Ilya b5d4739b2a Use span-based overloads (#11884) 2020-03-18 18:38:55 +05:00
dependabot-preview[bot] 320656c8de Bump Microsoft.CodeAnalysis.CSharp from 3.4.0 to 3.5.0 (#12136)
Bumps [Microsoft.CodeAnalysis.CSharp](https://github.com/dotnet/roslyn) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/dotnet/roslyn/releases)
- [Changelog](https://github.com/dotnet/roslyn/blob/master/docs/Breaking%20API%20Changes.md)
- [Commits](https://github.com/dotnet/roslyn/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-16 13:22:56 -07:00
Bryan Berns 07962a9749 Address UTF-8 Detection In Get-Content -Tail (#11899)
- Addresses a comparison failure that causes UTF-8 detection to fail which in turn causes Get-Content -Tail to resort to forward lookups given encoding type cannot be detected. Possible this misdetection is due to the incoming encoding object as being of type System.Text.UTF8Encoding where as the comparison uses the object Encoding.UTF8 which is derived from System.Text.UTF8Encoding+UTF8EncodingSealed.
- See https://github.com/PowerShell/PowerShell/issues/11830

- Added 'OEM', 'UTF8BOM', and 'UTF8NoBOM' as explicit encodings for existing Get-Content -Tail tests.

* Add Multi-Byte Unicode Tail Character Tests

- Modified -Tail encoding test to use three different test sets: utf-8, utf-16, utf-32.  The test verifies that the content resulting from -Tail is equal to the same string returned from a regular Get-Content using both an explicit and implicit encoding.

* Remove BigEndianUnicode Reference In Comment
2020-03-14 09:57:04 +05:00
Steven Donovan 47645e0ccf Replace VSCode link in CONTRIBUTING.md (#11475) 2020-03-13 15:44:15 -07:00
Ilya 10e7d1955b Handle the IOException in Get-FileHash (#11944) 2020-03-13 09:10:19 -07:00
Travis Plunk 9d592ea388 Move to standard internal pool for building (#12119) 2020-03-13 09:00:18 -07:00
Travis Plunk f0a8220398 Fix package syncing to private Module Feed (#11841) 2020-03-13 17:54:27 +05:00
Ilya 2e8ced4856 Use new string.Split() overloads (#11867) 2020-03-13 17:46:05 +05:00
Steve Lee e9152a59a5 Remove the version number of PowerShell from LICENSE (#12019) 2020-03-12 22:13:34 -07:00
Aleksandar Nikolić 1fa0a00728 Change "PowerShell Core" to "PowerShell" in a resource string (#11928) 2020-03-12 18:04:29 -07:00
Labhansh Agrawal 61a589ad8a Add the 7.0 change log link to CHANGELOG/README.md (#12062) 2020-03-12 17:28:42 -07:00
Damir AinullinandIlya 5fd89561d0 Remove unreachable DSC code (#12076)
* Remove unreachable code

* Update src/System.Management.Automation/DscSupport/CimDSCParser.cs

Co-Authored-By: Ilya <darpa@yandex.ru>

Co-authored-by: Ilya <darpa@yandex.ru>
2020-03-12 09:53:45 -07:00
5f46605a21 Add Ubuntu SSH remoting tests CI (#12033)
* Add SSH remoting CI

* Fix typo

* Add install git to Ubuntu CI

* Update .vsts-ci/sshremoting-tests.yml

Co-Authored-By: Aditya Patwardhan <adityap@microsoft.com>

* Fix install git 1

* Add missing tools module import

* Change ubuntu service restart

* Update ssh install

* fix module path

* fix module path

* change module import

* Add tracing

* Add service start retry

* Fix service restart

* Fix options restore

* Fix Restore-PSOptions path

* Fix Pester test output

* fix typo

* Fix test output path

* Debug 1

* Debug 2

* Debug 3

* Change results path

* Fix result publish to use build artifacts directory

* Add more New-PSSession tests

* Remove User test

* Remove env:USER

* Add API tests

* Fix type for Subsytem API test

* Update .vsts-ci/sshremoting-tests.yml

Co-Authored-By: Travis Plunk <travis.plunk@microsoft.com>

* Update .vsts-ci/sshremoting-tests.yml

Co-Authored-By: Travis Plunk <travis.plunk@microsoft.com>

* Update .vsts-ci/sshremoting-tests.yml

Co-Authored-By: Travis Plunk <travis.plunk@microsoft.com>

* Apply suggestions from code review

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2020-03-11 14:45:14 -07:00
Shayde NofzigerandTravis Plunk 23b7dce320 Improvements to the contribution guide (#12086)
* Fix typo in contribution guide

* Improve contributing links and wording

Various improvements to the contributor's guide, including grammar fixes, making common links for easier updating, and fix for a broken link to VS Code editor documentation.

* Update .github/CONTRIBUTING.md

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2020-03-11 11:46:19 -07:00
Dongbo Wang bb8a7c779d Update the doc about debugging dotnet core in VSCode (#11969)
* Update the doc about debugging dotnet core in VSCode

* remove en-us
2020-03-10 09:40:12 -07:00
Ilya 12bf5f4a0c Bring back MainWindowTitle in PSHostProcessInfo (#11885)
* Bring back MainWindowTitle in PSHostProcessInfo

* Add test
2020-03-10 09:30:53 -07:00
Mattias Karlsson b04f0e4fc5 Change recommended VS Code extension name from ms-vscode.csharp to ms-dotnettools.csharp (#12083) 2020-03-10 11:55:23 +05:00
Andrew 704b0e74ed Miscellaneous minor updates to WinCompat (#11980)
* Filter PSModulePath when starting PS 5.1. Removing PS-Core-specific paths from PSModulePath of WinCompat process (Windows PS).
* Make implicit WinCompat respect NoClobber and Scope parameters
* Add ErrorAction.Ignore when searching for WinPSCompatSession
2020-03-10 11:31:44 +05:00
dependabot-preview[bot] 86ea202bae Bump NJsonSchema from 10.1.7 to 10.1.8 (#12088)
Bumps [NJsonSchema](https://github.com/RicoSuter/NJsonSchema) from 10.1.7 to 10.1.8.
- [Release notes](https://github.com/RicoSuter/NJsonSchema/releases)
- [Commits](https://github.com/RicoSuter/NJsonSchema/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-09 17:35:58 -07:00
dependabot-preview[bot] ee75eff0e4 Bump Markdig.Signed from 0.18.1 to 0.18.3 (#12078)
Bumps [Markdig.Signed](https://github.com/lunet-io/markdig) from 0.18.1 to 0.18.3.
- [Release notes](https://github.com/lunet-io/markdig/releases)
- [Changelog](https://github.com/lunet-io/markdig/blob/master/changelog.md)
- [Commits](https://github.com/lunet-io/markdig/compare/0.18.1...0.18.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-09 14:59:46 -07:00
dependabot-preview[bot] 74df0f8871 Bump NJsonSchema from 10.1.5 to 10.1.7 (#12050)
Bumps [NJsonSchema](https://github.com/RicoSuter/NJsonSchema) from 10.1.5 to 10.1.7.
- [Release notes](https://github.com/RicoSuter/NJsonSchema/releases)
- [Commits](https://github.com/RicoSuter/NJsonSchema/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-07 13:11:40 -08:00
Aditya PatwardhanandTravis Plunk 6b8dc6d6a2 Add empty preview.md file to fix broken link (#12041)
* Add empty `preview.md` file to fix broken link

* fix spelling

Co-authored-by: Travis Plunk <github@ez13.net>
2020-03-06 11:13:17 -08:00
Andrew 268afbdb4d Fix MSIX packaging to determine if a Preview release by inspecting the semantic version string (#11991) 2020-03-05 10:59:51 -08:00
Dongbo Wang 348ca85947 Fix ConciseView to split PositionMessage using [Environment]::NewLine (#12010) 2020-03-04 13:03:08 -08:00
Aditya Patwardhan 819585cd12 Merged PR 11044: Update change log for V7.0.0
# Conflicts:
#	CHANGELOG/7.0.md
2020-03-04 11:41:14 -08:00
Aditya Patwardhan 703b075aac Update README.md and metadata.json for the next release (#11992) 2020-03-04 09:32:21 -08:00
Paul Higinbotham 00b60c44fa Remove hop restriction for interactive sessions (#11920) 2020-02-28 12:26:08 -08:00
Aditya Patwardhan 91c9be996a Ignore last exit code in the build step as dotnet may return error when SDK is not installed (#11972) 2020-02-27 17:23:55 -08:00
Travis Plunk c97f2d7fd7 Publish PowerShell vPack for stable and better builds (#11960) 2020-02-27 10:13:29 -08:00
Aditya Patwardhan 277b277b57 Bump .NET core framework to 3.1.2 (#11963) 2020-02-26 15:45:56 -08:00
Aditya Patwardhan 4e896983c7 Enable Ctrl+C to work for global tool (#11959) 2020-02-26 15:45:28 -08:00
Aditya Patwardhan 23b0299b2a Ensure the man gzip has the correct name for LTS release (#11956) 2020-02-26 15:20:01 -08:00