Skip to content

Commit 334cebb

Browse files
committed
temp
1 parent 64024ec commit 334cebb

32 files changed

+19550
-0
lines changed

src/fscorlib/Directory.Build.props

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<Project>
2+
3+
<PropertyGroup>
4+
<UseFSharpPackageVersion>true</UseFSharpPackageVersion>
5+
</PropertyGroup>
6+
7+
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
8+
9+
<PropertyGroup>
10+
<_FSharpBuildTargetFramework Condition="'$(MSBuildRuntimeType)'!='Core'">net472</_FSharpBuildTargetFramework>
11+
<_FSharpBuildTargetFramework Condition="'$(MSBuildRuntimeType)'=='Core'">$(FSharpNetCoreProductTargetFramework)</_FSharpBuildTargetFramework>
12+
<_FSharpBuildBinPath>$(MSBuildThisFileDirectory)..\..\artifacts\bin\fsc\$(Configuration)\$(_FSharpBuildTargetFramework)</_FSharpBuildBinPath>
13+
14+
<FSharpBuildAssemblyFile>$(_FSharpBuildBinPath)\FSharp.Build.dll</FSharpBuildAssemblyFile>
15+
16+
<FSharpTargetsPath>$(_FSharpBuildBinPath)/Microsoft.FSharp.Targets</FSharpTargetsPath>
17+
<FSharpPropsShim>$(_FSharpBuildBinPath)/Microsoft.FSharp.NetSdk.props</FSharpPropsShim>
18+
<FSharpTargetsShim>$(_FSharpBuildBinPath)/Microsoft.FSharp.NetSdk.targets</FSharpTargetsShim>
19+
<FSharpOverridesTargetsShim>$(_FSharpBuildBinPath)/Microsoft.FSharp.Overrides.NetSdk.targets</FSharpOverridesTargetsShim>
20+
21+
</PropertyGroup>
22+
23+
24+
</Project>

src/fscorlib/FSCore.resx

