1
- <?xml version =" 1.0" encoding =" utf-8" ?>
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Project ToolsVersion =" 12.0" DefaultTargets =" Build" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
-
4
3
<!-- Always use latest Roslyn compiler -->
5
4
<Import Project =" ..\..\Tools\net45\roslyn\build\Microsoft.Net.Compilers.props" Condition =" '$(OS)'=='Windows_NT'" />
6
-
7
5
<Import Project =" $(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition =" Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
8
-
9
6
<!-- Include common build properties -->
10
7
<Import Project =" ..\..\dir.props" />
11
-
12
8
<!-- Compilation options -->
13
9
<PropertyGroup >
14
10
<AvailablePlatforms >amd64,x86,arm,armel,arm64</AvailablePlatforms >
19
15
<Platform Condition =" '$(Platform)' == 'x64' " >amd64</Platform >
20
16
<Platform Condition =" '$(Platform)' == 'armel' " >arm</Platform >
21
17
<ProjectGuid >{3DA06C3A-2E7B-4CB7-80ED-9B12916013F9}</ProjectGuid >
22
-
23
18
<OutputType >Library</OutputType >
24
19
<AllowUnsafeBlocks >true</AllowUnsafeBlocks >
25
-
26
20
<!-- This prevents the default MsBuild targets from referencing System.Core.dll -->
27
21
<AddAdditionalExplicitAssemblyReferences >false</AddAdditionalExplicitAssemblyReferences >
28
22
<!-- These prevent the default MsBuild targets from referencing System.dll and mscorlib.dll -->
29
23
<NoStdLib >true</NoStdLib >
30
24
<NoCompilerStandardLib >true</NoCompilerStandardLib >
31
-
32
25
<SubsystemVersion >6.00</SubsystemVersion >
33
26
<UTF8OutPut >true</UTF8OutPut >
34
27
<HighEntropyVA >true</HighEntropyVA >
39
32
<WarningsNotAsErrors >$(WarningsNotAsErrors);618</WarningsNotAsErrors >
40
33
<NoWarn >649,3019,414,169,3015</NoWarn >
41
34
<GenerateTargetFrameworkAttribute >false</GenerateTargetFrameworkAttribute >
42
-
43
35
<SignAssembly >true</SignAssembly >
44
36
<DelaySign >true</DelaySign >
45
-
46
37
<DefineConstants >$(DefineConstants);CORECLR;_USE_NLS_PLUS_TABLE;RESOURCE_SATELLITE_CONFIG;INSIDE_CLR;CODE_ANALYSIS_BASELINE</DefineConstants >
47
38
</PropertyGroup >
48
-
49
39
<!-- Add Serviceable attribute to the project's metadata -->
50
40
<ItemGroup >
51
41
<AssemblyMetadata Include =" Serviceable" >
52
- <Value >True</Value >
42
+ <Value >True</Value >
53
43
</AssemblyMetadata >
54
44
</ItemGroup >
55
-
56
45
<!-- Platform specific properties -->
57
46
<PropertyGroup Condition =" '$(Platform)' == 'amd64'" >
58
47
<PlatformTarget >x64</PlatformTarget >
73
62
<PlatformTarget >AnyCPU</PlatformTarget >
74
63
<DefineConstants >BIT64;ARM64;$(DefineConstants)</DefineConstants >
75
64
</PropertyGroup >
76
-
77
65
<!-- Configuration specific properties -->
78
66
<PropertyGroup Condition =" '$(Configuration)' == 'Debug' or '$(Configuration)' == 'Checked'" >
79
67
<DebugSymbols >true</DebugSymbols >
89
77
<DebugType >pdbOnly</DebugType >
90
78
<DefineConstants >TRACE;$(DefineConstants)</DefineConstants >
91
79
</PropertyGroup >
92
-
93
80
<!-- Roslyn does not support writing PDBs on Unix -->
94
81
<PropertyGroup Condition =" '$(OsEnvironment)' == 'Unix'" >
95
82
<DebugSymbols >false</DebugSymbols >
96
83
<DebugType >none</DebugType >
97
84
</PropertyGroup >
98
-
99
85
<!-- Assembly attributes -->
100
86
<PropertyGroup >
101
87
<AssemblyName >System.Private.CoreLib</AssemblyName >
109
95
<AssemblyInfoLines Include =" [assembly: System.Runtime.InteropServices.ComVisible(false)]" />
110
96
<AssemblyInfoLines Include =" [assembly: System.Resources.NeutralResourcesLanguage(" en-US" )]" />
111
97
</ItemGroup >
112
-
113
98
<!--
114
99
Helper Paths
115
100
-->
120
105
<MscorlibDir >$(MSBuildThisFileDirectory)</MscorlibDir >
121
106
<NlpObjDir >$(BclSourcesRoot)\System\Globalization\Tables</NlpObjDir >
122
107
</PropertyGroup >
123
-
124
108
<!-- Msbuild variables needed to get CoreCLR features to be set properly. -->
125
109
<PropertyGroup >
126
110
<ClrProduct >core_clr</ClrProduct >
127
111
<BuildForCoreSystem >true</BuildForCoreSystem >
128
-
129
112
<!-- These are needed to make sure we have the right set of defines -->
130
113
<TargetArch Condition =" '$(Platform)'=='x86'" >i386</TargetArch >
131
114
<TargetArch Condition =" '$(Platform)'!='x86'" >$(Platform)</TargetArch >
132
115
</PropertyGroup >
133
-
134
116
<!-- CLR Features -->
135
117
<Import Project =" $(MSBuildThisFileDirectory)..\..\clr.coreclr.props" />
136
118
<Import Project =" $(MSBuildThisFileDirectory)..\..\clr.defines.targets" />
137
-
138
119
<!-- Sources -->
139
120
<ItemGroup >
140
121
<MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\CompilerServices\AccessedThroughPropertyAttribute.cs" />
325
306
<MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\RuntimeClass.cs" />
326
307
</ItemGroup >
327
308
<ItemGroup Condition =" '$(FeatureCominterop)' == 'true'" >
328
- <MscorlibSources Include =' $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\CLRIPropertyValueImpl.cs' />
329
- <MscorlibSources Include =' $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\CLRIReferenceImpl.cs' />
330
- <MscorlibSources Include =' $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\IPropertyValue.cs' />
331
- <MscorlibSources Include =' $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\IReference.cs' />
332
- <MscorlibSources Include =' $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\WindowsFoundationEventHandler.cs' />
333
- <MscorlibSources Include =' $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\ICustomPropertyProvider.cs' />
334
- <MscorlibSources Include =' $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\ICustomProperty.cs' />
335
- <MscorlibSources Include =' $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\CustomPropertyImpl.cs' />
336
- <MscorlibSources Include =' $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\WindowsRuntimeBufferHelper.cs' />
309
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\CLRIPropertyValueImpl.cs" />
310
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\CLRIReferenceImpl.cs" />
311
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\IPropertyValue.cs" />
312
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\IReference.cs" />
313
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\WindowsFoundationEventHandler.cs" />
314
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\ICustomPropertyProvider.cs" />
315
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\ICustomProperty.cs" />
316
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\CustomPropertyImpl.cs" />
317
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\WindowsRuntimeBufferHelper.cs" />
337
318
</ItemGroup >
338
319
<ItemGroup Condition =" '$(FeatureCominterop)' == 'true'" >
339
320
<MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\InteropServices\WindowsRuntime\IIterable.cs" />
761
742
<MscorlibSources Include =" $(CoreFxSourcesRoot)\System\Globalization\ThaiBuddhistCalendar.cs" />
762
743
<MscorlibSources Include =" $(CoreFxSourcesRoot)\System\Globalization\TimeSpanStyles.cs" />
763
744
<MscorlibSources Include =" $(CoreFxSourcesRoot)\System\Globalization\UmAlQuraCalendar.cs" />
764
- <MscorlibSources Include =" $(CoreFxSourcesRoot)\System\Globalization\UnicodeCategory.cs " />
745
+ <MscorlibSources Include =" $(CoreFxSourcesRoot)\System\Globalization\UnicodeCategory.cs " />
765
746
</ItemGroup >
766
747
<ItemGroup Condition =" '$(FeatureCoreFxGlobalization)' == 'true' and '$(TargetsUnix)' == 'true'" >
767
748
<MscorlibSources Include =" $(BclSourcesRoot)\System\Globalization\EncodingTable.Unix.cs" />
897
878
<MscorlibSources Include =" $(BclSourcesRoot)\System\IO\BinaryReader.cs" />
898
879
<MscorlibSources Include =" $(BclSourcesRoot)\System\IO\BinaryWriter.cs" />
899
880
<MscorlibSources Include =" $(BclSourcesRoot)\System\IO\Directory.cs" />
900
- <MscorlibSources Include =" $(BclSourcesRoot)\System\IO\SearchOption.cs" />
901
- <MscorlibSources Include =" $(BclSourcesRoot)\System\IO\DirectoryNotFoundException.cs" />
881
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\IO\SearchOption.cs" />
882
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\IO\DirectoryNotFoundException.cs" />
902
883
<MscorlibSources Include =" $(BclSourcesRoot)\System\IO\DriveNotFoundException.cs" />
903
884
<MscorlibSources Include =" $(BclSourcesRoot)\System\IO\EncodingCache.cs" />
904
885
<MscorlibSources Include =" $(BclSourcesRoot)\System\IO\EndOfStreamException.cs" />
917
898
<MscorlibSources Include =" $(BclSourcesRoot)\System\IO\SeekOrigin.cs" />
918
899
<MscorlibSources Include =" $(BclSourcesRoot)\System\IO\Stream.cs" />
919
900
<MscorlibSources Include =" $(BclSourcesRoot)\System\IO\StreamHelpers.CopyValidation.cs" />
920
- <MscorlibSources Include =" $(BclSourcesRoot)\System\IO\TextReader.cs" Condition =" '$(TargetsUnix)' == 'true'" />
901
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\IO\TextReader.cs" Condition =" '$(TargetsUnix)' == 'true'" />
921
902
<MscorlibSources Include =" $(BclSourcesRoot)\System\IO\StreamReader.cs" Condition =" '$(TargetsUnix)' == 'true'" />
922
903
<MscorlibSources Include =" $(BclSourcesRoot)\System\IO\UnmanagedMemoryAccessor.cs" />
923
904
<MscorlibSources Include =" $(BclSourcesRoot)\System\IO\UnmanagedMemoryStream.cs" />
1022
1003
</ItemGroup >
1023
1004
<ItemGroup >
1024
1005
<MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\Versioning\TargetFrameworkAttribute.cs" />
1025
- <MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\Versioning\CompatibilitySwitch.cs" Condition =" '$(TargetsUnix)' == 'true'" />
1006
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\Versioning\CompatibilitySwitch.cs" Condition =" '$(TargetsUnix)' == 'true'" />
1026
1007
<MscorlibSources Include =" $(BclSourcesRoot)\System\Runtime\Versioning\NonVersionableAttribute.cs" />
1027
1008
</ItemGroup >
1028
1009
<ItemGroup >
1053
1034
<MscorlibSources Include =" $(BclSourcesRoot)\System\Text\EncodingProvider.cs" />
1054
1035
<MscorlibSources Include =" $(BclSourcesRoot)\System\Text\Latin1Encoding.cs" />
1055
1036
<MscorlibSources Include =" $(BclSourcesRoot)\System\Text\Normalization.cs" />
1056
- <MscorlibSources Include =" $(BclSourcesRoot)\System\Text\Normalization.Windows.cs" Condition =" '$(TargetsUnix)' != 'true'" />
1037
+ <MscorlibSources Include =" $(BclSourcesRoot)\System\Text\Normalization.Windows.cs" Condition =" '$(TargetsUnix)' != 'true'" />
1057
1038
<MscorlibSources Include =" $(BclSourcesRoot)\System\Text\UnicodeEncoding.cs" />
1058
1039
<MscorlibSources Include =" $(BclSourcesRoot)\System\Text\UTF7Encoding.cs" />
1059
1040
<MscorlibSources Include =" $(BclSourcesRoot)\System\Text\UTF8Encoding.cs" />
1213
1194
<ItemGroup >
1214
1195
<MscorlibSources Include =" $(CoreFxSourcesRoot)\Debug.cs" />
1215
1196
</ItemGroup >
1216
-
1217
1197
<!-- Include additional sources shared files in the compilation -->
1218
1198
<ItemGroup >
1219
1199
<!-- These are files are preprocessed -->
1220
1200
<MscorlibSources Include =" $(CommonPath)\Preprocessed\AssemblyRefs.g.cs" />
1221
-
1222
1201
<!-- These files are shared with other framework components and don't live the same folder as the rest of them-->
1223
1202
<MscorlibSources Include =" $(CommonPath)\PinnableBufferCache.cs" />
1224
-
1225
1203
<!-- Include Internals visible to file in the compilation -->
1226
1204
<MscorlibSources Include =" $(BclSourcesRoot)\mscorlib.Friends.cs" />
1227
-
1228
1205
<!-- TODO list of types to be cleaned up from CoreLib -->
1229
1206
<MscorlibSources Include =" $(BclSourcesRoot)\CleanupToDoList.cs" />
1230
1207
</ItemGroup >
1231
-
1232
1208
<ItemGroup >
1233
1209
<!-- We want the sources to show up nicely in VS-->
1234
1210
<Compile Include =" @(MscorlibSources)" >
1235
1211
</Compile >
1236
1212
<Compile Include =" src\System\Runtime\CompilerServices\ITuple.cs" />
1237
1213
<Compile Include =" src\System\Runtime\CompilerServices\TupleElementNamesAttribute.cs" />
1214
+ <Compile Include =" src\System\Runtime\RuntimeImports.cs" />
1238
1215
<Compile Include =" src\System\TupleExtensions.cs" />
1239
1216
<Compile Include =" src\System\ValueTuple.cs" />
1240
1217
</ItemGroup >
1241
-
1242
1218
<!-- Resources -->
1243
1219
<ItemGroup >
1244
1220
<SplitTextStringResource Include =" $(BclSourcesRoot)\System.Private.CoreLib.txt" >
1245
1221
<ResFile >System.Private.CoreLib</ResFile >
1246
1222
<ResGenDefines >$(DefineConstants)</ResGenDefines >
1247
1223
</SplitTextStringResource >
1248
1224
</ItemGroup >
1249
-
1250
1225
<PropertyGroup >
1251
1226
<CheckCDefines Condition =" '$(CheckCDefines)'==''" >true</CheckCDefines >
1252
1227
</PropertyGroup >
1253
-
1254
1228
<Target Name =" CDefineChecker" BeforeTargets =" Build" Condition =" '$(CheckCDefines)'=='true'" >
1255
1229
<!-- Compiler Definition Verification -->
1256
1230
<Message Importance =" High" Text =" ============" />
1257
1231
<PropertyGroup >
1258
1232
<IgnoreDefineConstants >FEATURE_IMPLICIT_TLS;FEATURE_HIJACK</IgnoreDefineConstants >
1259
1233
<CMakeDefinitionSaveFile >$(IntermediateOutputPath)\cmake.definitions</CMakeDefinitionSaveFile >
1260
1234
</PropertyGroup >
1261
- <Exec Command =' python $(MSBuildThisFileDirectory)..\scripts\check-definitions.py " $(CMakeDefinitionSaveFile)" " $(DefineConstants)" " $(IgnoreDefineConstants)" ' />
1235
+ <Exec Command =" python $(MSBuildThisFileDirectory)..\scripts\check-definitions.py " $(CMakeDefinitionSaveFile)" " $(DefineConstants)" " $(IgnoreDefineConstants)" " />
1262
1236
<Message Importance =" High" Text =" ============" />
1263
1237
</Target >
1264
-
1265
1238
<ItemGroup >
1266
1239
<EmbeddedResource Include =" $(NlpObjDir)\charinfo.nlp" >
1267
1240
<LogicalName >charinfo.nlp</LogicalName >
1268
1241
</EmbeddedResource >
1269
1242
</ItemGroup >
1270
-
1271
1243
<PropertyGroup Condition =" '$(BuildOS)' == 'Windows_NT'" >
1272
1244
<EnableDotnetAnalyzers Condition =" '$(EnableDotnetAnalyzers)'==''" >true</EnableDotnetAnalyzers >
1273
1245
<UseWin32Apis >true</UseWin32Apis >
1274
1246
<OSGroup >Windows_NT</OSGroup >
1275
1247
</PropertyGroup >
1276
1248
<Import Project =" $(ToolsDir)\codeAnalysis.targets" />
1277
-
1278
1249
<Import Project =" $(ToolsDir)\Microsoft.CSharp.Targets" />
1279
-
1280
1250
<PropertyGroup >
1281
1251
<StrongNameSig >Silverlight</StrongNameSig >
1282
1252
</PropertyGroup >
1283
-
1284
1253
<!-- Import signing tools -->
1285
1254
<Import Condition =" Exists('$(ToolsDir)\sign.targets')" Project =" $(ToolsDir)\sign.targets" />
1286
-
1287
1255
<!-- Overwrite the key that we are going to use for signing -->
1288
1256
<PropertyGroup >
1289
1257
<AssemblyOriginatorKeyFile >$(MSBuildThisFileDirectory)Tools\Signing\mscorlib.snk</AssemblyOriginatorKeyFile >
1290
1258
</PropertyGroup >
1291
-
1292
- <Import Project =" $(MSBuildThisFileDirectory)Tools\Versioning\GenerateVersionInfo.targets" />
1259
+ <Import Project =" $(MSBuildThisFileDirectory)Tools\Versioning\GenerateVersionInfo.targets" />
1293
1260
<!-- Override versioning targets -->
1294
1261
<Import Condition =" Exists('$(ToolsDir)versioning.targets')" Project =" $(ToolsDir)versioning.targets" />
1295
-
1296
1262
<PropertyGroup >
1297
1263
<!-- Use a different nativeresource file to avoid conflicts with mscorlib-->
1298
1264
<Win32Resource Condition =" '$(GenerateNativeVersionInfo)'=='true'" >$(IntermediateOutputPath)\System.Private.CoreLib.res</Win32Resource >
1299
1265
</PropertyGroup >
1300
-
1301
- <Import Project =" GenerateSplitStringResources.targets" />
1302
- <Import Project =" GenerateCompilerResponseFile.targets" />
1303
- </Project >
1266
+ <Import Project =" GenerateSplitStringResources.targets" />
1267
+ <Import Project =" GenerateCompilerResponseFile.targets" />
1268
+ </Project >
0 commit comments