dotnet / dotnet/fsharp

Crash when accessing resx from Visual Studio F# Interactive in .NET Framework mode

Open
#12,369 2 comments 0 reactions 0 assignees View on GitHub
AI-thinks-windows-only Area-FSI Bug Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

When using F# Interactive in Visual Studio in .NET Framework mode programmatically accessing resx file crashes the session (stack overflow)

**Repro steps**

Using either VS 2019 16.11.6 or VS 2022 in .Net Framework mode

1. F# Interactive
2. resx file looks like this (relevant part):
![image](https://user-images.githubusercontent.com/94064801/141143192-ac1a826d-94f6-41c1-9c53-50b9d77f4e86.png)

Calling Code that accesses e.g. Resources.BaseUnits crashes the session
"Process is terminated due to StackOverflowException."

Worked in versions before VS 2019 16.11.5 and also in F# Interactive in .Net Core mode.

**Expected behavior**

Can access resx file as in prior versions.

**Actual behavior**

stack overflow exception

**Known workarounds**

-

**Related information**

Provide any related information (optional):

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.