+546
Large diffs are not rendered by default.
+173
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
<linker>
2+
<!--
3+
Attributes listed below here should be behind the 'System.AggressiveAttributeTrimming' feature switch, which
4+
is only enabled by default on app models that need as much size savings as possible.
5+
-->
6+
<assembly fullname="fscorlib" feature="System.AggressiveAttributeTrimming" featurevalue="true">
7+
<!-- Microsoft.FSharp.Core -->
8+
<type fullname="Microsoft.FSharp.Core.AbstractClassAttribute">
9+
<attribute internal="RemoveAttributeInstances" />
10+
</type>
11+
<type fullname="Microsoft.FSharp.Core.AutoOpenAttribute">
12+
<attribute internal="RemoveAttributeInstances" />
13+
</type>
14+
<type fullname="Microsoft.FSharp.Core.AutoSerializableAttribute">
15+
<attribute internal="RemoveAttributeInstances" />
16+
</type>
17+
<type fullname="Microsoft.FSharp.Core.ClassAttribute">
18+
<attribute internal="RemoveAttributeInstances" />
19+
</type>
20+
<type fullname="Microsoft.FSharp.Core.CLIEventAttribute">
21+
<attribute internal="RemoveAttributeInstances" />
22+
</type>
23+
<type fullname="Microsoft.FSharp.Core.CLIMutableAttribute">
24+
<attribute internal="RemoveAttributeInstances" />
25+
</type>
26+
<type fullname="Microsoft.FSharp.Core.ComparisonConditionalOnAttribute">
27+
<attribute internal="RemoveAttributeInstances" />
28+
</type>
29+
<type fullname="Microsoft.FSharp.Core.CompilationArgumentCountsAttribute">
30+
<attribute internal="RemoveAttributeInstances" />
31+
</type>
32+
<type fullname="Microsoft.FSharp.Core.CompilationSourceNameAttribute">
33+
<attribute internal="RemoveAttributeInstances" />
34+
</type>
35+
<type fullname="Microsoft.FSharp.Core.CompiledNameAttribute">
36+
<attribute internal="RemoveAttributeInstances" />
37+
</type>
38+
<type fullname="Microsoft.FSharp.Core.CompilerMessageAttribute">
39+
<attribute internal="RemoveAttributeInstances" />
40+
</type>
41+
<type fullname="Microsoft.FSharp.Core.CustomComparisonAttribute">
42+
<attribute internal="RemoveAttributeInstances" />
43+
</type>
44+
<type fullname="Microsoft.FSharp.Core.CustomEqualityAttribute">
45+
<attribute internal="RemoveAttributeInstances" />
46+
</type>
47+
<type fullname="Microsoft.FSharp.Core.CustomOperationAttribute">
48+
<attribute internal="RemoveAttributeInstances" />
49+
</type>
50+
<type fullname="Microsoft.FSharp.Core.DefaultAugmentationAttribute">
51+
<attribute internal="RemoveAttributeInstances" />
52+
</type>
53+
<type fullname="Microsoft.FSharp.Core.DefaultValueAttribute">
54+
<attribute internal="RemoveAttributeInstances" />
55+
</type>
56+
<type fullname="Microsoft.FSharp.Core.EntryPointAttribute">
57+
<attribute internal="RemoveAttributeInstances" />
58+
</type>
59+
<type fullname="Microsoft.FSharp.Core.EqualityConditionalOnAttribute">
60+
<attribute internal="RemoveAttributeInstances" />
61+
</type>
62+
<type fullname="Microsoft.FSharp.Core.ExperimentalAttribute">
63+
<attribute internal="RemoveAttributeInstances" />
64+
</type>
65+
<type fullname="Microsoft.FSharp.Core.FSharpInterfaceDataVersionAttribute">
66+
<attribute internal="RemoveAttributeInstances" />
67+
</type>
68+
<type fullname="Microsoft.FSharp.Core.GeneralizableValueAttribute">
69+
<attribute internal="RemoveAttributeInstances" />
70+
</type>
71+
<type fullname="Microsoft.FSharp.Core.InlineIfLambdaAttribute">
72+
<attribute internal="RemoveAttributeInstances" />
73+
</type>
74+
<type fullname="Microsoft.FSharp.Core.FSharpInterfaceDataVersionLiteralAttribute">
75+
<attribute internal="RemoveAttributeInstances" />
76+
</type>
77+
<type fullname="Microsoft.FSharp.Core.MeasureAnnotatedAbbreviationAttribute">
78+
<attribute internal="RemoveAttributeInstances" />
79+
</type>
80+
<type fullname="Microsoft.FSharp.Core.MeasureAttribute">
81+
<attribute internal="RemoveAttributeInstances" />
82+
</type>
83+
<type fullname="Microsoft.FSharp.Core.NoComparisonAttribute">
84+
<attribute internal="RemoveAttributeInstances" />
85+
</type>
86+
<type fullname="Microsoft.FSharp.Core.NoCompilerInliningAttribute">
87+
<attribute internal="RemoveAttributeInstances" />
88+
</type>
89+
<type fullname="Microsoft.FSharp.Core.NoDynamicInvocationAttribute">
90+
<attribute internal="RemoveAttributeInstances" />
91+
</type>
92+
<type fullname="Microsoft.FSharp.Core.NoEqualityAttribute">
93+
<attribute internal="RemoveAttributeInstances" />
94+
</type>
95+
<type fullname="Microsoft.FSharp.Core.OptionalArgumentAttribute">
96+
<attribute internal="RemoveAttributeInstances" />
97+
</type>
98+
<type fullname="Microsoft.FSharp.Core.ProjectionParameterAttribute">
99+
<attribute internal="RemoveAttributeInstances" />
100+
</type>
101+
<type fullname="Microsoft.FSharp.Core.ReferenceEqualityAttribute">
102+
<attribute internal="RemoveAttributeInstances" />
103+
</type>
104+
<type fullname="Microsoft.FSharp.Core.ReflectedDefinitionAttribute">
105+
<attribute internal="RemoveAttributeInstances" />
106+
</type>
107+
<type fullname="Microsoft.FSharp.Core.RequireQualifiedAccessAttribute">
108+
<attribute internal="RemoveAttributeInstances" />
109+
</type>
110+
<type fullname="Microsoft.FSharp.Core.RequiresExplicitTypeArgumentsAttribute">
111+
<attribute internal="RemoveAttributeInstances" />
112+
</type>
113+
<type fullname="Microsoft.FSharp.Core.SealedAttribute">
114+
<attribute internal="RemoveAttributeInstances" />
115+
</type>
116+
<type fullname="Microsoft.FSharp.Core.StructAttribute">
117+
<attribute internal="RemoveAttributeInstances" />
118+
</type>
119+
<type fullname="Microsoft.FSharp.Core.StructuralComparisonAttribute">
120+
<attribute internal="RemoveAttributeInstances" />
121+
</type>
122+
<type fullname="Microsoft.FSharp.Core.StructuralEqualityAttribute">
123+
<attribute internal="RemoveAttributeInstances" />
124+
</type>
125+
<type fullname="Microsoft.FSharp.Core.TailCallAttribute">
126+
<attribute internal="RemoveAttributeInstances" />
127+
</type>
128+
<type fullname="Microsoft.FSharp.Core.UnverifiableAttribute">
129+
<attribute internal="RemoveAttributeInstances" />
130+
</type>
131+
<type fullname="Microsoft.FSharp.Core.ValueAsStaticPropertyAttribute">
132+
<attribute internal="RemoveAttributeInstances" />
133+
</type>
134+
<type fullname="Microsoft.FSharp.Core.VolatileFieldAttribute">
135+
<attribute internal="RemoveAttributeInstances" />
136+
</type>
137+
138+
<!-- The following attributes are accessed by FSharp.Core at runtime.
139+
Removing them would cause behavior changes but the feature switch allows them. -->
140+
<type fullname="Microsoft.FSharp.Core.AllowNullLiteralAttribute">
141+
<attribute internal="RemoveAttributeInstances" />
142+
</type>
143+
<type fullname="Microsoft.FSharp.Core.CompilationMappingAttribute">
144+
<attribute internal="RemoveAttributeInstances" />
145+
</type>
146+
<type fullname="Microsoft.FSharp.Core.CompilationRepresentationAttribute">
147+
<attribute internal="RemoveAttributeInstances" />
148+
</type>
149+
<type fullname="Microsoft.FSharp.Core.StructuredFormatDisplayAttribute">
150+
<attribute internal="RemoveAttributeInstances" />
151+
</type>
152+
153+
<!-- Microsoft.FSharp.Core.CompilerServices -->
154+
<type fullname="Microsoft.FSharp.Core.CompilerServices.NoEagerConstraintApplicationAttribute">
155+
<attribute internal="RemoveAttributeInstances" />
156+
</type>
157+
<type fullname="Microsoft.FSharp.Core.CompilerServices.TypeProviderAssemblyAttribute">
158+
<attribute internal="RemoveAttributeInstances" />
159+
</type>
160+
<type fullname="Microsoft.FSharp.Core.CompilerServices.TypeProviderAttribute">
161+
<attribute internal="RemoveAttributeInstances" />
162+
</type>
163+
<type fullname="Microsoft.FSharp.Core.CompilerServices.TypeProviderDefinitionLocationAttribute">
164+
<attribute internal="RemoveAttributeInstances" />
165+
</type>
166+
<type fullname="Microsoft.FSharp.Core.CompilerServices.TypeProviderEditorHideMethodsAttribute">
167+
<attribute internal="RemoveAttributeInstances" />
168+
</type>
169+
<type fullname="Microsoft.FSharp.Core.CompilerServices.TypeProviderXmlDocAttribute">
170+
<attribute internal="RemoveAttributeInstances" />
171+
</type>
172+
</assembly>
173+
</linker>

