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)
664
var comp1_1 = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.
StandardReferences
);
665
var comp1_2 = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.
StandardReferences
);
712
var comp1_1 = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.
StandardReferences
);
713
var comp1_2 = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.
StandardReferences
);
773
var comp1_1 = CreateCompilation(new AssemblyIdentity("Base", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.
StandardReferences
);
774
var comp1_2 = CreateCompilation(new AssemblyIdentity("Base", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.
StandardReferences
);
Semantics\CollectionExpressionTests.cs (2)
38820
var comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), sourceA1, references: TargetFrameworkUtil.
StandardReferences
);
38843
comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(2, 0, 0, 0)), sourceA2, references: TargetFrameworkUtil.
StandardReferences
);
Semantics\ExperimentalAttributeTests.cs (8)
926
var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
927
var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
963
var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
964
var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
991
var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
992
var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
1028
var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.
StandardReferences
);
1029
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)