@@ -1609,7 +1609,38 @@ let SystemAssemblies primaryAssemblyName =
1609
1609
yield " System.Core"
1610
1610
yield " System.Runtime"
1611
1611
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
+ ]
1613
1644
1614
1645
// The set of references entered into the TcConfigBuilder for scripts prior to computing
1615
1646
// the load closure.
@@ -2673,8 +2704,7 @@ type TcConfig private (data : TcConfigBuilder,validate:bool) =
2673
2704
/// is a resource that can be shared between any two IncrementalBuild objects that reference
2674
2705
/// precisely S
2675
2706
///
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# .
2678
2708
///
2679
2709
/// Returning true may mean that the file is locked and/or placed into the
2680
2710
/// 'framework' reference set that is potentially shared across multiple compilations.
@@ -2724,7 +2754,7 @@ type TcConfig private (data : TcConfigBuilder,validate:bool) =
2724
2754
let resolved = TryResolveFileUsingPaths( searchPaths, m, nm)
2725
2755
match resolved with
2726
2756
| Some( resolved) ->
2727
- let sysdir = true (* tcConfig.IsSystemAssembly resolved *)
2757
+ let sysdir = tcConfig.IsSystemAssembly resolved
2728
2758
let fusionName =
2729
2759
if isNetModule then " "
2730
2760
else
@@ -2899,7 +2929,7 @@ type TcConfig private (data : TcConfigBuilder,validate:bool) =
2899
2929
resolvedFrom= resolvedFile.resolvedFrom;
2900
2930
fusionName= resolvedFile.fusionName
2901
2931
redist= resolvedFile.redist;
2902
- sysdir= true (* tcConfig.IsSystemAssembly canonicalItemSpec *) ;
2932
+ sysdir= tcConfig.IsSystemAssembly canonicalItemSpec;
2903
2933
ilAssemblyRef = ref None})
2904
2934
( maxIndexOfReference, assemblyResolutions))
2905
2935
0 commit comments