1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 |
Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2013 VisualStudioVersion = 12.0.30110.0 MinimumVisualStudioVersion = 10.0.40219.1 Project( "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" ) = "mscorlib" , "ndp\clr\src\BCL\mscorlib.csproj" , "{A72657BE-225C-4239-956E-EE2A30893B41}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {A72657BE-225C-4239-956E-EE2A30893B41}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A72657BE-225C-4239-956E-EE2A30893B41}.Debug|Any CPU.Build.0 = Debug|Any CPU {A72657BE-225C-4239-956E-EE2A30893B41}.Release|Any CPU.ActiveCfg = Release|Any CPU {A72657BE-225C-4239-956E-EE2A30893B41}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal |
Secondly, I need to copy all the files needed in mscorlib project. These files are located in "/ndp/clr/src/BCL/*.*", you need to copy all these files.
1
2
3
4
5
6
7
8
9
10
11
12
13
14 |
using
System; namespace
System { internal
enum CompatibilityFlag { SwallowUnhandledExceptions, NullReferenceExceptionOnAV, EagerlyGenerateRandomAsymmKeys, FullTrustListAssembliesInGac, DateTimeParseIgnorePunctuation, OnlyGACDomainNeutral, DisableReplacementCustomCulture } } |
Step2 : create "\ndp\clr\src\BCL\System\AppDomainSetup.cs" file and paste the code as follows.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323 |
using
System; using
System.Collections.Generic; using
System.Deployment.Internal.Isolation.Manifest; using
System.Globalization; using
System.IO; using
System.Runtime; using
System.Runtime.CompilerServices; using
System.Runtime.Hosting; using
System.Runtime.InteropServices; using
System.Runtime.Serialization; using
System.Security; using
System.Security.Permissions; using
System.Security.Policy; using
System.Security.Util; using
System.Text; namespace
System { [ClassInterface(ClassInterfaceType.None), ComVisible( true )] [Serializable] public
sealed class AppDomainSetup : IAppDomainSetup { [Serializable] internal
enum LoaderInformation { ApplicationBaseValue, ConfigurationFileValue, DynamicBaseValue, DevPathValue, ApplicationNameValue, PrivateBinPathValue, PrivateBinPathProbeValue, ShadowCopyDirectoriesValue, ShadowCopyFilesValue, CachePathValue, LicenseFileValue, DisallowPublisherPolicyValue, DisallowCodeDownloadValue, DisallowBindingRedirectsValue, DisallowAppBaseProbingValue, ConfigurationBytesValue, ManifestFilePathValue, VersioningManifestBaseValue, LoaderMaximum } private
string [] _Entries; private
LoaderOptimization _LoaderOptimization; private
string _AppBase; [OptionalField(VersionAdded = 2)] private
AppDomainInitializer _AppDomainInitializer; [OptionalField(VersionAdded = 2)] private
string [] _AppDomainInitializerArguments; [OptionalField(VersionAdded = 2)] private
ActivationArguments _ActivationArguments; [OptionalField(VersionAdded = 2)] private
string _ApplicationTrust; [OptionalField(VersionAdded = 2)] private
byte [] _ConfigurationBytes; [OptionalField(VersionAdded = 3)] private
bool _DisableInterfaceCache; [OptionalField(VersionAdded = 4)] private
string _AppDomainManagerAssembly; [OptionalField(VersionAdded = 4)] private
string _AppDomainManagerType; [OptionalField(VersionAdded = 4)] private
string [] _AptcaVisibleAssemblies; [OptionalField(VersionAdded = 4)] private
Dictionary< string , object > _CompatFlags; [OptionalField(VersionAdded = 5)] private
string _TargetFrameworkName; [NonSerialized] internal
AppDomainSortingSetupInfo _AppDomainSortingSetupInfo; [OptionalField(VersionAdded = 5)] private
bool _CheckedForTargetFrameworkName; [OptionalField(VersionAdded = 5)] private
bool _UseRandomizedStringHashing; internal
string [] Value { get { if
( this ._Entries == null ) { this ._Entries = new
string [18]; } return
this ._Entries; } } public
string AppDomainManagerAssembly { [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] get { return
this ._AppDomainManagerAssembly; } [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] set { this ._AppDomainManagerAssembly = value; } } public
string AppDomainManagerType { [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] get { return
this ._AppDomainManagerType; } [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] set { this ._AppDomainManagerType = value; } } public
string [] PartialTrustVisibleAssemblies { [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] get { return
this ._AptcaVisibleAssemblies; } set { if
(value != null ) { this ._AptcaVisibleAssemblies = ( string [])value.Clone(); Array.Sort< string >( this ._AptcaVisibleAssemblies, StringComparer.OrdinalIgnoreCase); return ; } this ._AptcaVisibleAssemblies = null ; } } public
string ApplicationBase { [SecuritySafeCritical] get { return
this .VerifyDir( this .GetUnsecureApplicationBase(), false ); } set { this .Value[0] = this .NormalizePath(value, false ); } } internal
static string ApplicationBaseKey { get { return
"APPBASE" ; } } public
string ConfigurationFile { [SecuritySafeCritical] get { return
this .VerifyDir( this .Value[1], true ); } set { this .Value[1] = value; } } internal
string ConfigurationFileInternal { get { return
this .NormalizePath( this .Value[1], true ); } } internal
static string ConfigurationFileKey { get { return
"APP_CONFIG_FILE" ; } } private
static string ConfigurationBytesKey { get { return
"APP_CONFIG_BLOB" ; } } public
string TargetFrameworkName { [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] get { return
this ._TargetFrameworkName; } [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] set { this ._TargetFrameworkName = value; } } internal
bool CheckedForTargetFrameworkName { [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] get { return
this ._CheckedForTargetFrameworkName; } [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] set { this ._CheckedForTargetFrameworkName = value; } } public
string DynamicBase { [SecuritySafeCritical] get { return
this .VerifyDir( this .Value[2], true ); } [SecuritySafeCritical] set { if
(value == null ) { this .Value[2] = null ; return ; } if
( this .ApplicationName == null ) { throw
new MemberAccessException(Environment.GetResourceString( "AppDomain_RequireApplicationName" )); } StringBuilder stringBuilder = new
StringBuilder( this .NormalizePath(value, false )); stringBuilder.Append( ‘\\‘ ); string
value2 = ParseNumbers.IntToString( this .ApplicationName.GetHashCode(), 16, 8, ‘0‘ , 256); stringBuilder.Append(value2); this .Value[2] = stringBuilder.ToString(); } } internal
static string DynamicBaseKey { get { return
"DYNAMIC_BASE" ; } } public
bool DisallowPublisherPolicy { get { return
this .Value[11] != null ; } set { if
(value) { this .Value[11] = "true" ; return ; } this .Value[11] = null ; } } public
bool DisallowBindingRedirects { get { return
this .Value[13] != null ; } set { if
(value) { this .Value[13] = "true" ; return ; } this .Value[13] = null ; } } public
bool DisallowCodeDownload { get { return
this .Value[12] != null ; } set { if
(value) { this .Value[12] = "true" ; return ; } this .Value[12] = null ; } } public
bool DisallowApplicationBaseProbing { get { return
this .Value[14] != null ; } set { if
(value) { this .Value[14] = "true" ; return ; } this .Value[14] = null ; } } internal
string DeveloperPath { [SecurityCritical] get { string
text = this .Value[3]; this .VerifyDirList(text); return
text; } set { if
(value == null ) { this .Value[3] = null ; return ; } string [] array = value.Split( new
char [] { ‘;‘ }); int
num = array.Length; StringBuilder stringBuilder = StringBuilderCache.Acquire(16); bool
flag = false ; for
( int
i = 0; i < num; i++) { if
(array[i].Length != 0) { if
(flag) { stringBuilder.Append( ";" ); } else { flag = true ; } stringBuilder.Append(Path.GetFullPathInternal(array[i])); } } string
stringAndRelease = StringBuilderCache.GetStringAndRelease(stringBuilder); if
(stringAndRelease.Length == 0) { this .Value[3] = null ; return ; } this .Value[3] = stringAndRelease; } } internal
static string DisallowPublisherPolicyKey { get { return
"DISALLOW_APP" ; } } internal
static string DisallowCodeDownloadKey { get { return
"CODE_DOWNLOAD_DISABLED" ; } } internal
static string DisallowBindingRedirectsKey { get { return
"DISALLOW_APP_REDIRECTS" ; } } internal
static string DeveloperPathKey { get { return
"DEV_PATH" ; } } internal
static string DisallowAppBaseProbingKey { get { return
"DISALLOW_APP_BASE_PROBING" ; } } public
string ApplicationName { get { return
this .Value[4]; } set { this .Value[4] = value; } } internal
static string ApplicationNameKey { get { return
"APP_NAME" ; } } [XmlIgnoreMember] public
AppDomainInitializer AppDomainInitializer { [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] get { return
this ._AppDomainInitializer; } [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] set { this ._AppDomainInitializer = value; } } public
string [] AppDomainInitializerArguments { [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] get { return
this ._AppDomainInitializerArguments; } [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] set { this ._AppDomainInitializerArguments = value; } } [XmlIgnoreMember] public
ActivationArguments ActivationArguments { [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] get { return
this ._ActivationArguments; } [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] set { this ._ActivationArguments = value; } } [XmlIgnoreMember] public
ApplicationTrust ApplicationTrust { [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] get { return
this .InternalGetApplicationTrust(); } [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] set { this .InternalSetApplicationTrust(value); } } public
string PrivateBinPath { [SecuritySafeCritical] get { string
text = this .Value[5]; this .VerifyDirList(text); return
text; } set { this .Value[5] = value; } } internal
static string PrivateBinPathKey { get { return
"PRIVATE_BINPATH" ; } } public
string PrivateBinPathProbe { get { return
this .Value[6]; } set { this .Value[6] = value; } } internal
static string PrivateBinPathProbeKey { get { return
"BINPATH_PROBE_ONLY" ; } } public
string ShadowCopyDirectories { [SecuritySafeCritical] get { string
text = this .Value[7]; this .VerifyDirList(text); return
text; } set { this .Value[7] = value; } } internal
static string ShadowCopyDirectoriesKey { get { return
"SHADOW_COPY_DIRS" ; } } public
string ShadowCopyFiles { get { return
this .Value[8]; } set { if
(value != null
&& string .Compare(value, "true" , StringComparison.OrdinalIgnoreCase) == 0) { this .Value[8] = value; return ; } this .Value[8] = null ; } } internal
static string ShadowCopyFilesKey { get { return
"FORCE_CACHE_INSTALL" ; } } public
string CachePath { [SecuritySafeCritical] get { return
this .VerifyDir( this .Value[9], false ); } set { this .Value[9] = this .NormalizePath(value, false ); } } internal
static string CachePathKey { get { return
"CACHE_BASE" ; } } public
string LicenseFile { [SecuritySafeCritical] get { return
this .VerifyDir( this .Value[10], true ); } set { this .Value[10] = value; } } public
LoaderOptimization LoaderOptimization { [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] get { return
this ._LoaderOptimization; } [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] set { this ._LoaderOptimization = value; } } internal
static string LoaderOptimizationKey { get { return
"LOADER_OPTIMIZATION" ; } } internal
static string ConfigurationExtension { get { return
".config" ; } } internal
static string PrivateBinPathEnvironmentVariable { get { return
"RELPATH" ; } } internal
static string RuntimeConfigurationFile { get { return
"config\\machine.config" ; } } internal
static string MachineConfigKey { get { return
"MACHINE_CONFIG" ; } } internal
static string HostBindingKey { get { return
"HOST_CONFIG" ; } } public
bool SandboxInterop { [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] get { return
this ._DisableInterfaceCache; } [TargetedPatchingOptOut( "Performance critical to inline this type of method across NGen image boundaries" )] set { this ._DisableInterfaceCache = value; } } [SecuritySafeCritical] internal
AppDomainSetup(AppDomainSetup copy, bool
copyDomainBoundData) { string [] value = this .Value; if
(copy != null ) { string [] value2 = copy.Value; int
num = this ._Entries.Length; int
num2 = value2.Length; int
num3 = (num2 < num) ? num2 : num; for
( int
i = 0; i < num3; i++) { value[i] = value2[i]; } if
(num3 < num) { for
( int
j = num3; j < num; j++) { value[j] = null ; } } this ._LoaderOptimization = copy._LoaderOptimization; this ._AppDomainInitializerArguments = copy.AppDomainInitializerArguments; this ._ActivationArguments = copy.ActivationArguments; this ._ApplicationTrust = copy._ApplicationTrust; if
(copyDomainBoundData) { this ._AppDomainInitializer = copy.AppDomainInitializer; } else { this ._AppDomainInitializer = null ; } this ._ConfigurationBytes = copy.GetConfigurationBytes(); this ._DisableInterfaceCache = copy._DisableInterfaceCache; this ._AppDomainManagerAssembly = copy.AppDomainManagerAssembly; this ._AppDomainManagerType = copy.AppDomainManagerType; this ._AptcaVisibleAssemblies = copy.PartialTrustVisibleAssemblies; if
(copy._CompatFlags != null ) { this .SetCompatibilitySwitches(copy._CompatFlags.Keys); } if
(copy._AppDomainSortingSetupInfo != null ) { this ._AppDomainSortingSetupInfo = new
AppDomainSortingSetupInfo(copy._AppDomainSortingSetupInfo); } this ._TargetFrameworkName = copy._TargetFrameworkName; this ._UseRandomizedStringHashing = copy._UseRandomizedStringHashing; return ; } this ._LoaderOptimization = LoaderOptimization.NotSpecified; } public
AppDomainSetup() { this ._LoaderOptimization = LoaderOptimization.NotSpecified; } public
AppDomainSetup(ActivationContext activationContext) : this ( new
ActivationArguments(activationContext)) { } [SecuritySafeCritical] public
AppDomainSetup(ActivationArguments activationArguments) { if
(activationArguments == null ) { throw
new ArgumentNullException( "activationArguments" ); } this ._LoaderOptimization = LoaderOptimization.NotSpecified; this .ActivationArguments = activationArguments; string
entryPointFullPath = CmsUtils.GetEntryPointFullPath(activationArguments); if
(! string .IsNullOrEmpty(entryPointFullPath)) { this .SetupDefaults(entryPointFullPath, false ); return ; } this .ApplicationBase = activationArguments.ActivationContext.ApplicationDirectory; } internal
void SetupDefaults( string
imageLocation, bool
imageLocationAlreadyNormalized = false ) { char [] anyOf = new
char [] { ‘\\‘ , ‘/‘ }; int
num = imageLocation.LastIndexOfAny(anyOf); if
(num == -1) { this .ApplicationName = imageLocation; } else { this .ApplicationName = imageLocation.Substring(num + 1); string
text = imageLocation.Substring(0, num + 1); if
(imageLocationAlreadyNormalized) { this .Value[0] = text; } else { this .ApplicationBase = text; } } this .ConfigurationFile = this .ApplicationName + AppDomainSetup.ConfigurationExtension; } internal
string GetUnsecureApplicationBase() { return
this .Value[0]; } public
byte [] GetConfigurationBytes() { if
( this ._ConfigurationBytes == null ) { return
null ; } return
( byte []) this ._ConfigurationBytes.Clone(); } public
void SetConfigurationBytes( byte [] value) { this ._ConfigurationBytes = value; } internal
Dictionary< string , object > GetCompatibilityFlags() { return
this ._CompatFlags; } public
void SetCompatibilitySwitches(IEnumerable< string > switches) { if
( this ._AppDomainSortingSetupInfo != null ) { this ._AppDomainSortingSetupInfo._useV2LegacySorting = false ; this ._AppDomainSortingSetupInfo._useV4LegacySorting = false ; } this ._UseRandomizedStringHashing = false ; if
(switches != null ) { this ._CompatFlags = new
Dictionary< string , object >(); using
(IEnumerator< string > enumerator = switches.GetEnumerator()) { while
(enumerator.MoveNext()) { string
current = enumerator.Current; if
(StringComparer.OrdinalIgnoreCase.Equals( "NetFx40_Legacy20SortingBehavior" , current)) { if
( this ._AppDomainSortingSetupInfo == null ) { this ._AppDomainSortingSetupInfo = new
AppDomainSortingSetupInfo(); } this ._AppDomainSortingSetupInfo._useV2LegacySorting = true ; } if
(StringComparer.OrdinalIgnoreCase.Equals( "NetFx45_Legacy40SortingBehavior" , current)) { if
( this ._AppDomainSortingSetupInfo == null ) { this ._AppDomainSortingSetupInfo = new
AppDomainSortingSetupInfo(); } this ._AppDomainSortingSetupInfo._useV4LegacySorting = true ; } if
(StringComparer.OrdinalIgnoreCase.Equals( "UseRandomizedStringHashAlgorithm" , current)) { this ._UseRandomizedStringHashing = true ; } this ._CompatFlags.Add(current, null ); } return ; } } this ._CompatFlags = null ; } [SecurityCritical] public
void SetNativeFunction( string
functionName, int
functionVersion, IntPtr functionPointer) { if
(functionName == null ) { throw
new ArgumentNullException( "functionName" ); } if
(functionPointer == IntPtr.Zero) { throw
new ArgumentNullException( "functionPointer" ); } if
( string .IsNullOrWhiteSpace(functionName)) { throw
new ArgumentException(Environment.GetResourceString( "Argument_NPMSInvalidName" ), "functionName" ); } if
(functionVersion < 1) { throw
new ArgumentException(Environment.GetResourceString( "ArgumentException_MinSortingVersion" , new
object [] { 1, functionName })); } if
( this ._AppDomainSortingSetupInfo == null ) { this ._AppDomainSortingSetupInfo = new
AppDomainSortingSetupInfo(); } if
( string .Equals(functionName, "IsNLSDefinedString" , StringComparison.OrdinalIgnoreCase)) { this ._AppDomainSortingSetupInfo._pfnIsNLSDefinedString = functionPointer; } if
( string .Equals(functionName, "CompareStringEx" , StringComparison.OrdinalIgnoreCase)) { this ._AppDomainSortingSetupInfo._pfnCompareStringEx = functionPointer; } if
( string .Equals(functionName, "LCMapStringEx" , StringComparison.OrdinalIgnoreCase)) { this ._AppDomainSortingSetupInfo._pfnLCMapStringEx = functionPointer; } if
( string .Equals(functionName, "FindNLSStringEx" , StringComparison.OrdinalIgnoreCase)) { this ._AppDomainSortingSetupInfo._pfnFindNLSStringEx = functionPointer; } if
( string .Equals(functionName, "CompareStringOrdinal" , StringComparison.OrdinalIgnoreCase)) { this ._AppDomainSortingSetupInfo._pfnCompareStringOrdinal = functionPointer; } if
( string .Equals(functionName, "GetNLSVersionEx" , StringComparison.OrdinalIgnoreCase)) { this ._AppDomainSortingSetupInfo._pfnGetNLSVersionEx = functionPointer; } if
( string .Equals(functionName, "FindStringOrdinal" , StringComparison.OrdinalIgnoreCase)) { this ._AppDomainSortingSetupInfo._pfnFindStringOrdinal = functionPointer; } } internal
ApplicationTrust InternalGetApplicationTrust() { if
( this ._ApplicationTrust == null ) { return
null ; } SecurityElement element = SecurityElement.FromString( this ._ApplicationTrust); ApplicationTrust applicationTrust = new
ApplicationTrust(); applicationTrust.FromXml(element); return
applicationTrust; } internal
void InternalSetApplicationTrust(ApplicationTrust value) { if
(value != null ) { this ._ApplicationTrust = value.ToXml().ToString(); return ; } this ._ApplicationTrust = null ; } [SecurityCritical] internal
bool UpdateContextPropertyIfNeeded(AppDomainSetup.LoaderInformation FieldValue, string
FieldKey, string
UpdatedField, IntPtr fusionContext, AppDomainSetup oldADS) { string
text = this .Value[( int )FieldValue]; string
b = (oldADS == null ) ? null
: oldADS.Value[( int )FieldValue]; if
(text != b) { AppDomainSetup.UpdateContextProperty(fusionContext, FieldKey, (UpdatedField == null ) ? text : UpdatedField); return
true ; } return
false ; } [SecurityCritical] internal
void UpdateBooleanContextPropertyIfNeeded(AppDomainSetup.LoaderInformation FieldValue, string
FieldKey, IntPtr fusionContext, AppDomainSetup oldADS) { if
( this .Value[( int )FieldValue] != null ) { AppDomainSetup.UpdateContextProperty(fusionContext, FieldKey, "true" ); return ; } if
(oldADS != null
&& oldADS.Value[( int )FieldValue] != null ) { AppDomainSetup.UpdateContextProperty(fusionContext, FieldKey, "false" ); } } [SecurityCritical] internal
static bool ByteArraysAreDifferent( byte [] A, byte [] B) { int
num = A.Length; if
(num != B.Length) { return
true ; } for
( int
i = 0; i < num; i++) { if
(A[i] != B[i]) { return
true ; } } return
false ; } [SecurityCritical] internal
static void UpdateByteArrayContextPropertyIfNeeded( byte [] NewArray, byte [] OldArray, string
FieldKey, IntPtr fusionContext) { if
((NewArray != null
&& OldArray == null ) || (NewArray == null
&& OldArray != null ) || (NewArray != null
&& OldArray != null
&& AppDomainSetup.ByteArraysAreDifferent(NewArray, OldArray))) { AppDomainSetup.UpdateContextProperty(fusionContext, FieldKey, NewArray); } } [SecurityCritical] internal
void SetupFusionContext(IntPtr fusionContext, AppDomainSetup oldADS) { this .UpdateContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.ApplicationBaseValue, AppDomainSetup.ApplicationBaseKey, null , fusionContext, oldADS); this .UpdateContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.PrivateBinPathValue, AppDomainSetup.PrivateBinPathKey, null , fusionContext, oldADS); this .UpdateContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.DevPathValue, AppDomainSetup.DeveloperPathKey, null , fusionContext, oldADS); this .UpdateBooleanContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.DisallowPublisherPolicyValue, AppDomainSetup.DisallowPublisherPolicyKey, fusionContext, oldADS); this .UpdateBooleanContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.DisallowCodeDownloadValue, AppDomainSetup.DisallowCodeDownloadKey, fusionContext, oldADS); this .UpdateBooleanContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.DisallowBindingRedirectsValue, AppDomainSetup.DisallowBindingRedirectsKey, fusionContext, oldADS); this .UpdateBooleanContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.DisallowAppBaseProbingValue, AppDomainSetup.DisallowAppBaseProbingKey, fusionContext, oldADS); if
( this .UpdateContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.ShadowCopyFilesValue, AppDomainSetup.ShadowCopyFilesKey, this .ShadowCopyFiles, fusionContext, oldADS)) { if
( this .Value[7] == null ) { this .ShadowCopyDirectories = this .BuildShadowCopyDirectories(); } this .UpdateContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.ShadowCopyDirectoriesValue, AppDomainSetup.ShadowCopyDirectoriesKey, null , fusionContext, oldADS); } this .UpdateContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.CachePathValue, AppDomainSetup.CachePathKey, null , fusionContext, oldADS); this .UpdateContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.PrivateBinPathProbeValue, AppDomainSetup.PrivateBinPathProbeKey, this .PrivateBinPathProbe, fusionContext, oldADS); this .UpdateContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.ConfigurationFileValue, AppDomainSetup.ConfigurationFileKey, null , fusionContext, oldADS); AppDomainSetup.UpdateByteArrayContextPropertyIfNeeded( this ._ConfigurationBytes, (oldADS == null ) ? null
: oldADS.GetConfigurationBytes(), AppDomainSetup.ConfigurationBytesKey, fusionContext); this .UpdateContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.ApplicationNameValue, AppDomainSetup.ApplicationNameKey, this .ApplicationName, fusionContext, oldADS); this .UpdateContextPropertyIfNeeded(AppDomainSetup.LoaderInformation.DynamicBaseValue, AppDomainSetup.DynamicBaseKey, null , fusionContext, oldADS); AppDomainSetup.UpdateContextProperty(fusionContext, AppDomainSetup.MachineConfigKey, RuntimeEnvironment.GetRuntimeDirectoryImpl() + AppDomainSetup.RuntimeConfigurationFile); string
hostBindingFile = RuntimeEnvironment.GetHostBindingFile(); if
(hostBindingFile != null
|| oldADS != null ) { AppDomainSetup.UpdateContextProperty(fusionContext, AppDomainSetup.HostBindingKey, hostBindingFile); } } [SecurityCritical] [MethodImpl(MethodImplOptions.InternalCall)] internal
static extern void UpdateContextProperty(IntPtr fusionContext, string
key, object
value); internal
static int Locate( string
s) { if
( string .IsNullOrEmpty(s)) { return
-1; } char
c = s[0]; if
(c <= ‘L‘ ) { switch
(c) { case
‘A‘ : if
(s == "APP_CONFIG_FILE" ) { return
1; } if
(s == "APP_NAME" ) { return
4; } if
(s == "APPBASE" ) { return
0; } if
(s == "APP_CONFIG_BLOB" ) { return
15; } break ; case
‘B‘ : if
(s == "BINPATH_PROBE_ONLY" ) { return
6; } break ; case
‘C‘ : if
(s == "CACHE_BASE" ) { return
9; } if
(s == "CODE_DOWNLOAD_DISABLED" ) { return
12; } break ; case
‘D‘ : if
(s == "DEV_PATH" ) { return
3; } if
(s == "DYNAMIC_BASE" ) { return
2; } if
(s == "DISALLOW_APP" ) { return
11; } if
(s == "DISALLOW_APP_REDIRECTS" ) { return
13; } if
(s == "DISALLOW_APP_BASE_PROBING" ) { return
14; } break ; case
‘E‘ : break ; case
‘F‘ : if
(s == "FORCE_CACHE_INSTALL" ) { return
8; } break ; default : if
(c == ‘L‘ ) { if
(s == "LICENSE_FILE" ) { return
10; } } break ; } } else { if
(c != ‘P‘ ) { if
(c == ‘S‘ ) { if
(s == "SHADOW_COPY_DIRS" ) { return
7; } } } else { if
(s == "PRIVATE_BINPATH" ) { return
5; } } } return
-1; } private
string NormalizePath( string
path, bool
useAppBase) { if
(path == null ) { return
null ; } if
(!useAppBase) { path = URLString.PreProcessForExtendedPathRemoval(path, false ); } int
num = path.Length; if
(num == 0) { return
null ; } bool
flag = false ; if
(num > 7 && string .Compare(path, 0, "file:" , 0, 5, StringComparison.OrdinalIgnoreCase) == 0) { int
num2; if
(path[6] == ‘\\‘ ) { if
(path[7] == ‘\\‘
|| path[7] == ‘/‘ ) { if
(num > 8 && (path[8] == ‘\\‘
|| path[8] == ‘/‘ )) { throw
new ArgumentException(Environment.GetResourceString( "Argument_InvalidPathChars" )); } num2 = 8; } else { num2 = 5; flag = true ; } } else { if
(path[7] == ‘/‘ ) { num2 = 8; } else { if
(num > 8 && path[7] == ‘\\‘
&& path[8] == ‘\\‘ ) { num2 = 7; } else { num2 = 5; StringBuilder stringBuilder = new
StringBuilder(num); for
( int
i = 0; i < num; i++) { char
c = path[i]; if
(c == ‘/‘ ) { stringBuilder.Append( ‘\\‘ ); } else { stringBuilder.Append(c); } } path = stringBuilder.ToString(); } flag = true ; } } path = path.Substring(num2); num -= num2; } bool
flag2; if
(flag || (num > 1 && (path[0] == ‘/‘
|| path[0] == ‘\\‘ ) && (path[1] == ‘/‘
|| path[1] == ‘\\‘ ))) { flag2 = false ; } else { int
num3 = path.IndexOf( ‘:‘ ) + 1; flag2 = (num3 == 0 || num <= num3 + 1 || (path[num3] != ‘/‘
&& path[num3] != ‘\\‘ ) || (path[num3 + 1] != ‘/‘
&& path[num3 + 1] != ‘\\‘ )); } if
(flag2) { if
(useAppBase && (num == 1 || path[1] != ‘:‘ )) { string
text = this .Value[0]; if
(text == null
|| text.Length == 0) { throw
new MemberAccessException(Environment.GetResourceString( "AppDomain_AppBaseNotSet" )); } StringBuilder stringBuilder2 = StringBuilderCache.Acquire(16); bool
flag3 = false ; if
(path[0] == ‘/‘
|| path[0] == ‘\\‘ ) { string
text2 = Path.GetPathRoot(text); if
(text2.Length == 0) { int
j = text.IndexOf( ":/" , StringComparison.Ordinal); if
(j == -1) { j = text.IndexOf( ":\\" , StringComparison.Ordinal); } int
length = text.Length; for
(j++; j < length; j++) { if
(text[j] != ‘/‘
&& text[j] != ‘\\‘ ) { break ; } } while
(j < length && text[j] != ‘/‘
&& text[j] != ‘\\‘ ) { j++; } text2 = text.Substring(0, j); } stringBuilder2.Append(text2); flag3 = true ; } else { stringBuilder2.Append(text); } int
num4 = stringBuilder2.Length - 1; if
(stringBuilder2[num4] != ‘/‘
&& stringBuilder2[num4] != ‘\\‘ ) { if
(!flag3) { if
(text.IndexOf( ":/" , StringComparison.Ordinal) == -1) { stringBuilder2.Append( ‘\\‘ ); } else { stringBuilder2.Append( ‘/‘ ); } } } else { if
(flag3) { stringBuilder2.Remove(num4, 1); } } stringBuilder2.Append(path); path = StringBuilderCache.GetStringAndRelease(stringBuilder2); } else { path = Path.GetFullPathInternal(path); } } return
path; } private
bool IsFilePath( string
path) { return
path[1] == ‘:‘
|| (path[0] == ‘\\‘
&& path[1] == ‘\\‘ ); } [SecurityCritical] private
string VerifyDir( string
dir, bool
normalize) { if
(dir != null ) { if
(dir.Length == 0) { dir = null ; } else { if
(normalize) { dir = this .NormalizePath(dir, true ); } if
( this .IsFilePath(dir)) { new
FileIOPermission(FileIOPermissionAccess.PathDiscovery, dir).Demand(); } } } return
dir; } [SecurityCritical] private
void VerifyDirList( string
dirs) { if
(dirs != null ) { string [] array = dirs.Split( new
char [] { ‘;‘ }); int
num = array.Length; for
( int
i = 0; i < num; i++) { this .VerifyDir(array[i], true ); } } } private
string BuildShadowCopyDirectories() { string
text = this .Value[5]; if
(text == null ) { return
null ; } StringBuilder stringBuilder = StringBuilderCache.Acquire(16); string
text2 = this .Value[0]; if
(text2 != null ) { char [] separator = new
char [] { ‘;‘ }; string [] array = text.Split(separator); int
num = array.Length; bool
flag = text2[text2.Length - 1] != ‘/‘
&& text2[text2.Length - 1] != ‘\\‘ ; if
(num == 0) { stringBuilder.Append(text2); if
(flag) { stringBuilder.Append( ‘\\‘ ); } stringBuilder.Append(text); } else { for
( int
i = 0; i < num; i++) { stringBuilder.Append(text2); if
(flag) { stringBuilder.Append( ‘\\‘ ); } stringBuilder.Append(array[i]); if
(i < num - 1) { stringBuilder.Append( ‘;‘ ); } } } } return
StringBuilderCache.GetStringAndRelease(stringBuilder); } } } |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73 |
using
System; internal
static class AssemblyRef { internal
const string EcmaPublicKey = "b77a5c561934e089" ; internal
const string EcmaPublicKeyToken = "b77a5c561934e089" ; internal
const string EcmaPublicKeyFull = "00000000000000000400000000000000" ; internal
const string SilverlightPublicKey = "31bf3856ad364e35" ; internal
const string SilverlightPublicKeyToken = "31bf3856ad364e35" ; internal
const string SilverlightPublicKeyFull = "0024000004800000940000000602000000240000525341310004000001000100B5FC90E7027F67871E773A8FDE8938C81DD402BA65B9201D60593E96C492651E889CC13F1415EBB53FAC1131AE0BD333C5EE6021672D9718EA31A8AEBD0DA0072F25D87DBA6FC90FFD598ED4DA35E44C398C454307E8E33B8426143DAEC9F596836F97C8F74750E5975C64E2189F45DEF46B2A2B1247ADC3652BF5C308055DA9" ; internal
const string SilverlightPlatformPublicKey = "7cec85d7bea7798e" ; internal
const string SilverlightPlatformPublicKeyToken = "7cec85d7bea7798e" ; internal
const string SilverlightPlatformPublicKeyFull = "00240000048000009400000006020000002400005253413100040000010001008D56C76F9E8649383049F383C44BE0EC204181822A6C31CF5EB7EF486944D032188EA1D3920763712CCB12D75FB77E9811149E6148E5D32FBAAB37611C1878DDC19E20EF135D0CB2CFF2BFEC3D115810C3D9069638FE4BE215DBF795861920E5AB6F7DB2E2CEEF136AC23D5DD2BF031700AEC232F6C6B1C785B4305C123B37AB" ; internal
const string PlatformPublicKey = "b77a5c561934e089" ; internal
const string PlatformPublicKeyToken = "b77a5c561934e089" ; internal
const string PlatformPublicKeyFull = "00000000000000000400000000000000" ; internal
const string Mscorlib = "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ; internal
const string SystemData = "System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ; internal
const string SystemDataOracleClient = "System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ; internal
const string System = "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ; internal
const string SystemCore = "System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ; internal
const string SystemNumerics = "System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ; internal
const string SystemRuntimeRemoting = "System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ; internal
const string SystemThreadingTasksDataflow = "System.Threading.Tasks.Dataflow, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ; internal
const string SystemWindowsForms = "System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ; internal
const string SystemXml = "System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ; internal
const string MicrosoftPublicKey = "b03f5f7f11d50a3a" ; internal
const string MicrosoftPublicKeyToken = "b03f5f7f11d50a3a" ; internal
const string MicrosoftPublicKeyFull = "002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293" ; internal
const string SharedLibPublicKey = "31bf3856ad364e35" ; internal
const string SharedLibPublicKeyToken = "31bf3856ad364e35" ; internal
const string SharedLibPublicKeyFull = "0024000004800000940000000602000000240000525341310004000001000100B5FC90E7027F67871E773A8FDE8938C81DD402BA65B9201D60593E96C492651E889CC13F1415EBB53FAC1131AE0BD333C5EE6021672D9718EA31A8AEBD0DA0072F25D87DBA6FC90FFD598ED4DA35E44C398C454307E8E33B8426143DAEC9F596836F97C8F74750E5975C64E2189F45DEF46B2A2B1247ADC3652BF5C308055DA9" ; internal
const string SystemComponentModelDataAnnotations = "System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ; internal
const string SystemConfiguration = "System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemConfigurationInstall = "System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemDeployment = "System.Deployment, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemDesign = "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemDirectoryServices = "System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemDrawingDesign = "System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemDrawing = "System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemEnterpriseServices = "System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemManagement = "System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemMessaging = "System.Messaging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemNetHttp = "System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemNetHttpWebRequest = "System.Net.Http.WebRequest, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemRuntimeSerializationFormattersSoap = "System.Runtime.Serialization.Formatters.Soap, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemRuntimeWindowsRuntime = "System.Runtime.WindowsRuntime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ; internal
const string SystemRuntimeWindowsRuntimeUIXaml = "System.Runtime.WindowsRuntimeUIXaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ; internal
const string SystemSecurity = "System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemServiceModelWeb = "System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ; internal
const string SystemServiceProcess = "System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemWeb = "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemWebAbstractions = "System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ; internal
const string SystemWebDynamicData = "System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ; internal
const string SystemWebDynamicDataDesign = "System.Web.DynamicData.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ; internal
const string SystemWebEntityDesign = "System.Web.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ; internal
const string SystemWebExtensions = "System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ; internal
const string SystemWebExtensionsDesign = "System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ; internal
const string SystemWebMobile = "System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemWebRegularExpressions = "System.Web.RegularExpressions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string SystemWebRouting = "System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ; internal
const string SystemWebServices = "System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string WindowsBase = "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ; internal
const string MicrosoftVisualStudio = "Microsoft.VisualStudio, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string MicrosoftVisualStudioWindowsForms = "Microsoft.VisualStudio.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string VJSharpCodeProvider = "VJSharpCodeProvider, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string ASPBrowserCapsPublicKey = "b7bd7678b977bd8f" ; internal
const string ASPBrowserCapsFactory = "ASP.BrowserCapsFactory, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b7bd7678b977bd8f" ; internal
const string MicrosoftVSDesigner = "Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string MicrosoftVisualStudioWeb = "Microsoft.VisualStudio.Web, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string MicrosoftWebDesign = "Microsoft.Web.Design.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string MicrosoftVSDesignerMobile = "Microsoft.VSDesigner.Mobile, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; internal
const string MicrosoftJScript = "Microsoft.JScript, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ; } |
1
2
3
4
5
6
7
8
9
10
11
12
13 |
using
System; internal
static class ThisAssembly { internal
const string Title = "mscorlib.dll" ; internal
const string Description = "mscorlib.dll" ; internal
const string DefaultAlias = "mscorlib.dll" ; internal
const string Copyright = "? Microsoft Corporation. All rights reserved." ; internal
const string Version = "4.0.0.0" ; internal
const string InformationalVersion = "4.0.30319.18444" ; internal
const string DailyBuildNumberStr = "30319" ; internal
const string BuildRevisionStr = "18444" ; internal
const int DailyBuildNumber = 30319; } |
1
2
3
4
5
6
7
8
9
10
11
12
13 |
using
System; internal
static class ThisAssembly { internal
const string Title = "mscorlib.dll" ; internal
const string Description = "mscorlib.dll" ; internal
const string DefaultAlias = "mscorlib.dll" ; internal
const string Copyright = "? Microsoft Corporation. All rights reserved." ; internal
const string Version = "4.0.0.0" ; internal
const string InformationalVersion = "4.0.30319.18444" ; internal
const string DailyBuildNumberStr = "30319" ; internal
const string BuildRevisionStr = "18444" ; internal
const int DailyBuildNumber = 30319; } |
1
2
3
4
5
6
7
8
9 |
public
virtual String DisplayName { [System.Security.SecuritySafeCritical] // auto-generated get { // return (this.m_cultureData.SLOCALIZED----); return
( this .m_cultureData.SLOCALIZEDCOUNTRY); } } |
How to build mscorlib.dll with visual studio,布布扣,bubuko.com
How to build mscorlib.dll with visual studio
原文:http://www.cnblogs.com/ilcc/p/3593681.html