41 references to StandardReferences
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\PDBTests.cs (1)
140
var comp = CSharpCompilation.Create("test", new[] { tree1, tree2 }, TargetFrameworkUtil.
StandardReferences
, TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (16)
OverloadResolutionPriorityTests.cs (6)
663
var comp1_1 = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.
StandardReferences
);
664
var comp1_2 = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.
StandardReferences
);
711
var comp1_1 = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.
StandardReferences
);
712
var comp1_2 = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.
StandardReferences
);
772
var comp1_1 = CreateCompilation(new AssemblyIdentity("Base", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.
StandardReferences
);
773
var comp1_2 = CreateCompilation(new AssemblyIdentity("Base", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.
StandardReferences
);
Semantics\CollectionExpressionTests.cs (2)
38392
var comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), sourceA1, references: TargetFrameworkUtil.
StandardReferences
);
38415
comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(2, 0, 0, 0)), sourceA2, references: TargetFrameworkUtil.
StandardReferences
);
Semantics\ExperimentalAttributeTests.cs (8)
924
var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
925
var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
961
var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
962
var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
989
var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
990
var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
1026
var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
1027
var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (20)
Compilation\ReferenceManagerTests.cs (9)
831
references = TargetFrameworkUtil.
StandardReferences
.AddRange(references);
962
var c = CreateEmptyCompilation("class C {}", TargetFrameworkUtil.
StandardReferences
.AddRange(new[] { ref1, ref2 }));
984
var c = CreateEmptyCompilation("class C {}", TargetFrameworkUtil.
StandardReferences
.AddRange(new[] { ref1, ref2 }));
1056
CreateEmptyCompilation(source, TargetFrameworkUtil.
StandardReferences
.AddRange(new[] { ref1, ref2 })).VerifyDiagnostics();
1133
TargetFrameworkUtil.
StandardReferences
.AddRange(new[] { mdRefLib1, mdRefLib2 }));
1198
TargetFrameworkUtil.
StandardReferences
.AddRange(new[] { mdRefLib1, mdRefLib2 }));
1225
var compilation = CreateEmptyCompilation(source, TargetFrameworkUtil.
StandardReferences
.AddRange(new[] { arSA, enUS }));
2184
TargetFrameworkUtil.
StandardReferences
.AddRange(new[] { refVectors40, refVectors41 }),
2194
TargetFrameworkUtil.
StandardReferences
.AddRange(new[] { refVectors41, refVectors40 }),
Symbols\RequiredMembersTests.cs (10)
2193
var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
2205
var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
2242
var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
2270
var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
2288
var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
2300
var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
2548
var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
2558
var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
2579
var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
2589
var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
Symbols\Retargeting\RetargetingTests.cs (1)
934
var standardReference = TargetFrameworkUtil.
StandardReferences
.ToArray();
Microsoft.CodeAnalysis.Test.Utilities (3)
TargetFrameworkUtil.cs (3)
174
public static ImmutableArray<MetadataReference> StandardAndCSharpReferences =>
StandardReferences
.Add(StandardCSharpReference);
175
public static ImmutableArray<MetadataReference> StandardAndVBRuntimeReferences =>
StandardReferences
.Add(StandardVisualBasicReference);
311
TargetFramework.Standard =>
StandardReferences
,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
PDB\PDBTests.vb (1)
86
Dim comp = VisualBasicCompilation.Create("test", {tree1, tree2}, TargetFrameworkUtil.
StandardReferences
, TestOptions.DebugDll)