Skip to content

Visual Studio selects the highest version of the sdk installed on the machine when executing scripts in FSI #17307

Open
@KevinRansom

Description

@KevinRansom

This is incorrect behavior, it should select the version of the Sdk that shipped with the VS being executed.

image

Edited:
Okay, the current Fsi behaviour is this, if you start with send to interactive, it uses a global.son when present in the same directory as the script to figure out which Sdk to use.
If you specify nothing it does not use a global.json instead it selects the highest framework installed, which is slightly different to what the Sdk does, it selects the Sdk that was shipped with VS.

I propose changing the no global.json specified mechanism to use the version shipped with that VS. To change the specified VS add a script and include a global.json in the directory containing the script:

When you start an F# interactive session in VS you see this:
image

Metadata

Metadata

Assignees

Labels

Area-VS-FSIVS window and commands for F# InteractiveBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

Type

Projects

Status

New

Relationships

None yet

Development

No branches or pull requests

Issue actions