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