Commit graph

4828 commits

Author SHA1 Message Date
Dongbo Wang a79cb2ffd2 Replace 'libpsrpclient' with 'psrp' package (#3477)
The package 'libpsrpclient' was replaced by 'psrp' in #3271. However, this was missed when moving from project.json to MSBuild. This change makes this update.
2017-04-03 16:40:06 -07:00
Rune Darrud 42f2e3ca82 Fix tests to work as expected under Linux (#3474)
- Removed the -TimeoutSec option and modified the expected Error to be consistent across platforms.
- Changed the port of the phony proxy to 9 which is reserved for the Discard Protocol. So even if the system is listening, it's supposed to discard that TCP request (UDP may use it for Wake-on-Lan, but doesn't affect this).
2017-04-02 17:31:22 -07:00
PetSerAl f76b2fcbaf Make Out-Default -Transcript more robust in how it handles TranscribeOnly state (#3436) 2017-04-01 16:36:04 -07:00
Rune Darrud a770ecd686 Add option -NoProxy to WebCmdlet 2017-03-31 18:02:59 -07:00
Travis Plunk 64230566f8 Refer to Windows docker images license in main readme (#3469) 2017-03-31 12:34:01 -07:00
Steve Lee 2cfe3d57a6 Fix progress bar display when cursor not at left edge
Fix by saving the cursor position, displaying the progress, and restoring the cursor back to the original position so normal formatting (e.g. table output) can continue.

Closes #3453.
2017-03-31 11:38:01 -07:00
Ilya 544e466e15 Fix 'StringBuilder' initialization (#3458) 2017-03-31 09:31:11 -07:00
Travis Plunk 7ceb1f6b84 Add entry points to the windows docker files (#3462) 2017-03-31 09:23:47 -07:00
Travis Plunk 9efbf56dd7 fix hashes for windows docker files (#3454) 2017-03-30 08:36:13 -07:00
Ilya 46cc634854 Fix typo in Scripting.Classes.BasicParsing.Tests.ps1 (#3459) 2017-03-30 08:35:06 -07:00
Travis Plunk 7e5814abf5 Expand md lint tests (#3451) 2017-03-29 17:13:19 -07:00
Ilya c705dbd0a7 Add test to verify approved aliases list (#3380) 2017-03-29 14:53:40 -07:00
Raghu Shantha [MSFT] d2d80c6832 Use Product Semantic version in the MSI installer where possible (#3435) 2017-03-29 13:36:44 -07:00
Ilya 39be7109d4 Add tab completion for Select-Object -ExcludeProperty -ExpandProperty (#3443) 2017-03-29 10:36:18 -07:00
Ilya 27b27cc43a Autoload TestRemoting.psm1 (#3430) 2017-03-29 10:11:02 -07:00
Steve Lee 4d0e21f6d2 Add "cache-control:no-cache" and "last-modifed" to headers to prevent GitHub CDN from caching Travis nightly badge (#3449) 2017-03-28 22:15:52 -07:00
Travis Plunk 7317f6c9bc Sorted spelling dictionary for easy of management (#3446) 2017-03-28 15:58:41 -07:00
Steve Lee da2fd5c89f Get-help may return multiple instances of the same help file (#3410)
* Help was incorrectly returning multiple instances of the same help file if it existed under a culture path and the parent was in the search path as well

* updated test to use generated help file rather than an actual one

* Fixed test to have module in $pshome path and casing of en-US culture
2017-03-28 15:07:42 -07:00
Steve Lee 520d2037df Update SSHRemoting README.md (#3444) 2017-03-28 14:27:58 -07:00
Ilya b212c7a9bd Reuse ProgressRecord in Web Cmdlets (#3411) 2017-03-28 13:13:28 -07:00
Paul Higinbotham 13ec07850b Fix for job dropping runspace close error (#3445) 2017-03-28 12:22:10 -07:00
Dongbo Wang 5c6ca49da4 Rename OSX package name to include operating system information (#3440) 2017-03-27 18:27:07 -07:00
Travis Plunk 737058f62e Add markdown lint test (#3420)
* Fix markdown syntax and spelling issues
* update spelling dictionary
2017-03-27 16:44:28 -07:00
Steve Lee c0c4cf41e7 rename AppImage to include version (#3433) 2017-03-27 15:52:58 -07:00
Dongbo Wang 3826e47313 Update installing docs as we have moved to .NET Core SDK 1.0.1 (#3432) 2017-03-27 15:26:22 -07:00
Rune Darrud b7c3abd645 Update SSHRemoting README.md (#3421) 2017-03-27 09:27:03 -07:00
Ilya a99fb531e6 Add autoload for test modules (#3342)
Related #3238

1. Add autoload for test modules
2. Move TestHostCS.psm1 to 'test\tools\Modules\' folder
3. Remove explicit load TestHostCS.psm1 from test files
2017-03-26 21:46:39 -07:00
Dongbo Wang 8598a51823 Add documentation about hosting PowerShell Core (#3409)
* Add documentation about hosting PowerShell Core

* fix spelling error

* Address review comments

* Update .spelling again

* Address new comments
2017-03-24 17:53:24 -07:00
ewhitesides fba35cff3c Include info in installation docs on Microsoft Package Repository (#3396) 2017-03-24 16:46:05 -07:00
Dongbo Wang d6b2d8f296 Remove the old S.M.A.csproj that was revived when resolving conflict (#3408) 2017-03-23 15:16:36 -07:00
ScriptAutomate 2c812f128a Add Linux repository instructions
Based on Windows PowerShell Blog:

https://blogs.msdn.microsoft.com/powershell/2017/02/01/installing-latest-powershell-core-6-0-release-on-linux-just-got-easier/

Use apt-get over apt due to man page pointing out apt as a tool for
interactive use, but apt-get as the proper tool to be used in scripted
installations (in order to retain backward compatibility in the event
that apt is modified).
2017-03-23 13:18:25 -07:00
Dongbo Wang 54fa658e31 Migrate from project.json to MSBuild (#3398)
- FullCLR build is disabled in this change.
- FullCLR build related functionalities in `build.psm1` and `AppVeyor.psm1` are disabled. They are not cleaned up from `build.psm1` and `AppVeyor.psm1` yet. We need to adopt .NET Core 2.0 to verify the portable module concept, and if that works well, we will remove the Windows PowerShell source code and clean up our scripts.
- `dnxcore50` and `portable-net5+win8` target framework monikers are removed.
- Dependency on `Microsoft.NETCore.Portable.Compatibility` is removed. It's not necessary, but it may come back when we work on supporting the `portable module`. Its necessity can be reviewed at that time.
- I didn't spend the time to try building powershell in Visual Studio 2017. We should have a separate issue for that. It's tracked by #3400

The `TypeCatalogParser` project is replaced by a MSBuild target to gather the dependency information.
Due to .NET Core SDK issue [#1021](https://github.com/dotnet/sdk/issues/1021), our meta-package project `Microsoft.PowerShell.SDK` starts to generate an empty assembly during the build and that results in an empty assembly `Microsoft.PowerShell.SDK.dll` appear in `publish` folder and in `.deps.json` file. We cannot simply remove the assembly because it's now part of the TPA, and removing it will cause powershell to crash at startup. We have to live with this empty assembly until that .NET Core SDK issue is fixed.  It's tracked by #3401.
2017-03-23 13:04:52 -07:00
Chunqing Chen 1393f45640 Get-Help does not work in JEA sessions (#2988) 2017-03-23 11:30:26 -07:00
Jeff Bienstadt 10f6e2fa6e Add wrappers around native API calls to catch exceptions.
Exceptions might be thrown if the referenced DLL is not present
or if the native function is not found.
2017-03-23 09:02:27 -07:00
Travis Plunk 27c819ce2e Add build support for OpenSUSE 42.1 (#3389) 2017-03-22 14:19:51 -07:00
Sergei Vorobev 0f099ee9be Remove Archive tests 2017-03-22 12:43:38 -07:00
Sergei Vorobev 1225977f14 Restore Microsoft.PowerShell.Archive module from www.powershellgallery.com 2017-03-22 12:43:38 -07:00
Sergei Vorobev 713b6c155e Remove Microsoft.PowerShell.Archive source code 2017-03-22 12:43:38 -07:00
Jason Werry 1d33e12762 Fixed typos and improved text (#3394) 2017-03-22 10:17:21 -07:00
Travis Plunk 70f6e176de Fix Markdown lint issues (#3357)
* Fix Markdown lint issues

Make header styles consistent

Make header names unique (make anchors usable)

* Fix spelling of sign up

* Add words used in readme to spelling dictionary.
2017-03-21 15:20:11 -07:00
Steve Lee c31d584737 Update SSH Remoting demo text (#3386) 2017-03-21 14:09:16 -07:00
Steve Lee d59a71f82c Changed usage of registry to psdrive instead of type which causes failure on Linux (#3377) 2017-03-21 10:04:46 -07:00
Maria 0e12fbfc9e Implement Format-Hex in C# (#3320) 2017-03-21 09:00:43 -07:00
Steve Lee c624ae2d6c tab expansion not working correctly for some parameters (#3364)
There was off by one error causing an `IndexOutOfRangeException` during parameter name completion.
2017-03-21 08:23:51 -07:00
Steve Lee 30eb61e3b9 correctly presenting progressbar when buffer scrolls and clearing at end (#3362) 2017-03-18 23:47:10 -07:00
jeffbi bbba61c1f5 Update Get-ComputerInfo test to properly test DeviceGuard items. (#3339)
* Make Get-ComputerInfo tests handle the case of the root\Microsoft\Windows\DeviceGuard namespace not found on the test machine.

Catch CIM exceptions, but don't look specifically for namespace-not-found

* Update Get-ComputerInfo test to properly test DeviceGuard items.
2017-03-17 16:31:21 -07:00
Ilya 915dfcd0d9 Improve a progress pane performance (one thread) (#2822)
Showing a progress bar is handled on the pipeline thread only. But not every "WriteProgress" will trigger the "_progPane.Show" to be called. Instead, a timer is used to set an "update" flag that will be checked in "HandleIncomingProgressRecord" to see whether "_progPane.Show" should be called. The timer fires every 200 ms. I test intervals from 50 ms to 2000 ms and I didn't measure much difference with 100 ms and 200 ms, so 200 ms is chosen to make it more cost-efficient.
2017-03-17 14:14:15 -07:00
Dongbo Wang 3a21d4c3df Search the assembly cache kept by ExecutionContext for type resolution. (#3327)
Our assembly cache contains assemblies that are explicitly loaded by powershell egine, such as via module loading or the assembly entries from InitialSessionState. We should search it before searching all loaded assemblies to give preference to resolve a type against the assemblies contained in the cache, so that in case there is a conflict, we might have a preferred assembly to use for a type resolution.

Changes:
- Search from context.AssemblyCache.Values before search from all loaded assemblies.
- Skip assemblies that we already searched and found no matching type.
- Skip checking PS types kept in the scope and type accelerators when it's not necessary.
2017-03-17 13:19:31 -07:00
Christopher Ubben b2259f8f70 Update all W3 links in the resource files to use HTTPS instead of HTTP (#3331) 2017-03-17 11:04:00 -07:00
Travis Plunk e631651d0b Remove opensuse 13.2 because it is not supported by dotnet or opensuse (#3351) 2017-03-17 09:21:38 -07:00