59 references to WithOutputKind
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
627protected override CompilationOptions CommonWithOutputKind(OutputKind kind) => WithOutputKind(kind);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (41)
CodeGen\SwitchTests.cs (36)
8796options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 8809options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 8863options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 8882options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 8939options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 8952options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9003options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9022options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9077options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9093options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9150options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9167options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9225options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9242options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9300options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9319options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9369options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9385options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9450options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9476options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9581options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9625options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9723options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9774options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9829options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9882options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9934options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 10027options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication)) 10119options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication)) 10170options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 10246options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication).WithMetadataImportOptions(MetadataImportOptions.All)); 10520options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication)) 11028options: TestOptions.ReleaseExe.WithOutputKind(OutputKind.ConsoleApplication), 11286options: TestOptions.ReleaseExe.WithOutputKind(OutputKind.ConsoleApplication), 11544options: TestOptions.ReleaseExe.WithOutputKind(OutputKind.ConsoleApplication), 11973options: TestOptions.ReleaseExe.WithOutputKind(OutputKind.ConsoleApplication),
Emit\CompilationEmitTests.cs (4)
1310options: TestOptions.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule)); 2580options: TestOptions.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule)); 2594options: TestOptions.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule)); 4288var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule));
Emit\EmitMetadataTests.cs (1)
230options: TestOptions.DebugDll.WithOutputKind(OutputKind.NetModule));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Attributes\AttributeTests_IsUnmanaged.cs (3)
771CreateCompilation(text, options: TestOptions.DebugDll.WithOutputKind(outputKind)).VerifyDiagnostics( 794CreateCompilation(text, options: TestOptions.DebugDll.WithOutputKind(outputKind)).VerifyDiagnostics( 814CreateCompilation(text, options: TestOptions.DebugDll.WithOutputKind(outputKind)).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\UseSiteErrorTests.cs (1)
2263options = options.WithOutputKind(OutputKind.NetModule);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Compilation\CompilationAPITests.cs (8)
1972c2 = c1.WithOptions(TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsApplication)); 1978c2 = c1.WithOptions(TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 2417Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule))); 2418Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeMetadata))); 2419Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeApplication))); 2420Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsApplication))); 3094var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 3134var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule));
Compilation\CSharpCompilationOptionsTests.cs (3)
109TestProperty((old, value) => old.WithOutputKind(value), opt => opt.OutputKind, OutputKind.DynamicallyLinkedLibrary); 168new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithOutputKind((OutputKind)Int32.MaxValue).VerifyErrors( 172new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithOutputKind((OutputKind)Int32.MinValue).VerifyErrors(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
888options = options ?? TestOptions.ReleaseDll.WithOutputKind((expectedOutput != null) ? OutputKind.ConsoleApplication : OutputKind.DynamicallyLinkedLibrary);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
147.WithOutputKind(_outputKind)