src/fscorlib/ILLink.Substitutions.xml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<linker>
2+
<assembly fullname="fscorlib">
3+
<resource name="FSharpOptimizationCompressedData.FSharp.Core" action="remove" />
4+
<resource name="FSharpOptimizationInfo.FSharp.Core" action="remove" />
5+
<resource name="FSharpSignatureCompressedData.FSharp.Core" action="remove" />
6+
<resource name="FSharpSignatureInfo.FSharp.Core" action="remove" />
7+
</assembly>
8+
</linker>

src/fscorlib/fscorlib.fsproj

+154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. -->
3+
<Project Sdk="Microsoft.NET.Sdk">
4+
5+
<PropertyGroup>
6+
<OutputType>Library</OutputType>
7+
<TargetFrameworks Condition="'$(Configuration)' == 'Proto'">netstandard2.0</TargetFrameworks>
8+
<TargetFrameworks Condition="'$(Configuration)' != 'Proto'">netstandard2.0;netstandard2.1</TargetFrameworks>
9+
<NoWarn>$(NoWarn);62</NoWarn> <!-- ML Compat -->
10+
<NoWarn>$(NoWarn);75</NoWarn> <!-- InternalCommandLineOption -->
11+
<NoWarn>$(NoWarn);1204</NoWarn> <!-- This construct is for use in the FSharp.Core library and should not be used directly -->
12+
<AllowCrossTargeting>true</AllowCrossTargeting>
13+
<DefineConstants>$(DefineConstants);FSHARP_CORE</DefineConstants>
14+
<!-- 3218: ArgumentsInSigAndImplMismatch -->
15+
<OtherFlags>$(OtherFlags) --warnon:3218</OtherFlags>
16+
<!-- 1182: Unused variables -->
17+
<OtherFlags>$(OtherFlags) --warnon:1182</OtherFlags>
18+
<!-- 3390: xmlDocBadlyFormed -->
19+
<OtherFlags>$(OtherFlags) --warnon:3390</OtherFlags>
20+
<!-- 3520: invalidXmlDocPosition -->
21+
<OtherFlags>$(OtherFlags) --warnon:3520</OtherFlags>
22+
<!-- Turn off 57: Use of construct with Experimental attribute -->
23+
<OtherFlags>$(OtherFlags) --nowarn:57</OtherFlags>
24+
<!-- Turn off 3511: state machine not compilable - expected for inlined functions defining state machine generators -->
25+
<OtherFlags>$(OtherFlags) --nowarn:3511</OtherFlags>
26+
<!-- Turn off 3513: resumable code invocation' - expected for resumable code combinators -->
27+
<OtherFlags>$(OtherFlags) --nowarn:3513</OtherFlags>
28+
<OtherFlags>$(OtherFlags) --compiling-fslib --maxerrors:100 --extraoptimizationloops:1</OtherFlags>
29+
<!-- .tail annotations always emitted for this binary, even in debug mode -->
30+
<Tailcalls>true</Tailcalls>
31+
<PreRelease>true</PreRelease>
32+
<Configurations>Debug;Release;Proto</Configurations>
33+
</PropertyGroup>
34+
35+
<!-- .FSharp.Core always uses the old style initialization mechanism because of SQL CLR requirements -->
36+
<PropertyGroup Condition="'$(BUILDING_USING_DOTNET)' != 'true' and '$(Configuration)' != 'Proto'">
37+
<OtherFlags>$(OtherFlags) --realsig+</OtherFlags>
38+
</PropertyGroup>
39+
40+
<!-- The FSharp.Core dll provides a referencable public interface -->
41+
<PropertyGroup Condition="'$(Configuration)' != 'Proto'">
42+
<NoOptimizationData>false</NoOptimizationData>
43+
<NoInterfaceData>false</NoInterfaceData>
44+
<CompressMetadata>true</CompressMetadata>
45+
</PropertyGroup>
46+
47+
<!-- When we build FCS solution and we include FSCore as reference, set path explicitly -->
48+
<PropertyGroup Condition="'$(BUILDING_USING_DOTNET)' == 'true'">
49+
<OutputPath>$(ArtifactsDir)/bin/$(MSBuildProjectName)/$(Configuration)/</OutputPath>
50+
<IntermediateOutputPath>$(ArtifactsDir)obj/$(MSBuildProjectName)/$(Configuration)/</IntermediateOutputPath>
51+
</PropertyGroup>
52+
53+
<ItemGroup>
54+
<EmbeddedResource Update="FSCore.resx">
55+
<GenerateSource>true</GenerateSource>
56+
<GenerateLegacyCode>true</GenerateLegacyCode>
57+
<GenerateLiterals>false</GenerateLiterals>
58+
<GeneratedModuleName>Microsoft.FSharp.Core.SR</GeneratedModuleName>
59+
<Link>FSCore.resx</Link>
60+
</EmbeddedResource>
61+
<EmbeddedResource Include="ILLink.LinkAttributes.xml" LogicalName="ILLink.LinkAttributes.xml" />
62+
<EmbeddedResource Include="ILLink.Substitutions.xml" LogicalName="ILLink.Substitutions.xml" />
63+
</ItemGroup>
64+
<ItemGroup Condition="'$(Configuration)' == 'Proto' or '$(BUILDING_USING_DOTNET)' == 'true'">
65+
<!-- This can be removed once CompileBefore support is shipped in an rtm relase -->
66+
<CompileBefore Include="..\FSharp.Core\prim-types-prelude.fsi" />
67+
<CompileBefore Include="..\FSharp.Core\prim-types-prelude.fs" />
68+
</ItemGroup>
69+
<ItemGroup Condition="'$(Configuration)' != 'Proto' and '$(BUILDING_USING_DOTNET)' != 'true'">
70+
<Compile Include="..\FSharp.Core\prim-types-prelude.fsi" CompileOrder="CompileFirst" />
71+
<Compile Include="..\FSharp.Core\prim-types-prelude.fs" CompileOrder="CompileFirst" />
72+
</ItemGroup>
73+
<ItemGroup>
74+
<Compile Include="..\FSharp.Core\prim-types.fsi" />
75+
<Compile Include="..\FSharp.Core\prim-types.fs" />
76+
<Compile Include="..\FSharp.Core\Random.fsi" />
77+
<Compile Include="..\FSharp.Core\Random.fs" />
78+
<Compile Include="..\FSharp.Core\local.fsi" />
79+
<Compile Include="..\FSharp.Core\local.fs" />
80+
<Compile Include="..\FSharp.Core\option.fsi" />
81+
<Compile Include="..\FSharp.Core\option.fs" />
82+
<Compile Include="..\FSharp.Core\result.fsi" />
83+
<Compile Include="..\FSharp.Core\result.fs" />
84+
<Compile Include="..\FSharp.Core\collections.fsi" />
85+
<Compile Include="..\FSharp.Core\collections.fs" />
86+
<Compile Include="..\FSharp.Core\seqcore.fsi" />
87+
<Compile Include="..\FSharp.Core\seqcore.fs" />
88+
<Compile Include="..\FSharp.Core\seq.fsi" />
89+
<Compile Include="..\FSharp.Core\seq.fs" />
90+
<Compile Include="..\FSharp.Core\string.fsi" />
91+
<Compile Include="..\FSharp.Core\string.fs" />
92+
<Compile Include="..\FSharp.Core\list.fsi" />
93+
<Compile Include="..\FSharp.Core\list.fs" />
94+
<Compile Include="..\FSharp.Core\array.fsi" />
95+
<Compile Include="..\FSharp.Core\array.fs" />
96+
<Compile Include="..\FSharp.Core\array2.fsi" />
97+
<Compile Include="..\FSharp.Core\array2.fs" />
98+
<Compile Include="..\FSharp.Core\array3.fsi" />
99+
<Compile Include="..\FSharp.Core\array3.fs" />
100+
<Compile Include="..\FSharp.Core\map.fsi" />
101+
<Compile Include="..\FSharp.Core\map.fs" />
102+
<Compile Include="..\FSharp.Core\set.fsi" />
103+
<Compile Include="..\FSharp.Core\set.fs" />
104+
<Compile Include="..\FSharp.Core\collectionextensions.fsi" />
105+
<Compile Include="..\FSharp.Core\collectionextensions.fs" />
106+
<Compile Include="..\FSharp.Core\reflect.fsi" />
107+
<Compile Include="..\FSharp.Core\reflect.fs" />
108+
<Compile Include="..\FSharp.Core\math\z.fsi" />
109+
<Compile Include="..\FSharp.Core\math\z.fs" />
110+
<Compile Include="..\FSharp.Core\..\Compiler\Utilities\sformat.fsi" />
111+
<Compile Include="..\FSharp.Core\..\Compiler\Utilities\sformat.fs" />
112+
<Compile Include="..\FSharp.Core\printf.fsi" />
113+
<Compile Include="..\FSharp.Core\printf.fs" />
114+
<Compile Include="..\FSharp.Core\quotations.fsi" />
115+
<Compile Include="..\FSharp.Core\quotations.fs" />
116+
<Compile Include="..\FSharp.Core\nativeptr.fsi" />
117+
<Compile Include="..\FSharp.Core\nativeptr.fs" />
118+
<Compile Include="..\FSharp.Core\event.fsi" />
119+
<Compile Include="..\FSharp.Core\event.fs" />
120+
<Compile Include="..\FSharp.Core\resumable.fsi" />
121+
<Compile Include="..\FSharp.Core\resumable.fs" />
122+
<Compile Include="..\FSharp.Core\async.fsi" />
123+
<Compile Include="..\FSharp.Core\async.fs" />
124+
<Compile Include="..\FSharp.Core\tasks.fsi" />
125+
<Compile Include="..\FSharp.Core\tasks.fs" />
126+
<Compile Include="..\FSharp.Core\eventmodule.fsi" />
127+
<Compile Include="..\FSharp.Core\eventmodule.fs" />
128+
<Compile Include="..\FSharp.Core\observable.fsi" />
129+
<Compile Include="..\FSharp.Core\observable.fs" />
130+
<Compile Include="..\FSharp.Core\mailbox.fsi" />
131+
<Compile Include="..\FSharp.Core\mailbox.fs" />
132+
<Compile Include="..\FSharp.Core\Nullable.fsi" />
133+
<Compile Include="..\FSharp.Core\Nullable.fs" />
134+
<Compile Include="..\FSharp.Core\Linq.fsi" />
135+
<Compile Include="..\FSharp.Core\Linq.fs" />
136+
<Compile Include="..\FSharp.Core\MutableTuple.fs" />
137+
<Compile Include="..\FSharp.Core\QueryExtensions.fs" />
138+
<Compile Include="..\FSharp.Core\Query.fsi" />
139+
<Compile Include="..\FSharp.Core\Query.fs" />
140+
<Compile Include="..\FSharp.Core\SI.fs" />
141+
<Compile Include="..\FSharp.Core\fslib-extra-pervasives.fsi" />
142+
<Compile Include="..\FSharp.Core\fslib-extra-pervasives.fs" />
143+
</ItemGroup>
144+
145+
<Target Name="CopyToBuiltBin" BeforeTargets="BuiltProjectOutputGroup" AfterTargets="CoreCompile">
146+
<PropertyGroup>
147+
<BuildOutputGroupLocation>$(BaseOutputPath)\$(Configuration)\$(TargetFramework)</BuildOutputGroupLocation>
148+
</PropertyGroup>
149+
<ItemGroup>
150+
<BuiltProjectOutputGroupKeyOutput Include="$(BuildOutputGroupLocation)\fscorlib.xml" />
151+
</ItemGroup>
152+
</Target>
153+
154+
</Project>
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"runtimeOptions": {}
3+
}

0 commit comments

Comments
 (0)