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