Commit graph

6375 commits

Author SHA1 Message Date
Ilya bec64a0743 Update CONTRIBUTION.md about adding an empty line after the copyright header (#7706) 2018-09-10 11:18:50 -07:00
Aditya Patwardhan c41b19923e Fix docker image names for release build (#7726) 2018-09-06 18:00:46 -07:00
Travis Plunk 433a263a17 Add daily build non-windows platforms (#7683)
Add daily build non-windows platforms
  - Also, make the [Feature] tag work in VSTS for non-windows
  - Also, add a way to force feature tests to run
  - Also, fix an issue where `-workingdirectory` didn't work when running async
2018-09-06 18:00:46 -07:00
Steve Lee b17c5113f4 update PSReadLine to 2.0.0-beta3 (#7711)
Update PSReadLine shipped with PSCore6 to 2.0.0-beta3
2018-09-06 18:00:45 -07:00
Christoph Bergmeister [MVP] b19630d167 Make Windows MSI uninstallation shortcut remove work when more than one version is installed (#7701)
Fixes underlying problem of #3341. Related: #2881
When multiple versions (e.g. RTM and preview) of PowerShell are installed via the MSI and one is being uninstalled, then the start menu shortcut does not get removed due to the shortcut component being not unique per version. This also applies to an upgrade scenario. Therefore use an auto-generated Guid (`*`)
2018-09-06 18:00:45 -07:00
Sergey Vasin b31ccf90d0 Fix a typo in Credential.cs. (#7696) 2018-09-06 18:00:45 -07:00
Travis Plunk f27812a824 update njsonschema (#7705) 2018-09-06 18:00:45 -07:00
Christoph Bergmeister [MVP] 39a1999998 Add VSTS CI build badges for master branch to README.md (#7691) 2018-09-05 14:06:10 -07:00
Ilya fed2b1b3bd Add a paragraph on files.wxs updating (#7695) 2018-09-05 14:06:10 -07:00
Sergey Vasin 3e06138692 Fix module specification hashtable in ModuleSpecification.Tests.ps1 (#7663) 2018-09-05 14:06:10 -07:00
Andrew d1991936c3 Updates to Docker package tests (#7667) 2018-09-05 14:06:10 -07:00
Steve Lee e0e445e88b Fix perf issue in provider by using Refresh() to update the status rather than instantiating ServiceController which has a significant perf degradation from .NET Framework (#7680) 2018-09-05 14:06:10 -07:00
Claus T Nielsen 56f1db33d3 Fix file blocking issue with webcmdlets (#7676) 2018-09-05 14:06:09 -07:00
Aditya Patwardhan 994abcc9d1 Change locale of mdspell to en-US (#7671)
Update the locale to use en-us for mdspell checker.
2018-09-05 14:06:09 -07:00
Travis Plunk 137d5de82b Add tests to report when package references are out of date (#7661)
Add tests to report when package references are out of date
  - Also, update the packaging script to generate updated `files.wxs`
2018-09-05 14:06:09 -07:00
Sergey Vasin 667175767c Remove extra spaces in error messages in Modules.resx. (#7662) 2018-08-31 16:55:43 -07:00
Ilya 959ce303f0 Update to latest package references, runtime framework, and SDK (#7646)
* Move to .Net Core SDK 2.1.401 and runtime 2.1.3

* Update package references
2018-08-31 16:55:43 -07:00
Travis Plunk 6dd9b4cbf8 Remove workaround on VSTS that is no longer needed (#7666) 2018-08-31 16:55:43 -07:00
Christoph Bergmeister [MVP] e4cb8e1eb5 Update docs about .NET Core version 2.0 to be about version 2.x (#7467) 2018-08-31 16:55:43 -07:00
Jason Shirk eae6d50d7a Add tools for PowerShell perf analysis (#7595) 2018-08-31 16:55:42 -07:00
James Truher [MSFT] 087de5b5f1 Change logic for downloading zip files based on job id (#7653) 2018-08-31 16:55:42 -07:00
Patrick Meinecke 2dfb4c54eb Enable indexing operations on objects that implement ITuple (#7633)
This change enables index operations on objects that implement `ITuple` and other interfaces that have `DefaultMemberAttribute` declared, including slicing and negative indexing.
2018-08-31 16:55:42 -07:00
Aditya Patwardhan aa6911d2d1 Update docker files to use MCR (#7656) 2018-08-31 16:55:42 -07:00
James Truher [MSFT] 727f2a07b8 Remove 'Suspend-Job' and 'Resume-Job' cmdlets from compilation (#7650)
The classes for the cmdlets are present but the Cmdlet attribute has been removed. There is no reason why we should be compiling these files, and it very slightly impacts our code coverage numbers.
2018-08-31 16:55:42 -07:00
Travis Plunk bb4e293bd5 make artifact upload only occur for non-PR builds (#7657) 2018-08-31 16:55:42 -07:00
Yuriy Kushnir d8bb2e9028 Use non-virtual call to invoke 'family or assembly' methods on base class from PowerShell class (#7622) (#7624) 2018-08-31 16:55:42 -07:00
zhenggu 28c59a2a57 Fix Set-Service -Status Stopped to stop services with dependencies (#5525) 2018-08-28 13:44:38 -07:00
PRASOON KARUNAN V 91b3047a45 Remove empty xml comment lines(missed in #7401) (#7641) 2018-08-28 13:44:30 -07:00
Staffan Gustafsson 1bfe96d3c4 Add Duration property to HistoryInfo (#5208)
* Remove regions in HistoryInfo class
* Auto properties refactoring in HistoryInfo
* Adding Duration property to HistoryInfo
* Rename ExecutionTime => Duration
2018-08-28 08:03:07 +05:00
Aditya Patwardhan aec954e3ed Fix null reference when markdown content is empty (#7463) 2018-08-27 11:58:19 +05:00
Dongbo Wang 86469bda33
Handle operations with ByRef-like types gracefully in PowerShell (#7533)
ByRef-like types are supposed to be used on stack only, so we need to fail gracefully when accessing properties, calling methods, or creating objects related to ByRef-like types.
2018-08-26 12:50:58 -07:00
Travis Plunk bf0787f9a0
Make -settingfile work for scriptblock logging on windows (#7631)
Make `-settingfile` work for scriptblock logging on windows
  - Move EarlyParse to the first thing in the ManagedEntrance so that we don't cache the settings before we parse the settings file.
  - Added a test case to prevent regression
    - I'm working on more test cases.  Therefore, I used the TestCases parameter.
  - Changed the macOS tests back to CI as I think they are stable enough now.
2018-08-26 11:03:28 -07:00
Dan Travison 1abf290f83 Add symbolic links for libssl and libcrypto to Debian 9 builds to make remoting work. (#7609)
On Debian 9, libmi cannot resolve libssl and libcrypto. This change adds symbolic links to packaging and build to the $PSHOME directory to resolve the issue.

The fix was verified interactively connecting to office 365, importing the session, and ensuring Get-MailBox and Get-User succeed.

Fix #7598
2018-08-24 15:20:22 -07:00
Staffan Gustafsson 50626a161b Simplify marshalling of StartupInfo struct used in Jumplist creation. (#7580) 2018-08-24 14:05:13 -07:00
Travis Plunk 6c454c6ea8
Update test which assumes all previews have the name preview in the version. (#7625) 2018-08-23 17:19:45 -07:00
Ilya 75c70a2a7c Update pester syntax in Set-Location test (#7615) 2018-08-23 15:15:03 -07:00
Dan Travison 23832e5e95 Update 'SSHConnectionInfo Class Tests' $skipTest expression to use collection semantics instead of relying on $null (which causes a type cast exception). (#7610) 2018-08-23 15:10:39 -07:00
Ilya fb1353fec2 Fix links in README.md (#7619) 2018-08-23 15:04:16 -07:00
Travis Plunk d6817a42e4
Add Linux ScriptBlock logging test (#7599) 2018-08-22 16:34:03 -07:00
Bruce Payette 4943bbfd9e Add LocationChangedAction handler and tests to support the Windows Compat module (#7552)
Add LocationChangedAction handler and tests to support the Windows Compat module.
2018-08-22 12:08:03 -07:00
Travis Plunk 97d2e10c22
Merge release v6.1.0 rc.1 into master (#7608) 2018-08-22 12:06:00 -07:00
Aditya Patwardhan 087305334b
Update docs and metadata JSON (#7597) 2018-08-22 08:32:39 -07:00
Travis Plunk dfa159898a
Add rc.1 Changelog (#7594) 2018-08-21 17:24:14 -07:00
Travis Plunk 9947985b87
Don't upload artifacts during pull request due to missing VSTS feature (#7588) 2018-08-21 16:55:18 -07:00
Travis Plunk 849f6fb147
Add test for scriptblock logging for macOS (#7586) 2018-08-21 13:20:54 -07:00
Aditya Patwardhan cbbc8192c4 Merged PR 4656: Add back the powershell-core source for hosting tests 2018-08-21 17:24:06 +00:00
Aditya Patwardhan abb8f6bc80 Merged PR 4645: Fix SDK dependencies
Removed old dependencies from SMA and fixed the netcoreapp version.
2018-08-20 23:47:40 +00:00
Travis Plunk 40532d9a2e
Add VSTS CI for Windows (#7536)
- Add VSTS CI for Windows
    - Disable `Access-denied test for Get-Item C:\windows\appcompat\Programs\Install -ErrorAction Stop`, because the path does not always exist
        - https://github.com/PowerShell/PowerShell/issues/7553
    - Disable `Should give .sys file if the fullpath is specified with hidden and force parameter`, because pagefile.sys doesn't always exist and other files don't meet test's requirement.
        - https://github.com/PowerShell/PowerShell/issues/7554
    - Disable some `Test-Connection` tests for same reasons they failed on VSTS Linux
        - https://github.com/PowerShell/PowerShell/issues/7555
    - Disable `Test-FileCatalog should pass when catalog is in the same folder as files being tested`, because the CmdLet does not work in that scenario
         - Also, give details needed to investigate when the test fails
         - https://github.com/PowerShell/PowerShell/issues/7556
    - Update `appveyor.psm1` to work with VSTS
    - Update `HelpersRemoting.psm1` `New-RemoteSession` to work for CimSession (discovered an issue during the investigation)
    - Update `Test wildcard with drive relative directory path` to work when there are multiple drives
         - Disable on non-windows machines since the test is assuming drive letters
    - Update `New-CimSession` Tests to requireAdmin
         - Also, make sure session name is a string
    - Add functions to save and restore psoptions
    - update `.gitatttributes` so files clone like they do on appveyor
2018-08-17 22:06:51 -07:00
Aditya Patwardhan 9fa97adeba Update PSGet version (#7564) 2018-08-17 15:50:38 -07:00
Aditya Patwardhan c42bda879b Update PSGet version 2018-08-17 15:09:26 -07:00