Commit graph

6577 commits

Author SHA1 Message Date
Paal Braathen
2e89efa1bc When using Start-Transcript and file exists, empty file rather than deleting (#8131) 2018-11-07 08:34:42 +05:00
Travis Plunk
e702119177
Add code to use private NuGet feeds when running in internal CI system (#8187)
Add code to use private NuGet feeds when running in internal CI system
2018-11-06 09:52:14 -08:00
Steve Lee
7b243d59da Remove ShouldProcess from Format-Hex (#8178) 2018-11-06 11:31:43 +05:00
Aditya Patwardhan
94fde189a8 Fix script path for PowerShellPackageVsts.ps1 (#8189)
Fix mac build failure caused due to missing path.
2018-11-05 18:30:15 -08:00
Travis Plunk
5e47c73e27
Fix static secret in code (#8186) 2018-11-05 18:29:04 -08:00
Aditya Patwardhan
a1585502bb Workaround for accessing Az Artifacts (#8188)
Added a workaround for accessing Az Artifacts feed from release build. 
  - Also, converted the `sh` task to PowerShell.
2018-11-05 18:02:10 -08:00
Aditya Patwardhan
e6c3a38336 Update mac release build to create the nuget.config (#8185)
Update the build definition to create the nuget.config for the gallery modules.
2018-11-05 16:15:56 -08:00
Paul Higinbotham
acf5eb5053 Adding verbose output for experimental implicit remoting batching feature (#8166) 2018-11-05 15:22:46 -08:00
Aditya Patwardhan
e1d8765f9e Add function to create a new nuget.config file (#8170)
Add a function to create a NuGet.config file to consume packages  from the specified feed URL using the specified credentials.  

  - Also, exclude the `nuget.config` file under `src/Modules` from being clean by `Start-PSBuild -clean`
2018-11-05 10:48:05 -08:00
Aditya Patwardhan
b5ab2ddd40 Load assembly from module base path before trying to load from GAC (#8073)
[Breaking Change]
When a binary module has the module assembly in GAC, we load the assembly from GAC before trying to load it from module base path.

This change attempts to load it from module base path before looking up in GAC.
2018-11-05 10:41:53 -08:00
Andrew Schwartzmeyer
54874180ce Remove build and doc references to Git submodules (#8177)
As of #7892, the PowerShell repository no longer uses Git submodules.
This is fantastic from a workflow standpoint, and so all the notes about
how to deal with submodules (and all the build steps explicitly
initializing and updating submodules) can be safely removed.
2018-11-05 10:39:29 -08:00
Andrew
3597d58432 Adding yml for Linux builds (#8168)
As part of improving the build process, the UI build pipeline for Linux Builds was converted to a yml-based pipeline.
2018-11-05 10:35:53 -08:00
Takuya Shibata
03ba61c7c1 Remove #7633 from v6.2.0-preview.1 Changlog updates. (#8101) 2018-11-05 10:25:56 -08:00
dependabot[bot]
d165f5dcbf Bump NJsonSchema from 9.11.1 to 9.12.0 (#8183)
Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema) from 9.11.1 to 9.12.0.
2018-11-05 10:22:31 -08:00
Robert Holt
5d06fba366 Refactor module version/GUID comparison logic (#7125) 2018-11-01 13:41:51 -07:00
RDIL
e888e51097 Update URLs to use https instead of http in docs (#8165) 2018-11-01 13:38:48 -07:00
Steve Lee
eaa683119d Add title to Open Here window for MSI installer (#8164)
Since we don't explicitly set the window title, it just shows the path to `pwsh.exe`. Fix is to use the `-Command` parameter to set the window title.

Fix #8163
2018-11-01 13:07:45 -07:00
iGotenz
c5c747c371 Simple grammatical correction in README.md file (#7978) 2018-11-01 13:04:48 -07:00
Travis Plunk
c6910a12fa Fix conflict with Get-AdlStoreChildItem from az module in tab completion tests (#8167) 2018-11-01 12:03:03 -07:00
RDIL
892262fa6d Promote https (#8160)
* Promote https in extensions.json
* Promote https in code-of-conduct
2018-11-01 11:55:53 +05:00
PRASOON KARUNAN V
f59353d5d9 Error message enhancement for clear-content cmdlet when targeting a directory (#8134) 2018-11-01 08:56:45 +05:00
PRASOON KARUNAN V
35f1ed0011 Use approved verb instead of Generate-CrossGenAssembly (#8151) 2018-10-31 15:45:33 +05:00
Steve Lee
1eec123f48 Create $PROFILE if it does not exist for -WorkingDirectory processing test (#8152) 2018-10-30 22:06:19 -07:00
Kirk Munro
d9803b24d8 Make PSVersionInfo.PSVersion and PSVersionInfo.PSEdition public (#8054) 2018-10-31 09:09:53 +05:00
Ilya
ecb467c791
Use DefaultPathSeparator char instead of DefaultPathSeparatorString (#8082)
In:
* SessionStateLocationAPIs
* FileSystemProvider
* LocationGlobber
* NavigationProviderBase
2018-10-31 08:26:15 +05:00
Azkar Moulana
66a4ab10a9 Remove duplicate parts from license file (#8143)
All rights reserved had been duplicated in the license file and removed duplicating one necessarily
2018-10-30 17:20:55 -07:00
Paul Higinbotham
20f3a6a337 Experimental feature: Implicit remoting batching perf improvement (#8038) 2018-10-30 09:55:39 -07:00
Steve Lee
1aa5bb3576 Honor -OutputFormat if specified in noninteractive, redirected, encoded command used with pwsh (#8115)
[Breaking Change]

There is specific code that sets the `OutputFormat` to xml if pwsh is run non-interactive, with redirected output, and the command was encoded.  However, it ignored whether OutputFormat was specified.  Fix is to track whether `-OutputFormat` was used and respect that value rather than defaulting to xml.

Fix https://github.com/PowerShell/PowerShell/issues/5912
2018-10-29 17:51:21 -07:00
Mark Wragg
8215914b46 Updated Pester Syntax in Writing Tests Guide (#8039)
- Modified the Pester syntax for the `-Be` assertion (instead of just `Be`) to reflect the preferred use per latest version of Pester.
- Added an example showing use of `-BeOfType` to test the type of a variable.
- Other minor changes for grammar.
2018-10-29 17:49:12 -07:00
kwkam
a4d4c31390 build: fix Start-PSBuild -Output (#7504)
Make Start-PSBuild -Output $OutDir output the build to the directory properly.
2018-10-29 17:43:41 -07:00
Ilya
c36e4ad983 Cleanup: Remove clone of command-line args array (#7910) 2018-10-29 15:32:50 -07:00
Steve Lee
aa6f052d71 Update license.rtf to only have major version (#8127)
Guidance is that we can just have the major version at the top "PowerShell 6" and not worry about updating the minor version with each release.  The change is on line 230.  Word made the other changes to the RTF.
2018-10-29 15:30:04 -07:00
lassehastrup
7076d80631 Added updated photo of VScode due to new version of VScode (#8084) 2018-10-29 15:07:42 -07:00
Aditya Patwardhan
d7c7fa504f
Filter the TestPackage artifact upload by name to avoid other zip files being uploaded (#8116) 2018-10-29 14:13:05 -07:00
Steve Lee
b1e2745b53 move processing of -WorkingDirectory before processing of profiles (#8079) 2018-10-29 13:56:13 -07:00
dependabot[bot]
b3f315eb15 Bump xunit from 2.4.0 to 2.4.1 (#8140) 2018-10-29 13:28:02 -07:00
dependabot[bot]
cbfe2c8fe8 Bump xunit.runner.visualstudio from 2.4.0 to 2.4.1 (#8139) 2018-10-29 13:27:25 -07:00
Steve Lee
b27380dc51 Enable case-insensitive tab completion for files and folders on case-sensitive filesystem (#8128) 2018-10-28 09:48:49 +05:00
Mike Cochran
81618bc2c1 Add Microsoft Docs link to FAQ (#8133)
Linked to the Microsoft Docs for PowerShell as a reference on where to learn PowerShell's syntax.
2018-10-28 09:44:47 +05:00
Andre van den Berg
4f134fc197 Update powershell-beginners-guide.md to add alias for Clear-Host (#7912) 2018-10-26 09:29:24 -07:00
Ilya
0e19042848
Reduce allocations in Get-Content cmdlet (#8103)
* Simplify main loop in ReadDelimited() by bringing out raw stream code
* Remove unused constructor
* Allocate buffer for current line once in constructor
* Use Span buffer to significantly reduce allocations
* Optimize Boyer-Moore. Use simple mapping Unicode chars to byte. It works well for common text files with chars from one-two languages.
2018-10-26 08:55:54 +05:00
Darwin
ddaad12183 Update installpsh amazonlinux for container build (#7907) 2018-10-24 10:10:32 -07:00
Steve Lee
9141b11c5e Enable Set-Location -LiteralPath to work with folders named "-" and "+" (#8089) 2018-10-24 09:37:59 +05:00
Staffan Gustafsson
3e4fa87901 Add a path for checking ZoneInformation without throwing an exception (#8025) 2018-10-24 09:34:15 +05:00
Aditya Patwardhan
05e9f78bcb
Publish test package at AGENT_WORKFOLDER if TEMP is not available (#8108) 2018-10-23 16:31:04 -07:00
Steve Lee
082c3b0bae Enable Add-Content to share read access to other tools while writing content (#8091) 2018-10-23 16:27:53 -07:00
Andrew Stanton
bf2667352a Fix typo in -icontains description from"incase sensitive" to "case insensitive" (#7840) 2018-10-23 13:32:51 -07:00
tobvil
903c61a62b Added 'Learn Windows PowerShell in a Month of Lunches' as recommended reading (#8067) 2018-10-23 11:34:06 -07:00
dependabot[bot]
3c4d64c3e9 Bump Microsoft.ApplicationInsights from 2.8.0 to 2.8.1 (#8104) 2018-10-23 11:31:08 -07:00
Patrick Meinecke
57bf508fec Fix static method invocation type inference (#8018)
Fixes type inference for static method invocations (e.g. [powershell]::Create()).
2018-10-23 16:58:31 +05:00