Reece Dunham
5581c0a0ed
Update some info in md-link-checks ( #8757 )
2019-01-29 08:54:23 +05:00
Andrew
cec4557932
moved fxdependent-dotnetsdk-latest/Dockerfile ( #8738 )
2019-01-28 15:54:58 -08:00
Paul Higinbotham
7948cb63d3
Update README.md
for preview.4
( #8772 )
2019-01-28 15:54:18 -08:00
Travis Plunk
b779b88c79
Merge `release-v6.2.0-preview.4'
...
# Conflicts:
# test/Test.Common.props
# tools/packaging/packaging.psm1
2019-01-28 13:50:00 -08:00
Steve Lee
3e8f85a682
Enable catching NotImplementedException when calling into RawUI for members that are not implemented
2019-01-28 12:13:15 -08:00
Takuya Shibata
ecc3c875df
Updating README.md for supported openSUSE version and updating link to OS versions supported by CoreFx ( #8701 )
...
* Update openSUSE 42.2 to 42.3, and adding [openSUSE Leap 15](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6#installation---opensuse-leap-15 ).
* [Installation - openSUSE Leap 15](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6#installation---opensuse-leap-15 )
* Update CoreFx version 2.0 to 2.1.
* [.NET Core 2.1 - Supported OS versions](https://github.com/dotnet/core/blob/master/release-notes/2.1/2.1-supported-os.md )
2019-01-28 10:20:18 -08:00
Reece Dunham
e5897ba2f7
Fix broken reference ( #8753 )
2019-01-28 17:00:34 +05:00
Joel Sallow (/u/ta11ow)
db1b309800
Correctly Report impact level when SupportsShouldProcess
is not set to 'true' ( #8209 )
...
Major changes are:
- Make all commands return 'ConfirmImpact.None' if `SupportsShouldProcess` is not set to `true`.
- Update some cmdlets to explicitly use `ConfirmImpact.Low`.
- Update `DefaultCommands.Tests.ps1` to test for 'ConfirmImpact' level.
2019-01-26 03:12:00 -08:00
Mark Kraus
ff83206e1c
Fix Request Charset Issues in Web Cmdlets ( #8742 )
...
Instantiating a new MediaTypeHeaderValue object fails when the -ContentType parameter includes a charset such as application/json; charset=utf-8. This makes it impossible to set the content encoding on web requests. Moving to Parse() ensures we actually get a proper MediaTypeHeaderValue when the charset is present, thus allowing users to set their request encoding via proper -ContentType values.
2019-01-26 12:48:47 +05:00
Reece Dunham
43b68c43cc
Remove GitKracken files from GitIgnore ( #8743 )
...
<!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
## PR Summary
GitKracken now automatically prevents them from being committed, so this is not needed.
<!-- Summarize your PR between here and the checklist. -->
## PR Context
<!-- Provide a little reasoning as to why this Pull Request helps and why you have opened it. -->
## PR Checklist
- [X] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- Use the present tense and imperative mood when describing your changes
- [X] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [X] [Change is not breaking](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes )
- [X] [Make sure all `.h`, `.cpp`, `.cs`, `.ps1` and `.psm1` files have the correct copyright header](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [X] This PR is ready to merge and is not [Work in Progress](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress ).
- If the PR is work in progress, please add the prefix `WIP:` or `[ WIP ]` to the beginning of the title (the `WIP` bot will keep its status check at `Pending` while the prefix is present) and remove the prefix when the PR is ready.
- **User-facing changes**
- [X] Not Applicable
- **OR**
- [ ] [Documentation needed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [ ] Issue filed: <!-- Number/link of that issue here -->
- **Testing - New and feature**
- [X] N/A or can only be tested interactively
- **OR**
- [X] [Make sure you've added a new test if existing tests do not effectively test the code changed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting )
- [X] [Add `[feature]` to your commit messages if the change is significant or affects feature tests](https://github.com/PowerShell/PowerShell/blob/master/docs/testing-guidelines/testing-guidelines.md#requesting-additional-tests-for-a-pr )
2019-01-25 15:49:57 -08:00
Reece Dunham
04a31ff22f
Refactor appveyor.psm1
to ci.psm1
( #8733 )
2019-01-25 15:30:31 -08:00
Travis Plunk
d798ce7f5e
Make every csproj
files have its own folder ( #8750 )
...
* move csproj files into individual folders
* get csproj files from individual folders
2019-01-25 13:44:25 -08:00
Aditya Patwardhan
6ccbebda27
Improve check for developer mode by checking minimum required build number ( #8749 )
...
* Improve check for developer mode by checking minimum required build number
The test would fail if the developer mode is enabled but the machine has an older build than the minimum required build.
The change adds a check for the build version in the test.
* Update test/powershell/Modules/Microsoft.PowerShell.Management/New-Item.Tests.ps1
2019-01-25 13:14:29 -08:00
Dongbo Wang
12547c01e8
Add complete xml docs for ConvertToJsonContext constructors ( #8737 )
2019-01-25 12:02:41 -08:00
Alex Earl
89b2dcdeff
Update README.md for ARM to include both 32-bit and 64-bit PS package links ( #8677 )
2019-01-25 12:01:29 -08:00
Dongbo Wang
c35fd70b15
Simplify the declaration of new experimental features ( #8726 )
2019-01-25 11:57:28 -08:00
Reece Dunham
719b808941
Update issue templates with new supported values ( #8718 )
2019-01-25 11:56:10 -08:00
Dongbo Wang
1264a00a76
Update packaging script to build reference assembly targeting netcoreapp2.1
and use actual .csproj
files ( #8729 )
2019-01-25 11:10:47 -08:00
Paul Higinbotham
9acd174225
Merged PR 6702: Add change log for v6.2.0-preview.4 release
...
Add change log for v6.2.0-preview.4 release
2019-01-25 18:24:38 +00:00
dependabot[bot]
28042f3f44
Build(deps): Bump NJsonSchema from 9.13.16 to 9.13.17 ( #8747 )
...
Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema ) from 9.13.16 to 9.13.17.
- [Release notes](https://github.com/rsuter/NJsonSchema/releases )
- [Commits](https://github.com/rsuter/NJsonSchema/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-25 19:36:39 +05:00
Sergey Vasin
a9841d98fa
Make Join-String -InputObject 1,2,3
result equal to 1,2,3 | Join-String
result ( #8611 )
...
Make `Join-String -InputObject 1,2,3` result equal to `1,2,3 | Join-String` result.
Fix #8610
2019-01-24 12:53:37 -08:00
xtqqczze
863528881f
Use https in URLs where available ( #8622 )
...
Use https in URLS across the repository where the domain serves content by https.
2019-01-24 12:50:11 -08:00
Reece Dunham
6ee4521cd3
Update maintainer docs about the CLA PR labels ( #8734 )
2019-01-24 11:46:51 -08:00
dependabot[bot]
60edeb2c76
Build(deps): Bump XunitXml.TestLogger from 2.0.0 to 2.1.26 ( #8731 )
2019-01-24 11:01:24 -08:00
dependabot[bot]
4f3f2fb32e
Build(deps): Bump NJsonSchema from 9.13.15 to 9.13.16 ( #8732 )
...
Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema ) from 9.13.15 to 9.13.16.
- [Release notes](https://github.com/rsuter/NJsonSchema/releases )
- [Commits](https://github.com/rsuter/NJsonSchema/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-24 19:12:06 +05:00
Mark Kraus
0ced5c92f0
Update path of test\xUnit\xUnit.tests.csproj in PowerShell.sln ( #8730 )
2019-01-24 11:45:47 +05:00
Mark Kraus
4590bf3cf9
Ignore files added by SelfSignedCertificate ( #8728 )
...
WebListener module depends on SelfSignedCertificate module and restore it so we should ignore the files in git.
2019-01-24 11:42:20 +05:00
Travis Plunk
2b81a706ae
Add Andrew to the maintainer list ( #8722 )
...
* Add andrew to the maintainer list
* update dictionary
2019-01-23 15:08:53 -08:00
Steve Lee
3a8205018e
Fix Enter-PSHostProcess test to wait until runspace is ready before attempting to enter ( #8725 )
...
This fixes CI test failure in Windows build.
2019-01-23 15:07:34 -08:00
Paul Higinbotham
4a1fc4b382
Remove AMSI unitialized assert and replace with call to uninitialize ( #8713 )
2019-01-23 13:58:23 -08:00
Steve Lee
7e2cd7954f
Add the experimental feature for creating 'Temp:\' drive when FileSystemProvider initializes ( #8696 )
...
Adds Experimental Feature called `PSTempDrive` that, if enabled, creates a PSDrive called `Temp:` that maps to `[System.IO.Path]::GetTempPath()`.
2019-01-23 13:53:04 -08:00
Aditya Patwardhan
ea0b4de90a
Merged PR 6442: Moved the cleanup logic to Restore-PSModuleToBuild
...
Moved the cleanup logic to Restore-PSModuleToBuild
# Conflicts:
# build.psm1
2019-01-23 12:27:44 -08:00
Dongbo Wang
cab8f26386
Generate and deploy reference assembly for Microsoft.PowerShell.Commands.Utility.dll ( #8716 )
...
Update `New-ReferenceAssembly` and `New-UnifiedNugetPackage` to generate reference assembly for `Microsoft.PowerShell.Commands.Utility.dll` and properly deploy it for `Microsoft.PowerShell.Commands.Utility` NuGet package and `Microsoft.PowerShell.SDK` NuGet package.
An incremental step to fix, eventually, #8121
2019-01-23 11:43:18 -08:00
Dongbo Wang
86516ad0b6
Generate and deploy reference assembly for Microsoft.PowerShell.Commands.Utility.dll ( #8716 )
...
Update `New-ReferenceAssembly` and `New-UnifiedNugetPackage` to generate reference assembly for `Microsoft.PowerShell.Commands.Utility.dll` and properly deploy it for `Microsoft.PowerShell.Commands.Utility` NuGet package and `Microsoft.PowerShell.SDK` NuGet package.
An incremental step to fix, eventually, #8121
2019-01-23 11:42:32 -08:00
Dongbo Wang
9ceddc0dfe
Refactor ConvertTo-Json to expose JsonObject.ConvertToJson
as a public API ( #8682 )
...
We have the public API `JsonObject.ConvertFromJson` to convert from JSON string in the PowerShell context. It would be good to have a public API for conversion to JSON. This PR refactors the `ConvertTo-Json` cmdlet to move the core implementation to `JsonObject.ConvertToJson`, and make `ConvertTo-Json` call that public method.
This would help the Azure Function PowerShell worker. Currently, we depends on [calling the cmdlet](729710d259/src/PowerShell/PowerShellManager.cs (L198-L205)
) to convert object to JSON which is expensive. Once we have the public method `JsonObject.ConvertToJson` exposed, we can call the API directly to avoid a command invocation.
# Conflicts:
# test/Test.Common.props
2019-01-23 10:41:19 -08:00
Dongbo Wang
c606b1ca37
Refactor ConvertTo-Json to expose JsonObject.ConvertToJson
as a public API ( #8682 )
...
We have the public API `JsonObject.ConvertFromJson` to convert from JSON string in the PowerShell context. It would be good to have a public API for conversion to JSON. This PR refactors the `ConvertTo-Json` cmdlet to move the core implementation to `JsonObject.ConvertToJson`, and make `ConvertTo-Json` call that public method.
This would help the Azure Function PowerShell worker. Currently, we depends on [calling the cmdlet](729710d259/src/PowerShell/PowerShellManager.cs (L198-L205)
) to convert object to JSON which is expensive. Once we have the public method `JsonObject.ConvertToJson` exposed, we can call the API directly to avoid a command invocation.
2019-01-23 10:39:12 -08:00
Steve Lee
f7c25e8f7c
Update code to use single method to check if path is UNC ( #8680 )
...
update all checks if path is unc to one method
2019-01-23 09:37:45 -08:00
Travis Plunk
c4b2105a73
Merged PR 6648: Bump SDK and Runtime Versions
...
Bump SDK and Runtime Versions
- Also, fix alpine docker file
- Also, fix extra files being added to some Modules after these changes
2019-01-23 02:18:44 +00:00
Andrew
7085d88453
Package validation tests updates ( #8714 )
2019-01-22 17:38:14 -08:00
Paul Higinbotham
0c2a8911d6
Update release process template ( #8711 )
...
* Update release process with latest steps
* Added DevOps artifacts step
* Update .github/ISSUE_TEMPLATE/Release_Process.md
Co-Authored-By: PaulHigin <paulhi@microsoft.com>
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2019-01-22 17:11:39 -08:00
Andrew
3bf8d34f58
Package validation tests updates ( #8714 )
2019-01-22 17:09:39 -08:00
dependabot[bot]
0dff846fe0
Build(deps): Bump Microsoft.PowerShell.Native ( #8712 )
2019-01-22 14:39:34 -08:00
dependabot[bot]
c955f313e4
Build(deps): Bump Microsoft.PowerShell.Native ( #8712 )
2019-01-22 14:35:36 -08:00
Aditya Patwardhan
9e8f5bde33
Merged PR 6644: Update hosting tests and metadata.json for 6.2.0-preview.4 release
...
Update hosting tests and metadata.json for 6.2.0-preview.4 release
2019-01-22 21:43:47 +00:00
Christoph Bergmeister [MVP]
beae5691aa
Do not ship fullclr binaries of PackageManagement ( #8700 )
...
## PR Summary
Related: #8699
## PR Context
Because `PowerShellGet` does not support publishing/saving module on a per platform basis (see [this](https://github.com/PowerShell/PowerShellGet/issues/273 ) issue), PowerShell currently also ships the fullclr binaries of `PackageManagement`, which it does not need. Therefore removing it to minimise the package size, this saves 1.19 MB.
2019-01-22 12:55:22 -08:00
Aditya Patwardhan
cf013dd072
Fix the build for fxdependent build for dotnet sdk ( #8670 )
2019-01-22 11:25:25 -08:00
xtqqczze
1df96c7ed5
Remove broken HelpUri from CimTest ( #8688 )
2019-01-22 11:21:45 -08:00
Travis Plunk
d0d1061ae2
Add Windows build to universal release build YAML ( #8695 )
2019-01-22 11:21:02 -08:00
Mark Kraus
2dd549e34b
Fix Code Page Parsing Isssue in Invoke-RestMethod ( #8694 )
2019-01-22 10:45:40 -08:00
Reece Dunham
bdc3c856a6
Remove un-used AppVeyor links from README.md ( #8685 )
2019-01-20 19:10:59 -08:00