We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parenta8201de commit7c02652Copy full SHA for 7c02652
src/fsharp/build.fs
@@ -2708,6 +2708,10 @@ type TcConfig private (data : TcConfigBuilder,validate:bool) =
2708
|| isNetModulethen
2709
2710
letsearchPaths=
2711
+// if this is a #r reference (not from dummy range), make sure the directory of the declaring
2712
+// file is included in the search path. This should ideally already be one of the search paths, but
2713
+// during some global checks it won't be. We append to the end of the search list so that this is the last
2714
+// place that is checked.
2715
if m<> range0&& m<> rangeStartup&& m<> rangeCmdArgs&& FileSystem.IsPathRootedShim m.FileNamethen
2716
tcConfig.SearchPathsForLibraryFiles@[Path.GetDirectoryName(m.FileName)]
2717
else