Commit Graph
7793 Commits
Author SHA1 Message Date
Joel Sallow (/u/ta11ow) a49beb66c6 Fix <img /> detection regex in web cmdlets (#12099)
# Conflicts:
#	test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1
2020-04-20 13:28:16 -07:00
dependabot-preview[bot] 15966fedbb 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-04-20 13:23:26 -07:00
Steve Lee 9873602323 Remove the version number of PowerShell from LICENSE (#12019) 2020-04-20 13:22:57 -07:00
Andrew 07221e3dc5 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
# Conflicts:
#	src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs
2020-04-20 13:21:23 -07:00
Steve Lee 8830011b34 Fix ConciseView where error message is wider than window width and doesn't have whitespace (#11880)
# Conflicts:
#	src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs
#	test/powershell/engine/Formatting/ErrorView.Tests.ps1
2020-04-20 13:17:31 -07:00
Tyler James Leonhardt ff1605553e Use Environment.NewLine instead of hard-coded linefeed in ParseError.ToString (#11746) 2020-04-20 13:11:37 -07:00
Dongbo Wang 331eac8fbc Make Test-Connection always use the default synchronization context for sending ping requests (#11517) 2020-04-20 13:11:15 -07:00
Aditya Patwardhan b54b188c18 Merged PR 11044: Update change log for V7.0.0 v7.0.0 2020-03-03 21:51:25 +00:00
Travis Plunk 6df0b3e21b Publish PowerShell vPack for stable and better builds (#11960) 2020-02-27 10:14:53 -08:00
Aditya Patwardhan f1f58a1abe Bump .NET core framework to 3.1.2 (#11963) 2020-02-26 16:16:21 -08:00
Aditya Patwardhan fb0ebc4b9b Enable Ctrl+C to work for global tool (#11959) 2020-02-26 16:15:31 -08:00
Aditya Patwardhan d9387c3e95 Ensure the man gzip has the correct name for LTS release (#11956) 2020-02-26 16:15:19 -08:00
Steve Lee f587d6a796 Fix ConciseView to not show the line information within the error messages (#11952) 2020-02-26 16:14:48 -08:00
dependabot-preview[bot] 72195fe69a Bump Microsoft.ApplicationInsights from 2.13.0 to 2.13.1 (#11925) 2020-02-26 16:05:02 -08:00
Aditya Patwardhan 2a11d5256b Merged PR 10976: Change log for 7.0.0-rc.3 release
Change log for 7.0.0-rc.3 release
v7.0.0-rc.3
2020-02-21 21:03:55 +00:00
Aditya Patwardhan b7ad255fe9 Merged PR 10978: Remove markdown link tests for release branch
Remove markdown link tests for release branch
2020-02-21 20:58:13 +00:00
xtqqczze 56310014e6 Add links to diffs on Github in changelog (#11652)
* Use consistent date format in markdown files

Change to international date format to match date format in `CHANGELOG/6.1.md` etc.

* Add links to compare views on Github
2020-02-21 11:21:27 -08:00
Dongbo Wang e0c56328b4 Update the map between console color to VT sequences (#11891) 2020-02-20 14:32:25 -08:00
Paul Higinbotham 09d376ec9a Fix SSH remoting error on Windows platform (#11907) 2020-02-20 14:32:25 -08:00
Aditya Patwardhan e2c05a7470 Add LTSRelease value from metadata.json to release.json (#11897) 2020-02-19 15:40:14 -08:00
dependabot-preview[bot] a76a1a169d Bump Microsoft.ApplicationInsights from 2.12.1 to 2.13.0 (#11894) 2020-02-19 15:40:14 -08:00
Dongbo Wang 5e3ae6c982 Make LTS package always not a preview (#11895) 2020-02-19 15:40:14 -08:00
James Truher [MSFT] 4b152d15d1 Make sure to test whether we skip a test using consistent logic (#11892) 2020-02-19 15:40:14 -08:00
dependabot-preview[bot] 79857968a8 Bump System.Data.SqlClient from 4.8.0 to 4.8.1 (#11879) 2020-02-19 15:40:14 -08:00
Aditya Patwardhan 64b0145a98 Merged PR 10960: Change LTSRelease value in metadata.json to true for RC.3 release
Change LTSRelease value in metadata.json to true for RC.3 release
2020-02-19 01:12:04 +00:00
Aditya Patwardhan b899cd1a6d Update LTS logic to depend on metadata.json (#11877) 2020-02-18 16:16:44 -08:00
Aditya Patwardhan d538c4c2f1 Set default value of LTSRelease to false (#11874) 2020-02-18 16:16:25 -08:00
Aditya Patwardhan 652fb1eb89 Skip directory creation at root test on macOS (#11878) 2020-02-18 16:15:21 -08:00
fcc03c952d Refactor packaging pipeline (#11852)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2020-02-14 08:48:56 -08:00
Travis Plunk d3ece89bda Make sure LTS packages have symlink for pwsh and pwsh-lts (#11843) 2020-02-13 18:54:32 -08:00
Aditya Patwardhan fb3ac87850 Update Get-PlatformInfo helper and tests for Debian 10, 11 and CentOS 8 (#11842)
# Conflicts:
#	test/powershell/Modules/Microsoft.PowerShell.Management/Test-Connection.Tests.ps1
#	test/powershell/Modules/PSDesiredStateConfiguration/MOF-Compilation.Tests.ps1
2020-02-13 18:54:19 -08:00
dependabot-preview[bot] 1e2d28fd88 Bump Microsoft.PowerShell.Native from 7.0.0-rc.2 to 7.0.0 (#11839) 2020-02-12 18:15:08 -08:00
Robert Holt 983a2cafe6 Restore the PowerShellStreamType enum with an ObsoleteAttribute (#11836) 2020-02-12 15:28:22 -08:00
Dongbo Wang 3fe59463cf Update the NuGet package generation to include cimcmdlet.dll and most of the built-in modules (#11832) 2020-02-12 15:28:21 -08:00
dependabot-preview[bot] c01589f15d Bump Microsoft.PowerShell.Archive from 1.2.4.0 to 1.2.5 (#11833)
Bumps Microsoft.PowerShell.Archive from 1.2.4.0 to 1.2.5.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-12 15:28:21 -08:00
dependabot-preview[bot] 6fec5ee195 Bump PSReadLine from 2.0.0-rc2 to 2.0.0 (#11831) 2020-02-11 13:48:57 -08:00
Andrew 7aaa54fd7c Sync current directory in WinCompat remote session (#11809)
# Conflicts:
#	src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs
2020-02-11 13:48:31 -08:00
James Truher [MSFT] 600f058080 Handle cases where CustomEvent was not initially sent (#11807) 2020-02-11 13:46:08 -08:00
Dongbo Wang 16bfd1e5d7 Fix how COM objects are enumerated (#11795) 2020-02-11 13:46:08 -08:00
Dongbo Wang 563f1e68cf Fix NativeDllHandler to not throw when file is not found (#11787)
<!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->

# PR Summary

Fix `NativeDllHandler` to not throw when file is not found.

Today, the `NativeDllHandler` calls `NativeLibrary.Load(fullName)` even if the file doesn't exist. This is not right, it should return `IntPtr.Zero` to let the runtime try the next resolution approach, if there is one.
Also, this behavior results in the exception message to be `Unable to load DLL 'F:\win-x64\nativedll.dll' or one of its dependencies: The specified module could not be found`, which is confusing because there was never an explicit loading of a dll with that path.
The real exception generated from runtime should be `Unable to load DLL 'nativedll' or one of its dependencies: The specified module could not be found.`

## PR Checklist

- [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
    - Use the present tense and imperative mood when describing your changes
- [x] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
- [x] [Make sure all `.h`, `.cpp`, `.cs`, `.ps1` and `.psm1` files have the correct copyright header](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
- [x] This PR is ready to merge and is not [Work in Progress](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress).
    - If the PR is work in progress, please add the prefix `WIP:` or `[ WIP ]` to the beginning of the title (the `WIP` bot will keep its status check at `Pending` while the prefix is present) and remove the prefix when the PR is ready.
- **[Breaking changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes)**
    - [x] None
    - **OR**
    - [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md)
        - [ ] Experimental feature name(s): <!-- Experimental feature name(s) here -->
- **User-facing changes**
    - [x] Not Applicable
    - **OR**
    - [ ] [Documentation needed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
        - [ ] Issue filed: <!-- Number/link of that issue here -->
- **Testing - New and feature**
    - [x] N/A or can only be tested interactively
    - **OR**
    - [ ] [Make sure you've added a new test if existing tests do not effectively test the code changed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting)
- **Tooling**
    - [x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
    - **OR**
    - [ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:
        - Impact on [PowerShell Editor Services](https://github.com/PowerShell/PowerShellEditorServices) which is used in the [PowerShell extension](https://github.com/PowerShell/vscode-powershell) for VSCode (which runs in a different PS Host).
        - Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
        - Impact on [PSScriptAnalyzer](https://github.com/PowerShell/PSScriptAnalyzer) (which provides linting & formatting in the editor extensions).
        - Impact on [EditorSyntax](https://github.com/PowerShell/EditorSyntax) (which provides syntax highlighting with in VSCode, GitHub, and many other editors).
2020-02-11 13:46:08 -08:00
Paul Higinbotham a04276af61 Fix Invoke-Command missing error on session termination. (#11586) 2020-02-11 13:46:08 -08:00
Travis Plunk df5d7b1235 Merged PR 10911: Add tracesource and serialization primitives to the allowed assembly list 2020-02-10 22:58:28 +00:00
xtqqczze 33802b7459 Fix markdown-link test failure (#11653) 2020-02-10 13:56:08 -08:00
Dongbo Wang f9ff64cccd Update the NextReleaseTag to be v7.0.0-preview.7 (#11372) 2020-02-10 13:21:04 -08:00
Andrew 038adccddb Add WinCompat deny list support using a setting in powershell.… (#11726)
# Conflicts:
#	build.psm1
#	src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs
2020-02-10 13:19:08 -08:00
Ilya ebf6abe294 Correct pwsh run (#11486)
# Conflicts:
#	test/powershell/Modules/Microsoft.PowerShell.Core/CompatiblePSEditions.Module.Tests.ps1
2020-02-10 13:16:15 -08:00
Aditya Patwardhan 4ec5837e6a Change packaging to produce LTS packages (#11772) 2020-02-10 13:12:09 -08:00
xtqqczze f9e0ccc9ff Update changelog generation script (#11736)
# Conflicts:
#	CHANGELOG/6.2.md
2020-02-10 13:12:09 -08:00
Travis Plunk 380cd15eed Update to CredScan v2 (#11765) 2020-02-10 13:12:09 -08:00
Aditya Patwardhan 3161a27b4d Build tar packages only when building on Ubuntu (#11766) 2020-02-10 13:12:09 -08:00