Commit graph

5811 commits

Author SHA1 Message Date
Travis Plunk e49a81fe00 tests: fix function to test for docker OS due to change to use linuxkit for mac (#5843)
* Also, fix syntax issues to allow to work with released Pester
2018-01-23 16:10:45 -08:00
Eli Uriegas 44793e306a Remove Fedora 25, Add Fedora 27 (#5984)
Fedora 25 was EOL on December 12, 2017

https://fedoramagazine.org/fedora-25-end-life/

Signed-off-by: Eli Uriegas eli.uriegas@docker.com
2018-01-23 15:42:58 -08:00
Travis Plunk 9fc7077e11
update 6.0.1 change log (#5937) 2018-01-22 18:33:30 -08:00
Aditya Patwardhan 5b5168d72e Revert "Pull PSReadLine from PSGallery" (#5986)
This reverts commit beffdcf94d.
2018-01-22 16:09:35 -08:00
Thomas Conté 7dcd4c83d9 Fix build/package/installation scripts for SLES (#5918)
Small changes to the SUSE installation script so that it allows installing on SLES 12+ in addition to openSUSE 42+
2018-01-22 14:58:17 -08:00
Travis Plunk a603cf3867
Update csproj files to the latest version of the package references (#5961)
* Add function which tells you packages which probably need to be updated
2018-01-22 12:06:50 -08:00
Jason Shirk beffdcf94d Pull PSReadLine from PSGallery (#5759)
Instead of building PSReadLine from this repo, pull it from the gallery using nuget cache.

This pulls v2.0 of PSReadLine which does have documented breaking changes from v1.2, but the risk is small - the features that have changed are typically only used in a profile and aren't used all that often anyway.

Fix #996

Hardcodes version of modules pulled from PSGallery
2018-01-19 18:15:09 -08:00
Dan Travison 65a4002990 Logging: Fix the escaped characters when generating '.resx' file from PowerShell ETW manifest. (#5892) 2018-01-19 08:55:20 -08:00
Dongbo Wang 4b09a93676
Update docs and scripts for PowerShell 6.0.1 release (#5938) 2018-01-18 15:07:43 -08:00
Mark Kraus febc1e8bd0 Stop HttpListener from running in WebCmdlet tests (#5921) 2018-01-18 14:07:06 -08:00
Mark Kraus bb8d5562c5 Merge and Sort BasicHtmlWebResponseObject and ContentHelper (#5720)
* Merge and Sort BasicHtmlWebResponseObject

* Merge and sort ContentHelper
2018-01-17 16:47:50 -08:00
Christoph Bergmeister c6be7bd863 Update recommended WiX toolset link to be generic to WiX 3.x but mention that latest version of 3.11 has to be taken (#5926)
* Update recommended WiX toolset link to be generic to WiX 3.x but mention that the latest version of 3.11 has to be taken.
2018-01-17 16:42:45 -08:00
Steve Lee 7437f3dd3a Encoding for New-ModuleManifest on all platforms should be UTF-8 NoBOM (#5923)
* encoding for new-modulemanifest on all platforms should be utf8nobom
* fix test
2018-01-17 16:37:53 -08:00
Christoph Bergmeister d3a775da9a Packaging: simplify building an installable package for Windows (#5871)
This is the continuation of PR 5499 that had to be abandoned due to a fatal merge conflict and I did not want to risk accidentally reverting recent fixes.

    Remove unnecessary/unused default for productGuid because it always gets a new Guid when being called from Start-PSPackage
    Add defaults for required files but also add extra path validation attribute
    Rename ProductGuid to ProductCode
2018-01-17 15:34:03 -08:00
Ilya b27c6845b9 Update PowerShell to build with .NET Core 2.0.5 (#5903) 2018-01-17 15:11:50 -08:00
Zack Knight 76cbd0e1e7 Doc: Add a missing step to prepare the build environment on Mac. (#5901) 2018-01-17 12:53:28 -08:00
Ilya 5674bf37be Remove 'PSv2' only code from 'Types_Ps1Xml.cs' and 'HostUtilities.cs' (#5907) 2018-01-17 09:39:28 -08:00
Steve Lee 7459b54639 Set-Location should use path with wildcard characters if it exists instead of globbing (#5839)
When InitialSessionState initializes it tries to SetLocation to current working directory,
 but if the directory name contains PowerShell wildcard characters, it fails and reverts
 to $PSHOME.
 The change affects Set-Location in that if the path exists (even if containing wildcard characters), just use it. It is a breaking change.
2018-01-17 08:58:55 +04:00
Christoph Bergmeister a07cc49809 Use HKLM instead of HKCU registry keys since the current installation scope is perMachine. (#5915) 2018-01-17 07:09:12 +04:00
Brian Bunke 1211f34268 Fix typos in breakingchanges.md (#5913) 2018-01-17 07:01:36 +04:00
Ilya 89bdb1796c Update PowerShell to build with .NET Core 2.0.5 (#5903) 2018-01-16 17:36:37 -08:00
Mark Kraus 3f9564e665 Replace HttpListener Link Header Tests with WebListener (#5806)
- Add Link controller to WebListener
- Replace HttpListener Link tests with WebListener
- Update WebListener Documentation
- Enable cross-platform multiple Link header tests
2018-01-16 09:23:22 -08:00
Travis Plunk ab9a583516
fix version test to allow not to have a pre-release portion. (#5893) 2018-01-15 09:34:28 -08:00
Mark Kraus c8ccb376b4 [Feature] Replace HttpListener Echo Tests with WebListener (#5840) 2018-01-13 11:51:40 +04:00
Mark Kraus 211ee632dc [Feature] Replace HttpListener Redirect Tests with WebListener (#5872)
- adds type query to Redirect listener and adjusts logic to accommodate
- Replaces HttpListener Redirect Tests with WebListener
2018-01-13 11:51:04 +04:00
Mark Kraus 3e9a530b58 Update BREAKINGCHANGES.md to Include Web Cmdlets Breaking Changes (#5852) 2018-01-13 11:49:36 +04:00
Dan Travison d911bac210 Do not pass ArgumentAst to CreateArgument for -encodedarguments (#5836)
When calling powershell from powershell (called the minishell for historical reasons), the arguments are passed as a base64 encoded string.

The native command parameter binder was trying to match up the ast to the argument value, which in this case, doesn't make sense.

The fix is to ignore the ast during parameter binding for this case of calling powershell from powershell.

Fix #5733
2018-01-12 12:41:17 -08:00
Tim Lewis df13d926cd Update 'macos.md' to use 'brew cask upgrade' for upgrading powershell (#5875) 2018-01-12 11:17:45 -08:00
Ryan Palo c5f9199b4a Documentation - Add verfication step to Mac OS install docs (#5860) 2018-01-12 10:17:45 -08:00
Satoshi Tanda 2ae61c8ce4 Handle path that contains spaces in 'RegisterManifest.ps1' (#5859) 2018-01-11 11:18:24 -08:00
kanjibates 663f3a3496 Fix [releases] link in macOS install docs (#5861) 2018-01-11 10:46:54 +04:00
Christoph Bergmeister bb09b88390 Fix start menu folder clash of shortcut when x86 and x64 are both installed by appending " (x86)" for x86 to the . (#5826) 2018-01-10 18:18:44 -08:00
Travis Plunk db10411505
CimDscParser: Add better error message when a file is not found (#5838) 2018-01-10 18:16:41 -08:00
Travis Plunk a08f3241a3 Merge 6.0.0 into master
# Conflicts:
#	.github/Images/GitHub-PR.png
#	assets/Product.wxs
#	docs/installation/linux.md
#	docs/installation/macos.md
#	docs/installation/windows.md
#	test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1
#	tools/metadata.json
2018-01-10 17:42:41 -08:00
Travis Plunk 05ed03154d
tests: fix function to test for docker OS due to change to use linuxkit for mac (#5843)
* Also, fix syntax issues to allow to work with released Pester
2018-01-10 16:37:51 -08:00
Danny Maertens bb6823d707 Add the breaking changes doc (#5620) 2018-01-10 14:18:21 -08:00
Dongbo Wang 2f818615be
Update ChangeLog.md for PowerShell 6.0.0 GA release (#5835) 2018-01-10 08:50:33 -08:00
Ilya b6f18e7101
Add a test for IValidateSetValuesGenerator in a module (#5830)
Add a test that has been skipped in PR #5702
2018-01-10 13:02:33 +04:00
Christoph Bergmeister 378e8d5678 Make Explorer context menu registry entries platform specific to allow side by side of x86 and x64. The main menu has a " (x86)" appended to the main menu. (#5824)
Make explorer context menu registry entries platform specific to allow them to work also when both x86 and x64 are installed. The main menu has a " (x86)" appended to the main menu as well.
2018-01-10 08:17:06 +04:00
Dongbo Wang c4cf1440dd
Update docs and scripts for PowerShell 6.0.0 GA release (#5837) 2018-01-09 15:57:38 -08:00
Greg Zimmerman 0ed28d00f4 Seperate macOS from Linux install instructions. (#5823) 2018-01-09 14:55:51 -08:00
Christoph Bergmeister d2863fc50d Reduce image file sizes using lossless compression with imgbot (#5808) 2018-01-09 14:51:57 -08:00
Mark Kraus bcb7252712 Convert WebCmdlets test to one-true-brace-style Formating (#5716) 2018-01-09 13:43:25 -08:00
Jason Shirk 8bd53786d1 Fix ValidateSet with generator in a module (#5702)
The symbol resolver was properly resolving the type to the class
definition, but that resolution was ignored at runtime because we used
the string instead of the ITypeName - the ITypeName kept the reference
to the class definition.

Fix #5661
2018-01-09 13:43:54 +04:00
Steve Lee 08c455a4ee Remove sc alias which conflicts with sc.exe (#5827) 2018-01-08 18:09:00 -08:00
Aditya Patwardhan 0687d5a564 Updated Help Uri to point to latest help content for Microsoft.PowerShell.Core module (#5820) 2018-01-08 18:09:00 -08:00
Christoph Bergmeister 087d4acf54 packaging: x86 package gets installed as an x64 component and has the same UpgradeCode as the x64 installer leading to an uninstallation of an x64 installation (and vice versa) (#5812)
Fix bug #5597: x86/x64 installer are uninstalling each other when installing either of them:

-Make x86 installer to be installed as an x86 component (-arch argument to candle.exe, which sets the `sys.BUILDARCH` variable)
-Make the UpgradeCode unique per platform
-Replace `var.ProductTargetArchitecture` variable with sys.BUILDARCH use to have only 1 variable for the architecture
-Additionally, the architecture was appended to the package name to be able to distinguish the installations.

# Conflicts:
#	assets/Product.wxs
2018-01-08 18:09:00 -08:00
Andrew 92e140ad97 Update the installation doc for Raspberry-Pi about supported devices (#5773) 2018-01-08 18:09:00 -08:00
Mark Kraus 9e6115c9c6 Fix a typo and a Markdonw linting error in the Pull Request Template (#5807) 2018-01-08 18:09:00 -08:00
Dongbo Wang 658960e3f9 Move group policy settings and enable policy controlled logging in PowerShell Core (#5791)
Make PowerShell Core reads group policy settings from different registry keys (Windows only) and the configuration files (both Windows and Unix).
- On Windows, move to different GPO registry keys.
- On both Windows and Unix, read GPO related settings from the configuration file `powershell.config.json`.
- On Windows, the policy settings in registry take precedence over the configuration file.
- Enable policy controlled logging and transcription on Unix.
2018-01-08 18:09:00 -08:00