-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Move to latest .NET Core and enable -SkipCertificateCheck on OSX
#3887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@SteveL-MSFT I think it would be good to have @JamesWTruher I update |
|
@daxian-dbw we should hold this til after beta.2 if VSCode support isn't ready |
SteveL-MSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Fix is ready in OmniSharp v1.11.0-beta2 for Windows only. |
|
@SteveL-MSFT The VSCode C# extension released There are instructions for installing beta releases of C# extension (dotnet/vscode-csharp#1495 (comment)). Do you think we can accept this PR without the official release of |
|
@daxian-dbw I think the number of people actively using VSCode and PSCore6 is probably small, however, how will they find out to install the Beta? |
|
The instructions for installing beta releases are listed here: https://github.com/OmniSharp/omnisharp-vscode/wiki/Installing-Beta-Releases. However, we probably need to temporarily put it in the README of powershell repo to allow contributors to easily find how to develop powershell core with VSCode. And, maybe also convey the message in twitter? |
|
I can put out the message on Twitter once we update the README |
|
OK, I will update this PR to use a more recent 2.0.0-preview2 build and update the README. |
|
In the last six months, I had to put an OmniSharp Beta on twice because of problems that were not related to PowerShell Core. I believe anyone will find the OmniSharp discussion easy. |
|
PR has been updated to use the most recent 2.0.0-preview2 build. I have verified the |
|
It seems https://github.com/dotnet/corefx/issues/20456 fixed. Maybe already in 2.0.0-preview3-25413-01 ? |
|
OmniSharp was fixed dotnet/vscode-csharp#1495 - Beta4. |
Fix #3648
Summary
A workaround has been made in .NET Core to allow accept any certificate: https://github.com/dotnet/corefx/issues/19709
To enable
-SkipCertificateCheckin web cmdlets, we need to move to the latest .NET Core, and also useHttpClientHandler.DangerousAcceptAnyServerCertificateValidatoras the callback delegate.New Issues
There are 2 problems with the latest .NET Core:
FileSystemInfo.Attributecauses 2 tests to fail on Unix platforms. https://github.com/dotnet/corefx/issues/20456 was filed to track the behavior change. These 2 tests are currently marked as-Pendingfor now.2.0.0-preview2-*SDK. When using2.0.0-preview2packages and dotnet-cli, you will get aMissingMethodExceptionopening the project in VSCode (see below). This is tracked by Failure with .NET Core 2.0.0-preview2 SDK dotnet/vscode-csharp#1495, and hopefully will be addressed this week according to this comment: Failure with .NET Core 2.0.0-preview2 SDK dotnet/vscode-csharp#1495 (comment)