252 references to mscorlib
InteractiveHost.UnitTests (1)
InteractiveHostDesktopTests.cs (1)
939new[] { NetFramework.mscorlib, NetFramework.System },
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
ExtractMethod\ExtractMethodTests.cs (1)
11356var document = project.AddMetadataReference(NetFramework.mscorlib)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Recommendations\RecommenderTests.cs (1)
67references: [NetFramework.mscorlib]);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (2)
11065var compilation0 = CreateEmptyCompilation(new[] { source0.Tree }, new[] { NetFramework.mscorlib }, options: ComSafeDebugDll); 11286var compilation0 = CreateEmptyCompilation(new[] { source0.Tree }, new[] { NetFramework.mscorlib }, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (38)
InteractiveSessionReferencesTests.cs (38)
377CreateCSharpCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public class C {}", new[] { NetFramework.mscorlib }, assemblyName: "C").EmitToArray()); 380CreateCSharpCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public class C {}", new[] { NetFramework.mscorlib }, assemblyName: "C").EmitToArray()); 396CreateCSharpCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public class C {}", new[] { NetFramework.mscorlib }, assemblyName: "C").EmitToArray()); 399CreateCSharpCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public class C {}", new[] { NetFramework.mscorlib }, assemblyName: "C").EmitToArray()); 416CreateCSharpCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public class C {}", new[] { NetFramework.mscorlib }, assemblyName: "C").EmitToArray()); 419CreateCSharpCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public class C {}", new[] { NetFramework.mscorlib }, assemblyName: "C").EmitToArray()); 568var lib = CreateCSharpCompilation("public class C { public int X = 1, Y = 2; }", new[] { NetFramework.mscorlib }, "HostLib"); 603", new[] { NetFramework.mscorlib }, libBaseName); 610", new MetadataReference[] { NetFramework.mscorlib, libBase.ToMetadataReference() }, lib1Name); 617", new MetadataReference[] { NetFramework.mscorlib, libBase.ToMetadataReference() }, lib2Name); 661", new[] { NetFramework.mscorlib }, libBaseName, s_signedDll); 668", new MetadataReference[] { NetFramework.mscorlib, libBase.ToMetadataReference() }, lib1Name); 675", new MetadataReference[] { NetFramework.mscorlib, libBase.ToMetadataReference() }, lib2Name); 719", new[] { NetFramework.mscorlib }, libBaseName); 726", new[] { NetFramework.mscorlib }, libBaseName); 733", new MetadataReference[] { NetFramework.mscorlib, libBase1.ToMetadataReference() }, lib1Name); 740", new MetadataReference[] { NetFramework.mscorlib, libBase1.ToMetadataReference() }, lib2Name); 786", new[] { NetFramework.mscorlib }, libBaseName, s_signedDll); 794", new[] { NetFramework.mscorlib }, libBaseName, s_signedDll); 801", new MetadataReference[] { NetFramework.mscorlib, libBase1.ToMetadataReference() }, lib1Name); 808", new MetadataReference[] { NetFramework.mscorlib, libBase1.ToMetadataReference() }, lib2Name); 854", new[] { NetFramework.mscorlib }, libBaseName, s_signedDll); 862", new[] { NetFramework.mscorlib }, libBaseName); 869", new MetadataReference[] { NetFramework.mscorlib, libBase1.ToMetadataReference() }, lib1Name); 876", new MetadataReference[] { NetFramework.mscorlib, libBase1.ToMetadataReference() }, lib2Name); 922", new[] { NetFramework.mscorlib }, libBaseName, s_signedDll); 930", new[] { NetFramework.mscorlib }, libBaseName, s_signedDll2); 937", new MetadataReference[] { NetFramework.mscorlib, libBase1.ToMetadataReference() }, lib1Name); 944", new MetadataReference[] { NetFramework.mscorlib, libBase1.ToMetadataReference() }, lib2Name); 990", new[] { NetFramework.mscorlib }, libBaseName); 998", new[] { NetFramework.mscorlib }, libBaseName); 1005", new MetadataReference[] { NetFramework.mscorlib, libBase1.ToMetadataReference() }, lib1Name); 1012", new MetadataReference[] { NetFramework.mscorlib, libBase2.ToMetadataReference() }, lib2Name); 1058", new[] { NetFramework.mscorlib }, libBaseName, s_signedDll); 1066", new[] { NetFramework.mscorlib }, libBaseName, s_signedDll); 1073", new MetadataReference[] { NetFramework.mscorlib, libBase1.ToMetadataReference() }, lib1Name); 1080", new MetadataReference[] { NetFramework.mscorlib, libBase2.ToMetadataReference() }, lib2Name); 1117new[] { NetFramework.mscorlib, NetFramework.System },
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (4)
CommandLineRunnerTests.cs (4)
798", new[] { NetFramework.mscorlib }, libBaseName); 805", new[] { NetFramework.mscorlib }, libBaseName); 812", new MetadataReference[] { NetFramework.mscorlib, libBase1.ToMetadataReference() }, lib1Name); 819", new MetadataReference[] { NetFramework.mscorlib, libBase1.ToMetadataReference() }, lib2Name);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\ColorColorTests.cs (2)
2106NetFramework.mscorlib 2149NetFramework.mscorlib
Semantics\UseSiteErrorTests.cs (3)
1032references: [NetFramework.mscorlib], 1046references: [NetFramework.mscorlib, delComp.ToMetadataReference()], 1060references: [NetFramework.mscorlib, lib1Comp.ToMetadataReference()],
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (88)
Compilation\CompilationAPITests.cs (9)
490var ref1 = NetFramework.mscorlib; 965var ref1 = NetFramework.mscorlib; 1185var ref1 = NetFramework.mscorlib; 1410var ref1 = NetFramework.mscorlib; 1451var ref1 = NetFramework.mscorlib; 1472var ref1 = NetFramework.mscorlib; 2250NetFramework.mscorlib, 2303NetFramework.mscorlib, 2350var metadata = NetFramework.mscorlib;
Compilation\ReferenceManagerTests.cs (1)
2211NetFramework.mscorlib,
Symbols\AssemblyAndNamespaceTests.cs (1)
373var aliasedCorlib = NetFramework.mscorlib.WithAliases(ImmutableArray.Create("Goo"));
Symbols\CompilationCreationTests.cs (47)
109var mscorlibRef = NetFramework.mscorlib; 131NetFramework.mscorlib, 146NetFramework.mscorlib, 175NetFramework.mscorlib, 232NetFramework.mscorlib, 329NetFramework.mscorlib, 338NetFramework.mscorlib, 347NetFramework.mscorlib, 416NetFramework.mscorlib, 432NetFramework.mscorlib, 441NetFramework.mscorlib, 694new[] { NetFramework.mscorlib }); 716new MetadataReference[] { NetFramework.mscorlib, varC_MTTestLib1_V1.ToMetadataReference() }); 727NetFramework.mscorlib, 770new MetadataReference[] { NetFramework.mscorlib }); 805NetFramework.mscorlib, 820NetFramework.mscorlib, 896new MetadataReference[] { NetFramework.mscorlib }); 942new MetadataReference[] { NetFramework.mscorlib, 956NetFramework.mscorlib, 1059new MetadataReference[] { NetFramework.mscorlib, varC_MTTestLib3.ToMetadataReference() }); 1068new MetadataReference[] { NetFramework.mscorlib, varC_MTTestLib2.ToMetadataReference() }); 1077new MetadataReference[] { NetFramework.mscorlib, varC_MTTestLib2.ToMetadataReference(), varC_MTTestLib3.ToMetadataReference(), varC_MTTestLib4.ToMetadataReference() }); 1145new MetadataReference[] { NetFramework.mscorlib, varC_MTTestLib4.ToMetadataReference(), varC_MTTestLib2.ToMetadataReference(), varC_MTTestLib3.ToMetadataReference() }); 1159new MetadataReference[] { NetFramework.mscorlib, varC_MTTestLib4.ToMetadataReference() }); 1169NetFramework.mscorlib, 1423NetFramework.mscorlib, 1433NetFramework.mscorlib, 1472NetFramework.mscorlib, 1489NetFramework.mscorlib, 1557NetFramework.mscorlib, 1576NetFramework.mscorlib, 1681NetFramework.mscorlib, 1693NetFramework.mscorlib, 1705NetFramework.mscorlib, 1782NetFramework.mscorlib, 1801NetFramework.mscorlib, 1813NetFramework.mscorlib, 2085new[] { NetFramework.mscorlib }); 2107new MetadataReference[] { NetFramework.mscorlib }); 2122new MetadataReference[] { NetFramework.mscorlib }); 2137new MetadataReference[] { NetFramework.mscorlib }); 2152new MetadataReference[] { NetFramework.mscorlib }); 2234new MetadataReference[] { NetFramework.mscorlib, 2255NetFramework.mscorlib, 2560NetFramework.mscorlib, 2614var mscorlibRef = NetFramework.mscorlib;
Symbols\InterfaceImplementationTests.cs (1)
865NetFramework.mscorlib,
Symbols\Metadata\PE\DynamicTransformsTests.cs (1)
32NetFramework.mscorlib)[0];
Symbols\Metadata\PE\LoadingEvents.cs (11)
26NetFramework.mscorlib, 43NetFramework.mscorlib, 60NetFramework.mscorlib, 125NetFramework.mscorlib, 148NetFramework.mscorlib, 171NetFramework.mscorlib, 189NetFramework.mscorlib, 216NetFramework.mscorlib, 248NetFramework.mscorlib, 284NetFramework.mscorlib, 324NetFramework.mscorlib,
Symbols\Metadata\PE\LoadingMethods.cs (5)
442NetFramework.mscorlib, 478NetFramework.mscorlib, 569NetFramework.mscorlib, 662NetFramework.mscorlib, 696NetFramework.mscorlib,
Symbols\Metadata\PE\LoadingProperties.cs (5)
51NetFramework.mscorlib, 83NetFramework.mscorlib, 119NetFramework.mscorlib, 159NetFramework.mscorlib, 222NetFramework.mscorlib,
Symbols\Retargeting\RetargetCustomAttributes.cs (1)
172return NetFramework.mscorlib;
Symbols\Retargeting\RetargetCustomModifiers.cs (2)
27var newMsCorLib = NetFramework.mscorlib; 134var newMsCorLib = NetFramework.mscorlib;
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (4)
50NetFramework.mscorlib, 115NetFramework.mscorlib, 345NetFramework.mscorlib, 379NetFramework.mscorlib,
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CSharpTestBase.cs (2)
2278references: new List<MetadataReference>() { NetFramework.mscorlib, NetFramework.SystemCore, NetFramework.MicrosoftCSharp }, 2285references: new List<MetadataReference>() { NetFramework.mscorlib, NetFramework.SystemCore, NetFramework.MicrosoftCSharp, reference.EmitToImageReference() },
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (8)
CodeGeneration\AddAttributesTests.cs (1)
34metadataReferences: [NetFramework.mscorlib]));
CodeGeneration\AddImportsTests.cs (3)
38metadataReferences: [NetFramework.mscorlib])); 784metadataReferences: [NetFramework.mscorlib])); 838.AddReferences(NetFramework.mscorlib);
CodeGeneration\SymbolEditorTests.cs (1)
43metadataReferences: [NetFramework.mscorlib]);
CodeGeneration\SyntaxGeneratorTests.cs (3)
30references: [NetFramework.mscorlib, NetFramework.System]); 44.AddReferences(NetFramework.mscorlib, NetFramework.System, NetFramework.SystemCore, NetFramework.SystemRuntime, NetFramework.SystemValueTuple) 3999.AddReferences(NetFramework.mscorlib)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
CodeGeneration\AbstractCodeGenerationTests.cs (1)
35var document = project.AddMetadataReference(NetFramework.mscorlib)
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
79.AddMetadataReference(NetFramework.mscorlib)
Preview\PreviewWorkspaceTests.cs (1)
73.AddMetadataReference(NetFramework.mscorlib)
Utilities\SymbolEquivalenceComparerTests.cs (3)
1733var references = new[] { NetFramework.mscorlib }; 1833var c1 = (Compilation)CS.CSharpCompilation.Create("comp1", Array.Empty<SyntaxTree>(), [NetFramework.mscorlib, r1]); 1834var c2 = (Compilation)CS.CSharpCompilation.Create("comp2", Array.Empty<SyntaxTree>(), [NetFramework.mscorlib, r2]);
Microsoft.CodeAnalysis.Test.Utilities (5)
TargetFrameworkUtil.cs (3)
202NetFramework.mscorlib, 239NetFramework.mscorlib 281NetFramework.mscorlib,
TestBase.cs (2)
87() => new[] { NetFramework.mscorlib, NetFramework.System, NetFramework.SystemCore, NetFramework.MicrosoftVisualBasic }, 213public static MetadataReference MscorlibRef_v4_0_30316_17626 => NetFramework.mscorlib;
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
CodeGen\CodeGenTuples.vb (1)
6460allReferences:={ValueTupleRef, NetFramework.mscorlib, NetFramework.SystemCore, NetFramework.SystemRuntime, NetFramework.MicrosoftVisualBasic},
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (1)
9129Dim compilation0 = CompilationUtils.CreateEmptyCompilation({source0.Tree}, {NetFramework.mscorlib}, options:=ComSafeDebugDll)
Emit\NoPiaEmbedTypes.vb (1)
1766references:={NetFramework.mscorlib, NetFramework.System, compilation0.EmitToImageReference(embedInteropTypes:=True)})
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Compilation\CompilationAPITests.vb (5)
533Dim ref1 = NetFramework.mscorlib 840Dim ref1 = NetFramework.mscorlib 1056Dim ref1 = NetFramework.mscorlib 1259Dim ref1 = NetFramework.mscorlib 2488Dim metadata = NetFramework.mscorlib
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (73)
SymbolsTests\AssemblyAndNamespaceTests.vb (1)
518Dim aliasedCorlib = NetFramework.mscorlib.WithAliases(ImmutableArray.Create("Goo"))
SymbolsTests\CompilationCreationTests.vb (37)
242Dim mscorlibRef = NetFramework.mscorlib 670</text>.Value}, {NetFramework.mscorlib}) 683</text>.Value}, {NetFramework.mscorlib, varC_MTTestLib1_V1.ToMetadataReference()}) 690{NetFramework.mscorlib, varC_MTTestLib2.ToMetadataReference(), varC_MTTestLib1_V1.ToMetadataReference()}) 716</text>.Value}, {NetFramework.mscorlib}) 737</text>.Value}, {NetFramework.mscorlib, varC_MTTestLib2.ToMetadataReference(), varC_MTTestLib1_V2.ToMetadataReference()}) 742Dim c3 = CreateEmptyCompilation(New AssemblyIdentity("c3"), Nothing, {NetFramework.mscorlib, varC_MTTestLib2.ToMetadataReference(), varC_MTTestLib1_V2.ToMetadataReference(), varC_MTTestLib3.ToMetadataReference()}) 790</text>.Value}, {NetFramework.mscorlib}) 822</text>.Value}, {NetFramework.mscorlib, varC_MTTestLib2.ToMetadataReference(), varC_MTTestLib1_V3.ToMetadataReference(), varC_MTTestLib3.ToMetadataReference()}) 832{NetFramework.mscorlib, 902Dim c5 = CreateEmptyCompilation(New AssemblyIdentity("c5"), Nothing, {NetFramework.mscorlib, varC_MTTestLib3.ToMetadataReference()}) 906Dim c6 = CreateEmptyCompilation(New AssemblyIdentity("c6"), Nothing, {NetFramework.mscorlib, varC_MTTestLib2.ToMetadataReference()}) 910Dim c7 = CreateEmptyCompilation(New AssemblyIdentity("c6"), Nothing, {NetFramework.mscorlib, varC_MTTestLib2.ToMetadataReference(), varC_MTTestLib3.ToMetadataReference(), varC_MTTestLib4.ToMetadataReference()}) 953{NetFramework.mscorlib, 966Dim c9 = CreateEmptyCompilation(New AssemblyIdentity("c9"), Nothing, {NetFramework.mscorlib, varC_MTTestLib4.ToMetadataReference()}) 972{NetFramework.mscorlib, 1149{NetFramework.mscorlib, 1156{NetFramework.mscorlib, 1181{NetFramework.mscorlib, 1194{NetFramework.mscorlib, 1240{NetFramework.mscorlib, 1256{NetFramework.mscorlib, 1330{NetFramework.mscorlib, 1340{NetFramework.mscorlib, 1350{NetFramework.mscorlib, 1406{NetFramework.mscorlib, 1428{NetFramework.mscorlib, 1438{NetFramework.mscorlib, 1646{NetFramework.mscorlib}) 1654{NetFramework.mscorlib}) 1668{NetFramework.mscorlib}) 1676{NetFramework.mscorlib}) 1691{NetFramework.mscorlib}) 1765{NetFramework.mscorlib, 1783{NetFramework.mscorlib, 2000{NetFramework.mscorlib, 2042Dim mscorlibRef = NetFramework.mscorlib
SymbolsTests\Metadata\PE\LoadingEvents.vb (11)
20Dim assemblies = MetadataTestHelpers.GetSymbolsForReferences({NetFramework.mscorlib, TestReferences.SymbolsTests.Events}) 29Dim assemblies = MetadataTestHelpers.GetSymbolsForReferences({NetFramework.mscorlib, TestReferences.SymbolsTests.Events}) 38Dim assemblies = MetadataTestHelpers.GetSymbolsForReferences({NetFramework.mscorlib, TestReferences.SymbolsTests.Events}) 128Dim assemblies = MetadataTestHelpers.GetSymbolsForReferences({NetFramework.mscorlib, TestReferences.SymbolsTests.Events}) 139Dim assemblies = MetadataTestHelpers.GetSymbolsForReferences({NetFramework.mscorlib, TestReferences.SymbolsTests.Events}) 150Dim assemblies = MetadataTestHelpers.GetSymbolsForReferences({NetFramework.mscorlib, TestReferences.SymbolsTests.Events}) 159Dim assemblies = MetadataTestHelpers.GetSymbolsForReferences({NetFramework.mscorlib, TestReferences.SymbolsTests.ExplicitInterfaceImplementation.Events.CSharp}) 174Dim assemblies = MetadataTestHelpers.GetSymbolsForReferences({NetFramework.mscorlib, TestReferences.SymbolsTests.ExplicitInterfaceImplementation.Events.CSharp}) 192Dim assemblies = MetadataTestHelpers.GetSymbolsForReferences({NetFramework.mscorlib, TestReferences.SymbolsTests.ExplicitInterfaceImplementation.Events.CSharp}) 210Dim assemblies = MetadataTestHelpers.GetSymbolsForReferences({NetFramework.mscorlib, TestReferences.SymbolsTests.ExplicitInterfaceImplementation.Events.CSharp}) 231Dim assemblies = MetadataTestHelpers.GetSymbolsForReferences({NetFramework.mscorlib, TestReferences.SymbolsTests.ExplicitInterfaceImplementation.Events.CSharp})
SymbolsTests\Metadata\PE\LoadingMethods.vb (4)
433{NetFramework.mscorlib, 465{NetFramework.mscorlib, 528{NetFramework.mscorlib, 557{NetFramework.mscorlib,
SymbolsTests\Retargeting\RetargetCustomModifiers.vb (2)
32Dim newMsCorLib = NetFramework.mscorlib 106Dim newMsCorLib = NetFramework.mscorlib
SymbolsTests\Retargeting\RetargetingCustomAttributes.vb (1)
161Return NetFramework.mscorlib
SymbolsTests\Source\BaseClassTests.vb (14)
727{NetFramework.mscorlib, C1, C2}) 752{NetFramework.mscorlib, C1, C2}) 770{NetFramework.mscorlib, C1, C2, C3}) 795{NetFramework.mscorlib, C1, C2}) 825{NetFramework.mscorlib, ClassAv1}) 845New MetadataReference() {NetFramework.mscorlib, ClassAv2, New VisualBasicCompilationReference(Comp)}) 881NetFramework.mscorlib, 905New MetadataReference() {NetFramework.mscorlib, ClassAv2, New VisualBasicCompilationReference(Comp)}) 947{NetFramework.mscorlib, ClassAv2}) 979New MetadataReference() {NetFramework.mscorlib, ClassAv1, New VisualBasicCompilationReference(Comp)}) 1008NetFramework.mscorlib, 1040NetFramework.mscorlib, 1076{NetFramework.mscorlib, ClassAv2}) 1108New MetadataReference() {NetFramework.mscorlib, ClassAv1, New VisualBasicCompilationReference(Comp)})
SymbolsTests\SymbolErrorTests.vb (3)
8423{NetFramework.mscorlib, C1, C2}) 8455{NetFramework.mscorlib, C1, C2}) 8487{NetFramework.mscorlib, C1, C2})
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (3)
CodeGeneration\AddImportsTests.vb (1)
39metadataReferences:={NetFramework.mscorlib}))
CodeGeneration\SyntaxGeneratorTests.vb (2)
19Private ReadOnly _emptyCompilation As VisualBasicCompilation = VisualBasicCompilation.Create("empty", references:={NetFramework.mscorlib, NetFramework.System}) 38Return VisualBasicCompilation.Create("test").AddReferences(NetFramework.mscorlib).AddSyntaxTrees(SyntaxFactory.ParseSyntaxTree(code))
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestHostProject`1.cs (1)
152MetadataReferences = metadataReferences ?? new MetadataReference[] { NetFramework.mscorlib };
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
CodeCleanup\AddMissingTokensTests.cs (1)
2732return project.AddMetadataReference(NetFramework.mscorlib)
CodeCleanup\FixIncorrectTokenTests.cs (1)
757return project.AddMetadataReference(NetFramework.mscorlib)
CodeCleanup\ReduceTokenTests.cs (1)
2020return project.AddMetadataReference(NetFramework.mscorlib)
SolutionTests\SolutionTests.cs (2)
49private static readonly MetadataReference s_mscorlib = NetFramework.mscorlib; 4830.WithProjectMetadataReferences(projectId, [NetFramework.mscorlib])
UtilityTest\DocumentationCommentIdTests.cs (1)
20return CSharpCompilation.Create("goo.exe").AddReferences(NetFramework.mscorlib).AddSyntaxTrees(syntaxTree);