Skip to content

Commit ce8cf73

Browse files
authored
Auto-set FSharpCompilerPath when debugging VisualFSharpDebug VSIX (#19083)
1 parent 0e96924 commit ce8cf73

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

vsintegration/Vsix/Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<VisualStudioInsertionComponent>Microsoft.FSharp</VisualStudioInsertionComponent>
77
<VSRootSuffix>RoslynDev</VSRootSuffix>
88
<VSSDKTargetPlatformRegRootSuffix>$(VSRootSuffix)</VSSDKTargetPlatformRegRootSuffix>
9+
<!-- Path to the locally built F# compiler for use during VSIX debugging -->
10+
<FSharpCompilerPathForDebuggingLocally>$(ArtifactsDir)bin\fscAnyCpu\$(Configuration)\net472\</FSharpCompilerPathForDebuggingLocally>
911
<CreateVsixContainer>true</CreateVsixContainer>
1012
<PublishUrl>publish\</PublishUrl>
1113
<Install>true</Install>

vsintegration/Vsix/VisualFSharpFull/Properties/launchSettings.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@
33
"VisualFSharpDebug": {
44
"commandName": "Executable",
55
"executablePath": "$(DevEnvDir)devenv.exe",
6-
"commandLineArgs": "/rootsuffix $(VSSDKTargetPlatformRegRootSuffix) /log"
6+
"commandLineArgs": "/rootsuffix $(VSSDKTargetPlatformRegRootSuffix) /log",
7+
"environmentVariables": {
8+
"FSharpCompilerPath": "$(FSharpCompilerPathForDebuggingLocally)",
9+
"DisableAutoSetFscCompilerPath": "true",
10+
"FSharpPreferNetFrameworkTools": "true",
11+
"FSharp_Shim_Present": "true",
12+
"FSharpPreferAnyCpuTools": "true",
13+
"Fsc_NetFramework_ToolPath": "$(FSharpCompilerPathForDebuggingLocally)",
14+
"Fsc_NetFramework_AnyCpu_ToolExe": "fscAnyCpu.exe"
15+
}
716
}
817
}
918
}

0 commit comments

Comments
 (0)