Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
default references now have full path
  • Loading branch information
KevinRansom committed Mar 29, 2019
commit d1105b6a907332a9ff470a552d98bdb5b230bc70
4 changes: 2 additions & 2 deletions src/fsharp/CompileOps.fs
Original file line number Diff line number Diff line change
Expand Up @@ -3504,7 +3504,7 @@ type TcAssemblyResolutions(tcConfig: TcConfig, results: AssemblyResolution list,
let assumeDotNetFramework = primaryReference.SimpleAssemblyNameIs("mscorlib")
if tcConfig.framework then
for s in defaultReferencesForScriptsAndOutOfProjectSources assumeDotNetFramework do
yield AssemblyReference(rangeStartup, (if s.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) then s else s+".dll"), None)
yield AssemblyReference(rangeStartup, s, None)

if tcConfig.useFsiAuxLib then
let name = Path.Combine(tcConfig.fsharpBinariesDir, getFsiLibraryName + ".dll")
Expand Down Expand Up @@ -4896,7 +4896,7 @@ module private ScriptPreprocessClosure =
applyCommandLineArgs tcConfigB

match basicReferences with
| None -> (basicReferencesForScriptLoadClosure useFsiAuxLib assumeDotNetFramework) |> List.iter(fun f->tcConfigB.AddReferencedAssemblyByPath(range0, f)) // Add script references
| None -> basicReferencesForScriptLoadClosure (useFsiAuxLib assumeDotNetFramework) |> List.iter(fun f->tcConfigB.AddReferencedAssemblyByPath(range0, f)) // Add script references
| Some rs -> for m, r in rs do tcConfigB.AddReferencedAssemblyByPath(m, r)

tcConfigB.resolutionEnvironment <-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ type private ProjectSiteOfSingleFile(sourceFile) =
let assumeDotNetFramework = true
let defaultReferences =
[ for r in CompilerEnvironment.DefaultReferencesForOrphanSources(assumeDotNetFramework) do
yield sprintf "-r:%s%s" r (if r.EndsWith(".dll",StringComparison.OrdinalIgnoreCase) then "" else ".dll") ]
yield sprintf "-r:%s" r ]
(flags @ defaultReferences)
|> List.toArray
|> Array.choose (fun flag -> if flag.StartsWith("-r:") then Some flag.[3..] elif flag.StartsWith("--reference:") then Some flag.[12..] else None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ type private ProjectSiteOfSingleFile(sourceFile) =
let assumeDotNetFramework = true
let defaultReferences =
[ for r in CompilerEnvironment.DefaultReferencesForOrphanSources(assumeDotNetFramework) do
yield sprintf "-r:%s%s" r (if r.EndsWith(".dll",StringComparison.OrdinalIgnoreCase) then "" else ".dll") ]
yield sprintf "-r:%s" r ]
(flags @ defaultReferences)
|> List.toArray
|> Array.choose (fun flag -> if flag.StartsWith("-r:") then Some flag.[3..] elif flag.StartsWith("--reference:") then Some flag.[12..] else None)
Expand Down