361 references to NetFramework
InteractiveHost.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (39)
InteractiveSessionReferencesTests.cs (39)
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 (20)
Semantics\SemanticErrorTests.cs (13)
12902var systemRef = NetFramework.System;
24290CreateCompilationWithMscorlib461(text, new[] { NetFramework.System, NetFramework.SystemCore, NetFramework.MicrosoftCSharp }, options: TestOptions.ReleaseDll).VerifyDiagnostics(
24331CreateCompilationWithMscorlib461(text, new[] { NetFramework.System, NetFramework.SystemCore, NetFramework.MicrosoftCSharp }).VerifyDiagnostics(
24371CreateCompilationWithMscorlib461(text, new[] { NetFramework.System, NetFramework.SystemCore, NetFramework.MicrosoftCSharp }).VerifyDiagnostics(
24399CreateCompilationWithMscorlib461(text, new[] { NetFramework.System, NetFramework.SystemCore, NetFramework.MicrosoftCSharp }).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (125)
Compilation\CompilationAPITests.cs (28)
357listRef.Add(NetFramework.System.WithEmbedInteropTypes(true));
490var ref1 = NetFramework.mscorlib;
491var ref2 = NetFramework.System;
592{ @"a.dll", NetFramework.MicrosoftCSharp },
593{ @"b.dll", NetFramework.MicrosoftVisualBasic },
599Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd1[0]));
600Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd1[1]));
601Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd2[0]));
602Assert.Same(NetFramework.MicrosoftVisualBasic, c.GetDirectiveReference(rd2[1]));
603Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd3[0]));
965var ref1 = NetFramework.mscorlib;
1185var ref1 = NetFramework.mscorlib;
1186var ref2 = NetFramework.System;
1410var ref1 = NetFramework.mscorlib;
1411var ref2 = NetFramework.System;
1412var ref3 = NetFramework.SystemData;
1413var ref4 = NetFramework.SystemXml;
1451var ref1 = NetFramework.mscorlib;
1472var ref1 = NetFramework.mscorlib;
1473var ref2 = NetFramework.SystemXml;
1486comp.ReplaceReference(newReference: NetFramework.System, oldReference: ref2);
1894var alias = NetFramework.System.WithAliases(new[] { "alias" });
2250NetFramework.mscorlib,
2251NetFramework.System,
2293references: new[] { MscorlibRef, NetFramework.System },
2303NetFramework.mscorlib,
2304NetFramework.System,
2350var metadata = NetFramework.mscorlib;
Compilation\ReferenceManagerTests.cs (8)
1370{ @"C:\A\lib.dll", NetFramework.MicrosoftCSharp },
1371{ @"C:\B\lib.dll", NetFramework.MicrosoftVisualBasic },
1376Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd1));
1377Assert.Same(NetFramework.MicrosoftVisualBasic, c.GetDirectiveReference(rd2));
2211NetFramework.mscorlib,
2212NetFramework.System,
3181var bRef = CreateEmptyCompilation(@"public interface B { System.Diagnostics.Process PB { get; } }", new[] { MscorlibRef_v4_0_30316_17626, NetFramework.System },
3187{ "System, 4.0.0.0", NetFramework.System },
Symbols\CompilationCreationTests.cs (49)
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;
2615var systemCoreRef = NetFramework.SystemCore;
2616var systemRef = NetFramework.System;
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,
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (13)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
Microsoft.CodeAnalysis.Test.Utilities (25)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (11)
CodeGen\CodeGenTuples.vb (8)
6333references:={ValueTupleRef, NetFramework.SystemRuntime, NetFramework.SystemCore},
6451references:={ValueTupleRef, NetFramework.SystemRuntime, NetFramework.SystemCore},
6460allReferences:={ValueTupleRef, NetFramework.mscorlib, NetFramework.SystemCore, NetFramework.SystemRuntime, NetFramework.MicrosoftVisualBasic},
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (15)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (75)
SymbolsTests\CompilationCreationTests.vb (39)
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
2043Dim systemCoreRef = NetFramework.SystemCore
2044Dim systemRef = NetFramework.System
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\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)})
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)