63 references to WithPlatform
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
629
protected override CompilationOptions CommonWithPlatform(Platform platform) =>
WithPlatform
(platform);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
11745
var csc32 = CreateCompilationWithMscorlib46(csc32src, options: TestOptions.ReleaseExe.
WithPlatform
(Platform.X86), assemblyName: "csc32");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (56)
Emit\CompilationEmitTests.cs (51)
2034
WithPlatform
(Platform.Arm64).
3485
var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.
WithPlatform
(Platform.AnyCpu));
3489
compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.
WithPlatform
(Platform.X86));
3493
compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.
WithPlatform
(Platform.X64));
3499
compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.
WithPlatform
(Platform.AnyCpu32BitPreferred));
3505
compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.
WithPlatform
(Platform.Arm));
3523
options: TestOptions.DebugDll.
WithPlatform
(Platform.X86));
3557
options: TestOptions.DebugDll.
WithPlatform
(Platform.X64));
3607
options: TestOptions.DebugDll.
WithPlatform
(Platform.Arm));
3647
options: TestOptions.ReleaseExe.
WithPlatform
(Platform.AnyCpu));
3688
var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.
WithPlatform
(Platform.X64));
3771
compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.
WithPlatform
(Platform.X86));
3776
compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.
WithPlatform
(Platform.X86));
3781
compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.
WithPlatform
(Platform.X86));
3785
compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.
WithPlatform
(Platform.X64));
3790
compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.
WithPlatform
(Platform.X64));
3795
compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.
WithPlatform
(Platform.X64));
4678
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.Itanium), assemblyName: "PlatformMismatch");
4692
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.AnyCpu));
4698
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.AnyCpu));
4704
parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.AnyCpu));
4710
parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.AnyCpu));
4716
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.X86));
4724
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.X86));
4732
parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.X86));
4740
parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.X86));
4763
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.Itanium), assemblyName: "PlatformMismatch");
4776
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.AnyCpu));
4784
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.X86));
4792
parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.AnyCpu));
4808
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.X86), assemblyName: "PlatformMismatch");
4823
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.Itanium));
4831
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.Itanium));
4839
parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.Itanium));
4847
parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.Itanium));
4864
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.X86), assemblyName: "PlatformMismatch");
4878
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.Itanium));
4895
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.AnyCpu), assemblyName: "PlatformMismatch");
4910
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.Itanium));
4916
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.Itanium));
4922
parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.Itanium));
4928
parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.Itanium));
4943
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.AnyCpu), assemblyName: "PlatformMismatch");
4957
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.Itanium));
4972
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.Itanium), assemblyName: "PlatformMismatch");
4987
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.Itanium));
4993
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.Itanium));
4999
parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.Itanium));
5005
parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.Itanium));
5020
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseModule.
WithPlatform
(Platform.Itanium), assemblyName: "PlatformMismatch");
5035
parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithPlatform
(Platform.Itanium));
Emit\DeterministicTests.cs (3)
39
options: options.WithDeterministic(true).
WithPlatform
(platform));
53
var options = (optimize ? TestOptions.ReleaseExe : TestOptions.DebugExe).
WithPlatform
(platform).WithDeterministic(true);
477
.
WithPlatform
(Platform.AnyCpu)
Emit\EmitMetadataTests.cs (2)
2222
var options = TestOptions.ReleaseExe.
WithPlatform
(platform);
2423
options: TestOptions.DebugExe.
WithPlatform
(Platform.X64).WithDeterministic(true),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\CSharpCompilationOptionsTests.cs (3)
121
TestProperty((old, value) => old.
WithPlatform
(value), opt => opt.Platform, Platform.Itanium);
184
new CSharpCompilationOptions(OutputKind.ConsoleApplication).
WithPlatform
((Platform)Int32.MaxValue).VerifyErrors(
188
new CSharpCompilationOptions(OutputKind.ConsoleApplication).
WithPlatform
((Platform)Int32.MinValue).VerifyErrors(
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
OptionRoundTripTests.cs (1)
41
options: BaseCSharpCompilationOptions.
WithPlatform
(platform),
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
148
.
WithPlatform
(platform)