Skip to content
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

It seems that global.json is ignored, causing a runtime MethodAccessException in F# due to using a specific SDK. #17992

Open
vsfeedback opened this issue Nov 11, 2024 · 0 comments
Assignees
Labels
Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:I’m unable to use this version] [regression]
MethodAccessException on equality comparison of a record with private fields but only when building from visual studio (17.11.5).
This is a known issue related to a bug in the SDK, see the following github issue 17447.

However the SDK should be pinned at 8.0.300 by the global.json file, this SDK version should not have this problem.
When building using dotnet build from the command line, this problem does not exist so it seems in that case the correct sdk (specified in global.json) is used.

Please find more details, reproduction repository and discussion in the following github issue 17925.
I attached the binlog of a clean build of the reproduction repository.


Original Comments

Feedback Bot on 11/1/2024, 02:22 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

Okke Hendriks solved on 10/31/2024, 10:49 AM, undefined votes:

Use dotnet build from the command line instead.

@github-actions github-actions bot added this to the Backlog milestone Nov 11, 2024
@abonie abonie added Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code. and removed Needs-Triage labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.
Projects
Status: New
Development

No branches or pull requests

3 participants