-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Remove try/catch around IsSupported property #41123
Remove try/catch around IsSupported property #41123
Conversation
@SteveSandersonMS IsSupported for QUIC has been updated to no longer throw on unsupported platforms: dotnet/runtime#67036 Is there a simple way for you to test/verify? I'd hate to remove the try/catch just to break your scenario again. |
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.
@JamesNK Thanks for checking. Yes, it appears to work fine without the try/catch now.
This is based on me manually building stuff and overwriting assemblies in my local SDK, so it's possible I got something wrong, but it did just work so I'm reasonably confident.
Thanks for your contribution, @samiizadeh! |
@mkArtakMSFT , @SteveSandersonMS
|
Hi @delneg. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
@SteveSandersonMS Could you double check whether this is working or not? |
Upd: I've tried preview 3 (as mentioned here https://www.strathweb.com/2022/03/running-net-7-apps-on-wasi-on-arm64-mac/) and it works fine with |
Hi @delneg. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
@delneg Can build the app as self-contained and check the System.Net.Quic.dll deployed to the publish directory with ILSpy? Even for unsupported platforms, the |
Hi @rzikm. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
Yes, it's working for me on 7.0.100-preview.4.22252.9. Verified on Windows and Linux (Ubuntu in WSL2). @rzikm To diagnose, I'd recommend:
|
FYI Just tested on macOS arm64 (M1) with preview4, also doesn't work
|
Hi @delneg. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
@rzikm I'm not sure what ILSpy should be used for (and how, never used it) though |
Hi @delneg. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
It is a dissassemlber tool for .NET assemblies, but I didn't realise that you are on OSX, ILSpy is Windows only. Regardless, based on size I believe it uses the right assembly (the one with full implementation, not PNSE throwing stubs). Can you upload the binlog as SteveSandersonMS requested? Edit: I am unable to reproduce this with 7.0.100-preview.5.22267.11 on Linux |
Hi @rzikm. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
OK, I tracked this down. The existing 0.1.0 version of I've just pushed a new 0.1.1 of (The reason it seemed working to me even before is that I was using an up-to-date build from sources which already contained this change. Sorry for the confusion!) |
@SteveSandersonMS Thanks, I can confirm that the issue was indeed related to Wasi.Sdk Now it works for me on macOS x64 with 7.0.100-preview.5.22267.11 |
Hi @delneg. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
Description
Remove try/catch around IsSupported property
Fixes #41042