95 references to Mscorlib40
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (33)
CodeGen\CodeGenForEachTests.cs (1)
797
var compilation = CreateCompilationWithILAndMscorlib40(csharp, il, TargetFramework.
Mscorlib40
);
CodeGen\CodeGenRefReadonlyReturnTests.cs (1)
915
comp = CompileAndVerify(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Fails, targetFramework: TargetFramework.
Mscorlib40
);
CodeGen\CodeGenTupleTest.cs (27)
926
", targetFramework: TargetFramework.
Mscorlib40
, references: s_valueTupleRefs);
27039
var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe);
27046
var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe);
27049
var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe, references: comp1Ref);
27053
var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe, references: comp1ImageRef);
27123
var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe);
27130
var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe);
27133
var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe, references: comp1Ref);
27137
var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe, references: comp1ImageRef);
27197
var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe);
27204
var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe);
27207
var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe, references: comp1Ref);
27211
var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe, references: comp1ImageRef);
27275
var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe);
27282
var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe);
27285
var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe, references: comp1Ref);
27289
var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe, references: comp1ImageRef);
27949
var comp = CreateCompilation(source, targetFramework: TargetFramework.
Mscorlib40
, assemblyName: "emptyValueTuple");
27970
var comp2 = CreateCompilation(client, references: new[] { comp.EmitToImageReference() }, targetFramework: TargetFramework.
Mscorlib40
);
28025
var comp = CreateCompilation(source, targetFramework: TargetFramework.
Mscorlib40
, assemblyName: "emptyValueTuple", parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
28059
var comp2 = CreateCompilation(client, references: new[] { comp.EmitToImageReference() }, targetFramework: TargetFramework.
Mscorlib40
);
28092
var comp = CreateCompilation(source + tupleattributes_cs, targetFramework: TargetFramework.
Mscorlib40
);
28155
var comp = CreateCompilation(source + tupleattributes_cs, targetFramework: TargetFramework.
Mscorlib40
);
28186
var comp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples, targetFramework: TargetFramework.
Mscorlib40
);
28300
var comp = CreateCompilation(trivialRemainingTuples, targetFramework: TargetFramework.
Mscorlib40
);
28388
var comp = CreateCompilation(source, targetFramework: TargetFramework.
Mscorlib40
, assemblyName: "customValueTuple");
28483
var comp = CreateCompilation(source, targetFramework: TargetFramework.
Mscorlib40
, assemblyName: "customValueTuple");
CodeGen\FixedSizeBufferTests.cs (1)
1152
var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.
Mscorlib40
, assemblyName: "fixedBuffer");
CodeGen\UnsafeTests.cs (1)
11806
var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.ReleaseExe);
Emit\EmitCustomModifiers.cs (2)
600
var comp = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.
Mscorlib40
, options: TestOptions.ReleaseExe);
656
var comp = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.
Mscorlib40
, options: TestOptions.ReleaseExe);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\PDBUsingTests.cs (1)
2930
var comp = CreateCompilation(source, targetFramework: TargetFramework.
Mscorlib40
);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
5657
var verifier = CompileAndVerify(source, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator, verify: Verification.FailsPEVerify, targetFramework: TargetFramework.
Mscorlib40
);
FirstClassSpanTests.cs (1)
2776
var comp1Ref = CreateCompilation(source1, targetFramework: TargetFramework.
Mscorlib40
)
RefReadonlyParameterTests.cs (3)
5787
var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.
Mscorlib40
).VerifyDiagnostics();
5813
var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.
Mscorlib40
).VerifyDiagnostics();
5838
var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.
Mscorlib40
).VerifyDiagnostics();
Semantics\CollectionExpressionTests.cs (5)
19418
var comp = CreateCompilation(new[] { sourceA, CollectionBuilderAttributeDefinition }, targetFramework: TargetFramework.
Mscorlib40
);
30457
var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.
Mscorlib40
);
30479
comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.
Mscorlib40
);
30511
var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.
Mscorlib40
);
30533
comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.
Mscorlib40
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\ImportsTests.cs (2)
105
targetFramework: TargetFramework.
Mscorlib40
,
146
var comp = CreateCompilation(trees, targetFramework: TargetFramework.
Mscorlib40
, references: new[] { SystemCoreRef.WithAliases(externAliases) });
Semantics\InitOnlyMemberTests.cs (1)
4194
targetFramework: TargetFramework.
Mscorlib40
, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
Semantics\InterpolationTests.cs (4)
1141
[InlineData(TargetFramework.
Mscorlib40
)]
1248
[InlineData(TargetFramework.
Mscorlib40
)]
1351
[InlineData(TargetFramework.
Mscorlib40
)]
1407
[InlineData(TargetFramework.
Mscorlib40
)]
Semantics\NativeIntegerTests.cs (1)
776
var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.
Mscorlib40
);
Semantics\NullableReferenceTypesTests.cs (1)
138489
var verifier1 = CompileAndVerify(source1, symbolValidator: validate, targetFramework: TargetFramework.
Mscorlib40
);
Semantics\RecordStructTests.cs (1)
509
var comp = CreateCompilation(src, targetFramework: TargetFramework.
Mscorlib40
);
Semantics\RefFieldTests.cs (4)
329
var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.
Mscorlib40
);
506
var comp = CreateCompilation(sourceB, targetFramework: TargetFramework.
Mscorlib40
, references: new[] { refA });
11964
var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.
Mscorlib40
);
23417
var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.
Mscorlib40
);
Semantics\StructConstructorTests.cs (1)
3218
var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.
Mscorlib40
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
35
targetFramework: TargetFramework.
Mscorlib40
,
Symbols\CustomModifiersTests.cs (1)
1830
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.
Mscorlib40
, references: new[] { SystemCoreRef });
Symbols\GenericConstraintTests.cs (1)
4317
CompileWithCustomILSource(csharpSource, ilSource, compilationVerifier: compilationVerifier, targetFramework: TargetFramework.
Mscorlib40
);
Symbols\Source\FileModifierTests.cs (1)
4355
var comp = CreateCompilation(source1, targetFramework: TargetFramework.
Mscorlib40
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
CSharpTestBase.cs (4)
830
TargetFramework.
Mscorlib40
,
1129
TargetFramework targetFramework = TargetFramework.
Mscorlib40
,
1146
string sourceFileName = "") => CreateCompilation(source, references, options, parseOptions, TargetFramework.
Mscorlib40
, assemblyName, sourceFileName);
1234
return CreateCompilation(source, references, options, parseOptions, TargetFramework.
Mscorlib40
, assemblyName, sourceFileName);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (2)
118
.AddMetadataReferences(projectId, TargetFrameworkUtil.GetReferences(TargetFramework.
Mscorlib40
))
249
AddMetadataReferences(projectId, TargetFrameworkUtil.GetReferences(TargetFramework.
Mscorlib40
)).
Microsoft.CodeAnalysis.Features.UnitTests (8)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (7)
401
AddMetadataReferences(TargetFrameworkUtil.GetReferences(TargetFramework.
Mscorlib40
)).
680
AddMetadataReferences(TargetFrameworkUtil.GetReferences(TargetFramework.
Mscorlib40
)).
765
AddMetadataReferences(TargetFrameworkUtil.GetReferences(TargetFramework.
Mscorlib40
));
922
AddMetadataReferences(projectId, TargetFrameworkUtil.GetReferences(TargetFramework.
Mscorlib40
)).
2293
AddMetadataReferences(TargetFrameworkUtil.GetReferences(TargetFramework.
Mscorlib40
)).
2361
AddMetadataReferences(TargetFrameworkUtil.GetReferences(TargetFramework.
Mscorlib40
));
2422
AddMetadataReferences(TargetFrameworkUtil.GetReferences(TargetFramework.
Mscorlib40
)).
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
80
.AddMetadataReferences(projectId, TargetFrameworkUtil.GetReferences(TargetFramework.
Mscorlib40
))
Microsoft.CodeAnalysis.Test.Utilities (1)
TargetFrameworkUtil.cs (1)
314
TargetFramework.
Mscorlib40
=> Mscorlib40References,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (16)
CodeGen\CodeGenTuples.vb (16)
22885
Dim comp1 = CreateCompilation(source0 + source1, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe)
22892
Dim comp4 = CreateCompilation(source0 + source2, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe)
22895
Dim comp5 = CreateCompilation(source2, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe, references:=comp1Ref)
22899
Dim comp6 = CreateCompilation(source2, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe, references:=comp1ImageRef)
22955
Dim comp1 = CreateCompilation(source0 + source1, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe)
22962
Dim comp4 = CreateCompilation(source0 + source2, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe)
22965
Dim comp5 = CreateCompilation(source2, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe, references:=comp1Ref)
22969
Dim comp6 = CreateCompilation(source2, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe, references:=comp1ImageRef)
23017
Dim comp1 = CreateCompilation(source0 + source1, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe)
23024
Dim comp4 = CreateCompilation(source0 + source2, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe)
23027
Dim comp5 = CreateCompilation(source2, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe, references:=comp1Ref)
23031
Dim comp6 = CreateCompilation(source2, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe, references:=comp1ImageRef)
23083
Dim comp1 = CreateCompilation(source0 + source1, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe)
23090
Dim comp4 = CreateCompilation(source0 + source2, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe)
23093
Dim comp5 = CreateCompilation(source2, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe, references:=comp1Ref)
23097
Dim comp6 = CreateCompilation(source2, targetFramework:=TargetFramework.
Mscorlib40
, options:=TestOptions.DebugExe, references:=comp1ImageRef)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
CompilationTestUtils.vb (1)
144
Return CreateCompilation(source, references, options, parseOptions, TargetFramework.
Mscorlib40
, assemblyName)