| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Not sure why XUnit tests are failing as it doesn't seem the changes here should have that effect so still investigating but repros locally. |
Sorry, something went wrong.
|
The remaining Codacy issues are by-design as I don't want to #if out those members and code referring to them making it harder to read |
Sorry, something went wrong.
|
@PowerShell/powershell-committee reviewed this, since the code exists for the PInvokes and we prefer consistency across different platforms, we agreed to remove dependency on WinForms and wait for feedback if any customer needs -Format |
Sorry, something went wrong.
|
Sorry, something went wrong.
|
Remaining Codacy issues are by-design |
Sorry, something went wrong.
|
Please fix CodeFactor issues. |
Sorry, something went wrong.
|
PoshChan-Bot (@PoshChan) please retry static |
Sorry, something went wrong.
|
Steve Lee (@SteveL-MSFT), successfully started retry of PowerShell-CI-static-analysis |
Sorry, something went wrong.
| @@ -0,0 +1,386 @@ | |||
| // Copyright (c) Microsoft Corporation. All rights reserved. | |||
There was a problem hiding this comment.
| // Copyright (c) Microsoft Corporation. All rights reserved. | |
| // Copyright (c) Microsoft Corporation. |
Sorry, something went wrong.
| @@ -0,0 +1,45 @@ | |||
| # Copyright (c) Microsoft Corporation. All rights reserved. | |||
There was a problem hiding this comment.
| # Copyright (c) Microsoft Corporation. All rights reserved. | |
| # Copyright (c) Microsoft Corporation. |
Sorry, something went wrong.
|
🎉v7.0.0-preview.6 has been released which incorporates this pull request.:tada: Handy links: |
Sorry, something went wrong.
…10340) Co-Authored-By: Ilya <darpa@yandex.ru> Co-Authored-By: Ilya <darpa@yandex.ru>
| Back | FazBrowse Home | New Git URL |
PR Summary
Re-enabled the existing Clipboard code for Windows which relies on the Clipboard class from WinForms. For Linux, it requires xclip and macOS pbcopy and pbpaste. Had to #ifdef out a bunch of code that only works on Windows for copy/pasting non-text types. On Linux/macOS, decided to retain the parameters even if not supported to provide a more detailed error message.
Had to modify typegen as one of the types in Winforms being used has no HashAlgorithm so typegen threw. Instead, it skips assemblies where no HashAlgorithm is used which appears to only be an Accessibility assembly associated with WinForms.
To support win-arm builds, creating new WINFORMS def in csproj and uses clip.exe to set the clipboard, but no cmdline tool on win-arm to get contents of clipboard so had to disable all tests on win-arm since it depends on getting content out.
To support PSXunit tests, default to Microsoft.NET.Sdk if SDKToUse is not explicitly defined.
PR Context
Fix #4307
PR Checklist