Aditya Patwardhan
77caf718cd
Update projects and scripts to use .NET 7 preview 1 pre-release builds ( #16856 )
...
* Update script to consume .NET 7 builds
* Update target framework
* Add dotnet metadata override value
* Update dependencies
* Update analyzer
* Conditionally add output argument
* Update files.wxs
* Fix tests
* Update Microsoft.PowerShell.Native to 7.3.0-preview.1
* Disable psget tests
* Update to latest build for .NET 7 preview 1
* Disable ready to run
* Update version of `Microsoft.AspNetCore.Mvc.NewtonsoftJson` package
* Update cgmanifest and startup test
2022-02-16 09:56:41 -08:00
ayousuf23 and Dongbo Wang
a9a235d469
Prevent tab completion if the word to complete is a single dash ( #16781 )
...
* added code to prevent tab completion if the word to complete is a single dash
* added a test for testing tab completion if the word to complete is a single dash
* Minor update and add comment
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2022-02-09 12:59:29 -08:00
Ilya
a5d41c2287
Use FindFirstFileW instead of FindFirstFileExW to correctly handle Unicode file names on FAT32 ( #16840 )
2022-02-05 07:13:14 -08:00
Dongbo Wang
35ad64e11b
Add a couple fixes to generic method invocation ( #16822 )
2022-02-03 11:58:02 -08:00
Dongbo Wang
bbb11dd07a
Fix the clean block for generated proxy function ( #16827 )
2022-02-03 11:39:08 -08:00
MartinGC94
7d3260fe0d
Add completion for loop labels after Break/Continue ( #16438 )
...
Adds completion for loop labels after labeled control flow statements such as Break and Continue.
The completion will look for any loops with a label that surrounds the Break/Continue keywords.
The tooltips for the completion entries shows the relevant loop.
2022-02-01 09:14:23 +05:00
Ikko Ashimine
0ef30e54c7
Fix typo in PowerShellExecutionHelper.cs ( #16776 )
2022-01-28 16:04:34 +00:00
Joel Sallow (/u/ta11ow)
8c53252969
Add support to allow invoking method with generic type arguments ( #12412 )
2022-01-27 09:55:54 -08:00
Ilya
9f722ef950
Use more efficient platform detection API ( #16760 )
...
* Use more efficient platform detection API
Use static and const new OperatingSystem class API to avoid string comparisons and extra allocations.
* Remove unused variable
2022-01-27 08:53:52 -08:00
Brannen Hall
0302b1f48e
Support OpenSSH options for PSRP over SSH commands ( #12802 )
...
Add an -Options parameter to Invoke-Command and Start-PSSession to pass SSH options
Options parameter added to Invoke-Command
Options parameter added to Start-PSSession
Options parameter added to Enter-PSSession
Options parameter added to SSHConnection Hashtable
2022-01-22 11:59:58 +05:00
xtqqczze
f83660e0e6
Seal ClientRemotePowerShell ( #15802 )
...
Seal `System.Management.Automation.Runspaces.Internal.ClientRemotePowerShell
Simplify IDisposable implementation
2022-01-21 18:54:16 +05:00
hammy3502
3eca7c019e
Adds a .ResolvedTarget Property to File-System Items to Reflect a Symlink's Target as FileSystemInfo ( #16490 )
2022-01-21 09:23:11 +05:00
Dongbo Wang
186d6be47d
Use NotifyEndApplication to re-enable VT mode ( #16612 )
...
Use NotifyEndApplication to re-enable VT mode instead of doing it in InputLoop.Run, so that we run this code only after invoking native commands
2022-01-14 09:07:06 +05:00
Mathias R. Jessen
686c84cccc
Add new parameter to Start-Sleep: [-Duration] <timespan> ( #16185 )
2022-01-13 17:39:54 -08:00
Sergey Zalyadeev and Sergey Zalyadeev
da7c52a52f
Add lock and null check to remoting internals ( #16542 ) ( #16683 )
...
* fix crash Copy-Item to remote session (#16542 )
* update comments
* remove lock (#16542 )
Co-authored-by: Sergey Zalyadeev <sergey.zalyadeev@cayosoft.com >
2022-01-13 12:28:03 -08:00
Thomas-Yu
ed6e0588c8
Add -StrictMode to Invoke-Command to allow specifying strict mode when invoking command locally ( #16545 )
2022-01-12 11:17:02 -08:00
Dongbo Wang
cce64f49de
Report error when PowerShell built-in modules are missing ( #16628 )
2022-01-12 10:02:03 -08:00
Steve Lee
0f21156dee
Fix $PSNativeCommandArgPassing = Windows to handle empty args correctly ( #16639 )
2022-01-11 23:21:32 -08:00
Steve Lee
a9b14a13fd
Add exec cmdlet for bash compatibility ( #16462 )
2022-01-04 14:09:27 -08:00
Paul Higinbotham
0834c65877
Add AMSI method invocation logging as experimental feature ( #16496 )
...
* Add AMSI method invocation logging as experimental feature
* Add fix for value type errors in logging expression
* Fix recursion error
2022-01-04 08:30:14 -08:00
dependabot[bot]
9b8916fe5a
Bump Microsoft.ApplicationInsights from 2.19.0 to 2.20.0 ( #16642 )
2022-01-03 16:25:15 -08:00
Sean Wheeler
bf8a13908d
Update HelpInfoUri for 7.3 release ( #16646 )
2022-01-03 11:15:07 -08:00
Joey Robichaud
b7ce3c568c
Fix parsing SemanticVersion build label from version string ( #16608 )
2021-12-17 09:39:26 -08:00
Andrew
1d1e42fd1a
Merge branch 'master' into BringChangesFrom730P1
2021-12-16 13:45:37 -08:00
Andrew Menagarishvili
3f1c03d494
Merged PR 18449: Change default for $PSStyle.OutputRendering to Ansi
...
Cherry picked from !18333
Cherry-picked from commit `5cb8a2b3`.
2021-12-16 13:39:56 -08:00
Dongbo Wang
6662e21cb6
Fix the DSC overview URL in a markdown file and some small cleanup changes ( #16629 )
2021-12-15 16:38:37 -08:00
Paul Higinbotham
cadd5762ea
Fix ForEach-Object -Parallel when passing in script block variable ( #16564 )
...
ForeEach-Object -Parallel using variable processing walks the script block AST to determine if the using variable was defined in the current scope, and does this by tracking the number of 'ForEach-Object -Parallel' commands in the call chain.
However, the provided script block is different, depending on whether it is passed in as a variable or via parameter binding.
$myScript = '"Hello!"'
1 | ForEach-Object -Parallel ([scriptblock]::Create($myScript))
# Script block Ast does not contain the 'ForEach-Object' command in the call chain
1 | ForEach-Object -Parallel { "Hello!" }
# Script block Ast does contain the 'ForEach-Object' command in the call chain
This change takes into account the two forms of script blocks
2021-12-14 08:11:19 +05:00
Bar Arnon
1920b1b6ea
Fix race condition between DisconnectAsync and Dispose ( #16536 )
2021-12-02 23:25:12 +05:00
Paul Higinbotham
64d2fe26f3
Fix PSVersion parameter version checks and error messages for PowerShell 7 remoting ( #16228 )
2021-12-01 15:54:25 -08:00
Dongbo Wang
88ba3f61fa
Use the same temporary home directory when 'HOME' env variable is not set ( #16263 )
2021-11-22 10:44:58 -08:00
Shri Ram K S
7bb8fa16ab
Fix the Max_PATH condition check to handle long path correctly ( #16487 )
2021-11-19 15:48:26 -08:00
Ikko Ashimine
4f86b079d0
Fix typo in Job.cs ( #16454 )
2021-11-15 21:55:40 +05:00
Sean Wheeler
306147c9d1
Update HelpInfoUri for 7.2 release ( #16456 )
2021-11-13 11:14:28 +05:00
MartinGC94
965dc8f40f
Fix tab completion within the script block specified for the ValidateScriptAttribute. ( #14550 )
2021-11-09 18:26:14 -08:00
dependabot[bot] and Travis Plunk
f2a42fb964
Bump Microsoft.ApplicationInsights from 2.18.0 to 2.19.0 ( #16413 )
...
* Bump Microsoft.ApplicationInsights from 2.18.0 to 2.19.0
Bumps [Microsoft.ApplicationInsights](https://github.com/Microsoft/ApplicationInsights-dotnet ) from 2.18.0 to 2.19.0.
- [Release notes](https://github.com/Microsoft/ApplicationInsights-dotnet/releases )
- [Changelog](https://github.com/microsoft/ApplicationInsights-dotnet/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/Microsoft/ApplicationInsights-dotnet/compare/2.18.0...2.19.0 )
---
updated-dependencies:
- dependency-name: Microsoft.ApplicationInsights
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update cgmanifest.json
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
2021-11-09 15:48:06 -08:00
Aditya Patwardhan
f8d6b2f9fe
Update metadata.json in preparation on 7.3.0-preview.1 release ( #16406 )
...
* Update `metadata.json` in preparation on `7.3.0-preview.1` release
* Update PSVersion table and tests
2021-11-09 08:31:01 -08:00
Ilya
ef69fdafc4
Remove unneeded call to File.ResolveLinkTarget from IsWindowsApplication ( #16371 )
2021-11-03 22:28:04 -07:00
Maksim Ivanyuk
674ef888a2
Add -HttpVersion parameter to web cmdlets ( #15853 )
2021-11-02 16:53:36 -07:00
Dongbo Wang
723a50832d
Don't throw exception when trying to resolve a possible link path ( #16310 )
2021-10-30 08:54:23 -07:00
Dongbo Wang
979f105a99
Fix parser to generate error when array has more than 32 dimensions ( #16276 )
...
An array cannot have more than 32 dimensions. See the doc of MarkArrayType(int rank)) https://docs.microsoft.com/en-us/dotnet/api/system.type.makearraytype?view=net-5.0#System_Type_MakeArrayType_System_Int32_ for details.
The fix is to not create the ArrayTypeName instance when the number of dimensions exceeds 32, but instead, generate a parsing error.
2021-10-29 08:16:26 +05:00
Aditya Patwardhan
52b6d89407
Update to latest .NET 6 GA build 6.0.100-rtm.21527.11 ( #16309 )
2021-10-28 11:40:52 -07:00
Ilya
51e11aaedf
Remove unnecessary call to ToArray ( #16307 )
2021-10-28 11:22:09 -07:00
Ilya
48be7b7f45
Avoid validation for built-in file extension and color VT sequences ( #16320 )
2021-10-28 11:17:15 -07:00
Paul Higinbotham
bd4e5598ce
Fix for SSH remoting when banner is enabled on SSHD endpoint ( #16205 )
2021-10-28 10:39:55 -07:00
Travis Plunk
14ea042cec
Revert "Update to use .NET 6 GA build ( #16296 )" ( #16308 )
...
This reverts commit 6302f4815a .
2021-10-26 15:57:59 -07:00
Aditya Patwardhan
6302f4815a
Update to use .NET 6 GA build ( #16296 )
2021-10-22 23:12:00 +00:00
Aditya Patwardhan
66508053f5
Update version of Microsoft.PowerShell.Native and Microsoft.PowerShell.MarkdownRender packages ( #16277 )
2021-10-19 17:31:57 -07:00
Travis Plunk and Paul Higinbotham
5d447cb773
Disallow all COM for AppLocker system lock down ( #16268 )
...
Co-authored-by: Paul Higinbotham <paulhi@microsoft.com >
2021-10-19 11:18:37 -07:00
Aditya Patwardhan
45b80a555a
Update .NET 6 to version 6.0.100-rc.2.21505.57 ( #16249 )
2021-10-15 13:51:26 -07:00
Travis Plunk and Aditya Patwardhan
d74c6bfb7b
Configure ApplicationInsights to not send cloud role name ( #16246 )
...
Configure ApplicationInsights to not send cloud role name
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com >
2021-10-14 15:12:37 -07:00