Commit graph

8089 commits

Author SHA1 Message Date
Alejandro Pauly 3c3293df24
Update Adopters.md to include info on Azure Pipelines and GitHub Actions (#11888) 2020-02-20 12:02:48 -08:00
Ilya 45bc965af8
Fix NREs in SuspendStoppingPipeline() and RestoreStoppingPipeline() (#11870) 2020-02-20 11:57:00 -08:00
Ilya 59ad53181e
Remove old dead code from FullCLR (#11886) 2020-02-20 11:39:15 -08:00
Steve Lee a09855017f
Generate guid for FormatViewDefinition InstanceId if not provided (#11896) 2020-02-20 19:57:26 +05:00
Steve Lee 34f9b43514
Fix ConciseView where error message is wider than window width and doesn't have whitespace (#11880) 2020-02-20 08:38:28 +05:00
Aditya Patwardhan 8e68397228
Add LTSRelease value from metadata.json to release.json (#11897) 2020-02-19 15:34:29 -08:00
dependabot-preview[bot] d1e1ee70db
Bump Microsoft.ApplicationInsights from 2.12.1 to 2.13.0 (#11894) 2020-02-19 15:33:15 -08:00
Dongbo Wang d4536cfb77
Make LTS package always not a preview (#11895) 2020-02-19 15:07:11 -08:00
James Truher [MSFT] 349783fe36
Make sure to test whether we skip a test using consistent logic (#11892) 2020-02-19 14:20:35 -08:00
Aditya Patwardhan ac55229644
Fix daily package build (#11882) 2020-02-19 12:45:17 -08:00
dependabot-preview[bot] f854f5499c
Bump System.Data.SqlClient from 4.8.0 to 4.8.1 (#11879) 2020-02-19 12:32:06 -08:00
John Dennis 895d4b3f3e
Allow cross-platform CAPI-compatible remote key exchange (#11185) 2020-02-19 12:28:43 -08:00
Aditya Patwardhan 84aeff861e
Update LTS logic to depend on metadata.json (#11877) 2020-02-18 15:01:54 -08:00
Aditya Patwardhan 3cb1b23a13
Set default value of LTSRelease to false (#11874) 2020-02-18 15:01:08 -08:00
Aditya Patwardhan 5edff316c1
Skip directory creation at root test on macOS (#11878) 2020-02-18 14:11:22 -08:00
Next Turn 8522038cd8
Fix error message (#11862) 2020-02-18 13:07:09 -08:00
Aditya Patwardhan 1e5655b48c
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:44:43 -08:00
Travis Plunk d91af72726
Make sure LTS packages have symlink for pwsh and pwsh-lts (#11843) 2020-02-13 18:46:10 -08:00
Aditya Patwardhan a578347b5a
Update Get-PlatformInfo helper and tests for Debian 10, 11 and CentOS 8 (#11842) 2020-02-12 18:35:24 -08:00
dependabot-preview[bot] cec9deb72a
Bump Microsoft.PowerShell.Native from 7.0.0-rc.2 to 7.0.0 (#11839) 2020-02-12 15:59:18 -08:00
Robert Holt 2cfe8a4781
Restore the PowerShellStreamType enum with an ObsoleteAttribute (#11836) 2020-02-12 14:32:07 -08:00
Travis Plunk 63dd5a19e2
Fix package sorting for syncing to private Module Feed (#11838) 2020-02-12 14:15:54 -08:00
Steve Lee 5edafb6afd
Fix ConciseView to handle case where there isn't a console to obtain the width (#11784) 2020-02-12 11:48:58 +05:00
Ilya 9770477d43
Add new tests for Get-ChildItem (FileSystemProvider) (#11602) 2020-02-12 08:17:44 +05:00
Dongbo Wang 78a210121b
Update the NuGet package generation to include cimcmdlet.dll and most of the built-in modules (#11832) 2020-02-11 16:13:21 -08:00
dependabot-preview[bot] fbb1559fd3
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-11 14:55:47 -08:00
dependabot-preview[bot] 9ffc693b1e
Bump PSReadLine from 2.0.0-rc2 to 2.0.0 (#11831) 2020-02-11 12:16:03 -08:00
Andrew d2cb3c3636
Sync current directory in WinCompat remote session (#11809) 2020-02-11 11:44:30 -08:00
James Truher [MSFT] 4a0eda7fa9
Handle cases where CustomEvent was not initially sent (#11807) 2020-02-11 11:40:43 -08:00
Dongbo Wang 35c7b7842e
Fix how COM objects are enumerated (#11795) 2020-02-10 13:24:50 -08:00
Bruce Payette 4db018762f
Add information about how Amazon AWS uses PowerShell. (#11365) 2020-02-10 13:22:21 -08:00
xtqqczze f6a8973317
Specifiy csharp_preferred_modifier_order in EditorConfig (#11775) 2020-02-07 12:09:52 -08:00
Dongbo Wang da0695362a
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-07 20:03:16 +00:00
mikeTWC1984 69bf7043c0
Update CmsCommands to use Store vs cert provider (#11643) 2020-02-06 15:38:17 -08:00
Ilya 60387f1ad3
Use Dictionary.TryAdd() where possible (#11767) 2020-02-06 12:49:45 -08:00
xtqqczze e2f838e3c5
Update changelog generation script (#11736)
# PR Summary

* Fix regression from #11652
* Fix [MD022](https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md032---lists-should-be-surrounded-by-blank-lines) / [MD032](https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md032---lists-should-be-surrounded-by-blank-lines) rule violations
* Modify `Get-ChangeLog` to generate the changelog according to the format from #11652.

## PR Context

Follow-up to #11652

## 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-05 23:49:34 +00:00
Paul Higinbotham a5a97a5939
Fix Invoke-Command missing error on session termination. (#11586) 2020-02-05 15:27:57 -08:00
Andrew 43c88a4ff1
Add WinCompat deny list support using a setting in powershell.… (#11726) 2020-02-04 16:33:26 -08:00
Aditya Patwardhan bb021a977f
Change packaging to produce LTS packages (#11772) 2020-02-04 16:21:59 -08:00
Travis Plunk f3cc834f0c
Update to CredScan v2 (#11765) 2020-02-04 13:21:06 -08:00
Aditya Patwardhan 5ff8fadd19
Build tar packages only when building on Ubuntu (#11766) 2020-02-04 11:21:08 -08:00
Steve Lee db370dcc79
Enable pwsh to work on Windows systems where mpr.dll and STA is not available (#11748) 2020-02-04 10:52:19 -08:00
Brendan Burns 127fec5eb9
Refactor and implement Restart-Computer for Un*x and macOS (#11319)
Co-authored-by: Ilya <darpa@yandex.ru>
2020-02-03 14:57:17 -08:00
Steve Lee 6c6c9cc41e
Fix help function to check if less is available before usi… (#11737) 2020-02-03 14:38:11 -08:00
Tyler James Leonhardt ac1b83f152
Use Environment.NewLine instead of hard-coded linefeed in ParseError.ToString (#11746) 2020-02-03 14:03:12 -08:00
Ilya 58d53b53fd
Fix FileSystem provider error message (#11741) 2020-02-03 13:13:48 -08:00
xtqqczze c73a599469
Update PSPath in certificate_format_ps1.xml (#11603)
`PSPathPath` is an invalid item property name
2020-02-03 13:03:44 -08:00
James Truher [MSFT] bb8dbb953f
Ensure that types referenced by PowerShellStandard are present (#10634) 2020-02-03 12:57:06 -08:00
xtqqczze 2014ce66c1
Set StrictMode version 3.0 (#11563) 2020-02-03 09:44:10 -08:00
xtqqczze a34d0f3e80
Reformat code according to EditorConfig rules (#11681) 2020-01-31 14:56:22 -08:00