Skip to content

Commit 4206a5d

Browse files
committed
restore framework types and add netfx dependencies to framework assemblies list
1 parent c37c8b0 commit 4206a5d

File tree

1 file changed

+35
-5
lines changed

1 file changed

+35
-5
lines changed

src/fsharp/build.fs

+35-5
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,38 @@ let SystemAssemblies primaryAssemblyName =
16091609
yield "System.Core"
16101610
yield "System.Runtime"
16111611
yield "System.Observable"
1612-
yield "System.Numerics"]
1612+
yield "System.Numerics"
1613+
1614+
// Additions for coreclr and portable profiles
1615+
yield "System.Collections"
1616+
yield "System.Collections.Concurrent"
1617+
yield "System.Console"
1618+
yield "System.Diagnostics.Debug"
1619+
yield "System.Diagnostics.Tools"
1620+
yield "System.Globalization"
1621+
yield "System.IO"
1622+
yield "System.Linq"
1623+
yield "System.Linq.Expressions"
1624+
yield "System.Linq.Queryable"
1625+
yield "System.Net.Requests"
1626+
yield "System.Reflection"
1627+
yield "System.Reflection.Emit"
1628+
yield "System.Reflection.Emit.ILGeneration"
1629+
yield "System.Reflection.Extensions"
1630+
yield "System.Resources.ResourceManager"
1631+
yield "System.Runtime.Extensions"
1632+
yield "System.Runtime.InteropServices"
1633+
yield "System.Runtime.Numerics"
1634+
yield "System.Text.Encoding"
1635+
yield "System.Text.Encoding.Extensions"
1636+
yield "System.Text.RegularExpressions"
1637+
yield "System.Threading"
1638+
yield "System.Threading.Tasks"
1639+
yield "System.Threading.Tasks.Parallel"
1640+
yield "System.Threading.Thread"
1641+
yield "System.Threading.ThreadPool"
1642+
yield "System.Threading.Timer"
1643+
]
16131644

16141645
// The set of references entered into the TcConfigBuilder for scripts prior to computing
16151646
// the load closure.
@@ -2673,8 +2704,7 @@ type TcConfig private (data : TcConfigBuilder,validate:bool) =
26732704
/// is a resource that can be shared between any two IncrementalBuild objects that reference
26742705
/// precisely S
26752706
///
2676-
/// Determined by looking at the set of assemblies in the framework assemblies directory, plus the
2677-
/// F# core library.
2707+
/// Determined by looking at the set of assemblies referenced by f# .
26782708
///
26792709
/// Returning true may mean that the file is locked and/or placed into the
26802710
/// 'framework' reference set that is potentially shared across multiple compilations.
@@ -2724,7 +2754,7 @@ type TcConfig private (data : TcConfigBuilder,validate:bool) =
27242754
let resolved = TryResolveFileUsingPaths(searchPaths,m,nm)
27252755
match resolved with
27262756
| Some(resolved) ->
2727-
let sysdir = true (* tcConfig.IsSystemAssembly resolved *)
2757+
let sysdir = tcConfig.IsSystemAssembly resolved
27282758
let fusionName =
27292759
if isNetModule then ""
27302760
else
@@ -2899,7 +2929,7 @@ type TcConfig private (data : TcConfigBuilder,validate:bool) =
28992929
resolvedFrom=resolvedFile.resolvedFrom;
29002930
fusionName=resolvedFile.fusionName
29012931
redist=resolvedFile.redist;
2902-
sysdir= true (*tcConfig.IsSystemAssembly canonicalItemSpec *) ;
2932+
sysdir= tcConfig.IsSystemAssembly canonicalItemSpec;
29032933
ilAssemblyRef = ref None})
29042934
(maxIndexOfReference, assemblyResolutions))
29052935

0 commit comments

Comments
 (0)