617 references to ConsoleApplication
Aspire.Hosting.Analyzers.Tests (1)
AnalyzerTest.cs (1)
23OutputKind = Microsoft.CodeAnalysis.OutputKind.ConsoleApplication
Microsoft.Analyzers.Extra (1)
MakeExeTypesInternalAnalyzer.cs (1)
89if (compilationStartContext.Compilation.Options.OutputKind == OutputKind.ConsoleApplication)
Microsoft.Analyzers.Extra.Tests (2)
Resources\RoslynTestUtils.cs (2)
252proj = proj.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.ConsoleApplication)); 319proj = proj.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.ConsoleApplication));
Microsoft.Analyzers.Local.Tests (2)
Resources\RoslynTestUtils.cs (2)
252proj = proj.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.ConsoleApplication)); 320proj = proj.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.ConsoleApplication));
Microsoft.AspNetCore.App.Analyzers.Test (6)
TestDiagnosticAnalyzer.cs (1)
173return options.WithOutputKind(OutputKind.ConsoleApplication);
Verifiers\CSharpAnalyzerVerifier.cs (1)
41TestState = { OutputKind = OutputKind.ConsoleApplication },
Verifiers\CSharpCodeFixVerifier.cs (2)
37TestState = { OutputKind = OutputKind.ConsoleApplication }, 61TestState = { Sources = { source.ReplaceLineEndings() }, OutputKind = OutputKind.ConsoleApplication },
Verifiers\CSharpSourceGeneratorVerifier.cs (2)
23OutputKind = OutputKind.ConsoleApplication, 41OutputKind = OutputKind.ConsoleApplication,
Microsoft.CodeAnalysis (8)
Compilation\Compilation.cs (4)
2237if (outputKind == OutputKind.ConsoleApplication || 2396case OutputKind.ConsoleApplication: 2412case OutputKind.ConsoleApplication: 2768/// By default both entry points in an executable program (<see cref="OutputKind.ConsoleApplication"/>, <see cref="OutputKind.WindowsApplication"/>, <see cref="OutputKind.WindowsRuntimeApplication"/>)
Compilation\SubsystemVersion.cs (1)
161case OutputKind.ConsoleApplication:
OutputKind.cs (3)
56return value >= OutputKind.ConsoleApplication && value <= OutputKind.WindowsRuntimeApplication; 63case OutputKind.ConsoleApplication: 86case OutputKind.ConsoleApplication:
Microsoft.CodeAnalysis.CSharp (5)
CommandLine\CSharpCommandLineParser.cs (3)
86OutputKind outputKind = OutputKind.ConsoleApplication; 1831return OutputKind.ConsoleApplication; 1850return OutputKind.ConsoleApplication;
Compilation\CSharpCompilation.cs (1)
344private static readonly CSharpCompilationOptions s_defaultOptions = new CSharpCompilationOptions(OutputKind.ConsoleApplication);
CSharpCompilationOptions.cs (1)
715if (Platform == Platform.AnyCpu32BitPreferred && OutputKind.IsValid() && !(OutputKind == OutputKind.ConsoleApplication || OutputKind == OutputKind.WindowsApplication || OutputKind == OutputKind.WindowsRuntimeApplication))
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_ProgramMain.cs (1)
21=> options.OutputKind is OutputKind.ConsoleApplication or OutputKind.WindowsApplication;
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (46)
src\Analyzers\CSharp\Tests\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionTests.cs (2)
2159OutputKind = OutputKind.ConsoleApplication, 2204OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\MakeMethodAsynchronous\MakeMethodAsynchronousTests.cs (2)
89compilationOptions: new CSharpCompilationOptions(OutputKind.ConsoleApplication)); 92await TestActionCountAsync(initial, count: 1, new TestParameters(compilationOptions: new CSharpCompilationOptions(OutputKind.ConsoleApplication)));
src\Analyzers\CSharp\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests.cs (2)
12677OutputKind = OutputKind.ConsoleApplication, 13023OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\RemoveUnnecessaryLambdaExpression\RemoveUnnecessaryLambdaExpressionTests.cs (2)
1761""", outputKind: OutputKind.ConsoleApplication); 1808outputKind: OutputKind.ConsoleApplication);
src\Analyzers\CSharp\Tests\RemoveUnreachableCode\RemoveUnreachableCodeTests.cs (7)
915OutputKind = OutputKind.ConsoleApplication, 938OutputKind = OutputKind.ConsoleApplication, 963OutputKind = OutputKind.ConsoleApplication, 994OutputKind = OutputKind.ConsoleApplication, 1022OutputKind = OutputKind.ConsoleApplication, 1049OutputKind = OutputKind.ConsoleApplication, 1076OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\RemoveUnusedMembers\RemoveUnusedMembersTests.cs (3)
490OutputKind = OutputKind.ConsoleApplication, 509OutputKind = OutputKind.ConsoleApplication, 1173OutputKind = OutputKind.ConsoleApplication
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForBuilderTests.cs (2)
1409OutputKind = OutputKind.ConsoleApplication, 1446OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForCreateTests.cs (2)
1016OutputKind = OutputKind.ConsoleApplication, 1044OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForEmptyTests.cs (2)
1291OutputKind = OutputKind.ConsoleApplication, 1318OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForFluentTests.cs (2)
1999OutputKind = OutputKind.ConsoleApplication, 2035OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForStackAllocTests.cs (2)
1599OutputKind = OutputKind.ConsoleApplication, 1635OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseCollectionInitializer\UseCollectionInitializerTests.cs (2)
1661""", OutputKind.ConsoleApplication); 1682""", OutputKind.ConsoleApplication, LanguageVersion.CSharp12);
src\Analyzers\CSharp\Tests\UseCollectionInitializer\UseCollectionInitializerTests_CollectionExpression.cs (1)
2800""", OutputKind.ConsoleApplication);
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForAssignmentTests.cs (1)
2143OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseDeconstruction\UseDeconstructionTests.cs (3)
875OutputKind = OutputKind.ConsoleApplication 906OutputKind = OutputKind.ConsoleApplication 910OutputKind = OutputKind.ConsoleApplication
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForLocalFunctionsAnalyzerTests.cs (2)
892OutputKind = OutputKind.ConsoleApplication, 924OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseNullPropagation\UseNullPropagationTests.cs (1)
196""", OutputKind.ConsoleApplication);
src\Analyzers\CSharp\Tests\UseObjectInitializer\UseObjectInitializerTests.cs (1)
1258TestState = { OutputKind = OutputKind.ConsoleApplication },
src\Analyzers\CSharp\Tests\UseSimpleUsingStatement\UseSimpleUsingStatementTests.cs (6)
1947OutputKind = OutputKind.ConsoleApplication, 1982OutputKind = OutputKind.ConsoleApplication, 2008OutputKind = OutputKind.ConsoleApplication, 2047OutputKind = OutputKind.ConsoleApplication, 2082OutputKind = OutputKind.ConsoleApplication, 2119OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseTupleSwap\UseTupleSwapTests.cs (1)
455OutputKind = OutputKind.ConsoleApplication,
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (7)
CommandLineTests.cs (7)
1314Assert.Equal(OutputKind.ConsoleApplication, parsedArgs.CompilationOptions.OutputKind); 1365Assert.Equal(OutputKind.ConsoleApplication, parsedArgs.CompilationOptions.OutputKind); 2560Assert.Equal(new CSharpCompilationOptions(OutputKind.ConsoleApplication).OptimizationLevel, parsedArgs.CompilationOptions.OptimizationLevel); 7552CheckManifestString(source, OutputKind.ConsoleApplication, explicitManifest: null, expectedManifest: 7695CheckManifestString(source, OutputKind.ConsoleApplication, explicitManifest, expectedManifest); 7773case OutputKind.ConsoleApplication: 12447Tuple.Create("exe", OutputKind.ConsoleApplication),
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
CodeActions\MoveStaticMembers\CSharpMoveStaticMembersTests.cs (3)
3390OutputKind = OutputKind.ConsoleApplication 3410OutputKind = OutputKind.ConsoleApplication 3433OutputKind = OutputKind.ConsoleApplication
Completion\CompletionProviders\CrefCompletionProviderTests.cs (1)
444using var workspace = EditorTestWorkspace.Create(LanguageNames.CSharp, new CSharpCompilationOptions(OutputKind.ConsoleApplication), new CSharpParseOptions(), [text], composition: GetComposition());
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (1)
3058using var workspace = EditorTestWorkspace.Create(LanguageNames.CSharp, new CSharpCompilationOptions(OutputKind.ConsoleApplication), new CSharpParseOptions(), [text], composition: GetComposition());
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (37)
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\CovariantReturnTests.cs (1)
428var compilationOptions = new VisualBasic.VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptimizationLevel(OptimizationLevel.Release);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
307OutputKind.ConsoleApplication,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
1283var options = new CSharpCompilationOptions(OutputKind.ConsoleApplication, generalDiagnosticOption: generalOption, specificDiagnosticOptions: specificOptions);
RefReadonlyParameterTests.cs (1)
5799compilationOptions: new VisualBasic.VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
Microsoft.CodeAnalysis.CSharp.Features (2)
SemanticSearch\CSharpSemanticSearchUtilities.cs (1)
12public static readonly CSharpCompilationOptions CompilationOptions = new(OutputKind.ConsoleApplication);
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_ProgramMain.cs (1)
21=> options.OutputKind is OutputKind.ConsoleApplication or OutputKind.WindowsApplication;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (161)
ConvertProgram\ConvertToProgramMainAnalyzerTests.cs (23)
32TestState = { OutputKind = OutputKind.ConsoleApplication }, 79TestState = { OutputKind = OutputKind.ConsoleApplication }, 107TestState = { OutputKind = OutputKind.ConsoleApplication }, 137TestState = { OutputKind = OutputKind.ConsoleApplication }, 168TestState = { OutputKind = OutputKind.ConsoleApplication }, 191TestState = { OutputKind = OutputKind.ConsoleApplication }, 214TestState = { OutputKind = OutputKind.ConsoleApplication }, 245TestState = { OutputKind = OutputKind.ConsoleApplication }, 276TestState = { OutputKind = OutputKind.ConsoleApplication }, 315TestState = { OutputKind = OutputKind.ConsoleApplication }, 343TestState = { OutputKind = OutputKind.ConsoleApplication }, 375TestState = { OutputKind = OutputKind.ConsoleApplication }, 404TestState = { OutputKind = OutputKind.ConsoleApplication }, 435TestState = { OutputKind = OutputKind.ConsoleApplication }, 463TestState = { OutputKind = OutputKind.ConsoleApplication }, 492TestState = { OutputKind = OutputKind.ConsoleApplication }, 517TestState = { OutputKind = OutputKind.ConsoleApplication }, 541TestState = { OutputKind = OutputKind.ConsoleApplication }, 576TestState = { OutputKind = OutputKind.ConsoleApplication }, 615TestState = { OutputKind = OutputKind.ConsoleApplication }, 649TestState = { OutputKind = OutputKind.ConsoleApplication }, 688TestState = { OutputKind = OutputKind.ConsoleApplication }, 725TestState = { OutputKind = OutputKind.ConsoleApplication },
ConvertProgram\ConvertToProgramMainRefactoringTests.cs (7)
35TestState = { OutputKind = OutputKind.ConsoleApplication }, 54TestState = { OutputKind = OutputKind.ConsoleApplication }, 81TestState = { OutputKind = OutputKind.ConsoleApplication }, 116TestState = { OutputKind = OutputKind.ConsoleApplication }, 134TestState = { OutputKind = OutputKind.ConsoleApplication }, 152TestState = { OutputKind = OutputKind.ConsoleApplication }, 178TestState = { OutputKind = OutputKind.ConsoleApplication },
ConvertProgram\ConvertToTopLevelStatementsAnalyzerTests.cs (55)
48TestState = { OutputKind = OutputKind.ConsoleApplication }, 70TestState = { OutputKind = OutputKind.ConsoleApplication }, 93TestState = { OutputKind = OutputKind.ConsoleApplication }, 118TestState = { OutputKind = OutputKind.ConsoleApplication }, 146TestState = { OutputKind = OutputKind.ConsoleApplication }, 174TestState = { OutputKind = OutputKind.ConsoleApplication }, 203TestState = { OutputKind = OutputKind.ConsoleApplication }, 226TestState = { OutputKind = OutputKind.ConsoleApplication }, 270TestState = { OutputKind = OutputKind.ConsoleApplication }, 292TestState = { OutputKind = OutputKind.ConsoleApplication }, 319TestState = { OutputKind = OutputKind.ConsoleApplication }, 346TestState = { OutputKind = OutputKind.ConsoleApplication }, 370TestState = { OutputKind = OutputKind.ConsoleApplication }, 391TestState = { OutputKind = OutputKind.ConsoleApplication }, 413TestState = { OutputKind = OutputKind.ConsoleApplication }, 435TestState = { OutputKind = OutputKind.ConsoleApplication }, 461TestState = { OutputKind = OutputKind.ConsoleApplication }, 483TestState = { OutputKind = OutputKind.ConsoleApplication }, 506TestState = { OutputKind = OutputKind.ConsoleApplication }, 529TestState = { OutputKind = OutputKind.ConsoleApplication }, 554TestState = { OutputKind = OutputKind.ConsoleApplication }, 579TestState = { OutputKind = OutputKind.ConsoleApplication }, 604TestState = { OutputKind = OutputKind.ConsoleApplication }, 629TestState = { OutputKind = OutputKind.ConsoleApplication }, 654TestState = { OutputKind = OutputKind.ConsoleApplication }, 678TestState = { OutputKind = OutputKind.ConsoleApplication }, 702TestState = { OutputKind = OutputKind.ConsoleApplication }, 728TestState = { OutputKind = OutputKind.ConsoleApplication }, 754TestState = { OutputKind = OutputKind.ConsoleApplication }, 778TestState = { OutputKind = OutputKind.ConsoleApplication }, 802TestState = { OutputKind = OutputKind.ConsoleApplication }, 826TestState = { OutputKind = OutputKind.ConsoleApplication }, 848TestState = { OutputKind = OutputKind.ConsoleApplication }, 875TestState = { OutputKind = OutputKind.ConsoleApplication }, 902TestState = { OutputKind = OutputKind.ConsoleApplication }, 929TestState = { OutputKind = OutputKind.ConsoleApplication }, 956TestState = { OutputKind = OutputKind.ConsoleApplication }, 983TestState = { OutputKind = OutputKind.ConsoleApplication }, 1010TestState = { OutputKind = OutputKind.ConsoleApplication }, 1037TestState = { OutputKind = OutputKind.ConsoleApplication }, 1064TestState = { OutputKind = OutputKind.ConsoleApplication }, 1093TestState = { OutputKind = OutputKind.ConsoleApplication }, 1117TestState = { OutputKind = OutputKind.ConsoleApplication }, 1146TestState = { OutputKind = OutputKind.ConsoleApplication }, 1183TestState = { OutputKind = OutputKind.ConsoleApplication }, 1220TestState = { OutputKind = OutputKind.ConsoleApplication }, 1261TestState = { OutputKind = OutputKind.ConsoleApplication }, 1288TestState = { OutputKind = OutputKind.ConsoleApplication }, 1329TestState = { OutputKind = OutputKind.ConsoleApplication }, 1368TestState = { OutputKind = OutputKind.ConsoleApplication }, 1410TestState = { OutputKind = OutputKind.ConsoleApplication }, 1450TestState = { OutputKind = OutputKind.ConsoleApplication }, 1480TestState = { OutputKind = OutputKind.ConsoleApplication }, 1509TestState = { OutputKind = OutputKind.ConsoleApplication }, 1554TestState = { OutputKind = OutputKind.ConsoleApplication },
ConvertProgram\ConvertToTopLevelStatementsRefactoringTests.cs (8)
35TestState = { OutputKind = OutputKind.ConsoleApplication }, 62TestState = { OutputKind = OutputKind.ConsoleApplication }, 85TestState = { OutputKind = OutputKind.ConsoleApplication }, 134TestState = { OutputKind = OutputKind.ConsoleApplication }, 165TestState = { OutputKind = OutputKind.ConsoleApplication }, 189TestState = { OutputKind = OutputKind.ConsoleApplication }, 213TestState = { OutputKind = OutputKind.ConsoleApplication }, 240TestState = { OutputKind = OutputKind.ConsoleApplication },
ConvertToRawString\ConvertInterpolatedStringToRawStringTests.cs (3)
1178"""", outputKind: OutputKind.ConsoleApplication); 1640"""", outputKind: OutputKind.ConsoleApplication); 1657"""", index: 1, outputKind: OutputKind.ConsoleApplication);
ConvertToRawString\ConvertRegularStringToRawStringTests.cs (3)
217"""", outputKind: OutputKind.ConsoleApplication); 555"""", outputKind: OutputKind.ConsoleApplication); 572"""", index: 1, outputKind: OutputKind.ConsoleApplication);
ExtractClass\ExtractClassTests.cs (1)
2846OutputKind = OutputKind.ConsoleApplication
ExtractMethod\ExtractLocalFunctionTests.cs (6)
5192OutputKind = OutputKind.ConsoleApplication, 5233OutputKind = OutputKind.ConsoleApplication, 5282OutputKind = OutputKind.ConsoleApplication, 5335OutputKind = OutputKind.ConsoleApplication, 5365OutputKind = OutputKind.ConsoleApplication, 5397OutputKind = OutputKind.ConsoleApplication,
ExtractMethod\ExtractMethodCodeRefactoringTests.cs (4)
5048OutputKind = OutputKind.ConsoleApplication, 5080OutputKind = OutputKind.ConsoleApplication, 5122OutputKind = OutputKind.ConsoleApplication, 5170OutputKind = OutputKind.ConsoleApplication,
ReplaceConditionalWithStatements\ReplaceConditionalWithStatementsTests.cs (5)
191TestState = { OutputKind = OutputKind.ConsoleApplication }, 220TestState = { OutputKind = OutputKind.ConsoleApplication }, 501TestState = { OutputKind = OutputKind.ConsoleApplication }, 530TestState = { OutputKind = OutputKind.ConsoleApplication }, 559TestState = { OutputKind = OutputKind.ConsoleApplication },
src\Analyzers\CSharp\Tests\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionTests.cs (2)
2159OutputKind = OutputKind.ConsoleApplication, 2204OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\MakeMethodAsynchronous\MakeMethodAsynchronousTests.cs (2)
89compilationOptions: new CSharpCompilationOptions(OutputKind.ConsoleApplication)); 92await TestActionCountAsync(initial, count: 1, new TestParameters(compilationOptions: new CSharpCompilationOptions(OutputKind.ConsoleApplication)));
src\Analyzers\CSharp\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests.cs (2)
12677OutputKind = OutputKind.ConsoleApplication, 13023OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\RemoveUnnecessaryLambdaExpression\RemoveUnnecessaryLambdaExpressionTests.cs (2)
1761""", outputKind: OutputKind.ConsoleApplication); 1808outputKind: OutputKind.ConsoleApplication);
src\Analyzers\CSharp\Tests\RemoveUnreachableCode\RemoveUnreachableCodeTests.cs (7)
915OutputKind = OutputKind.ConsoleApplication, 938OutputKind = OutputKind.ConsoleApplication, 963OutputKind = OutputKind.ConsoleApplication, 994OutputKind = OutputKind.ConsoleApplication, 1022OutputKind = OutputKind.ConsoleApplication, 1049OutputKind = OutputKind.ConsoleApplication, 1076OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\RemoveUnusedMembers\RemoveUnusedMembersTests.cs (3)
490OutputKind = OutputKind.ConsoleApplication, 509OutputKind = OutputKind.ConsoleApplication, 1173OutputKind = OutputKind.ConsoleApplication
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForBuilderTests.cs (2)
1409OutputKind = OutputKind.ConsoleApplication, 1446OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForCreateTests.cs (2)
1016OutputKind = OutputKind.ConsoleApplication, 1044OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForEmptyTests.cs (2)
1291OutputKind = OutputKind.ConsoleApplication, 1318OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForFluentTests.cs (2)
1999OutputKind = OutputKind.ConsoleApplication, 2035OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForStackAllocTests.cs (2)
1599OutputKind = OutputKind.ConsoleApplication, 1635OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseCollectionInitializer\UseCollectionInitializerTests.cs (2)
1661""", OutputKind.ConsoleApplication); 1682""", OutputKind.ConsoleApplication, LanguageVersion.CSharp12);
src\Analyzers\CSharp\Tests\UseCollectionInitializer\UseCollectionInitializerTests_CollectionExpression.cs (1)
2800""", OutputKind.ConsoleApplication);
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForAssignmentTests.cs (1)
2143OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseDeconstruction\UseDeconstructionTests.cs (3)
875OutputKind = OutputKind.ConsoleApplication 906OutputKind = OutputKind.ConsoleApplication 910OutputKind = OutputKind.ConsoleApplication
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForLocalFunctionsAnalyzerTests.cs (2)
892OutputKind = OutputKind.ConsoleApplication, 924OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseNullPropagation\UseNullPropagationTests.cs (1)
196""", OutputKind.ConsoleApplication);
src\Analyzers\CSharp\Tests\UseObjectInitializer\UseObjectInitializerTests.cs (1)
1258TestState = { OutputKind = OutputKind.ConsoleApplication },
src\Analyzers\CSharp\Tests\UseSimpleUsingStatement\UseSimpleUsingStatementTests.cs (6)
1947OutputKind = OutputKind.ConsoleApplication, 1982OutputKind = OutputKind.ConsoleApplication, 2008OutputKind = OutputKind.ConsoleApplication, 2047OutputKind = OutputKind.ConsoleApplication, 2082OutputKind = OutputKind.ConsoleApplication, 2119OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\UseTupleSwap\UseTupleSwapTests.cs (1)
455OutputKind = OutputKind.ConsoleApplication,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\InterpolationTests.cs (4)
1159var compOptions = new CSharpCompilationOptions(OutputKind.ConsoleApplication); 1262var compOptions = new CSharpCompilationOptions(OutputKind.ConsoleApplication); 1370var compOptions = new CSharpCompilationOptions(OutputKind.ConsoleApplication); 1422var compOptions = new CSharpCompilationOptions(OutputKind.ConsoleApplication);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (51)
Compilation\CSharpCompilationOptionsTests.cs (50)
38TestPropertyGeneric(new CSharpCompilationOptions(OutputKind.ConsoleApplication), factory, getter, validNonDefaultValue); 103TestPropertyGeneric(new CSharpCompilationOptions(OutputKind.ConsoleApplication), factory, getter, validNonDefaultValue); 147new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithScriptClassName(null).VerifyErrors( 151new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithScriptClassName("blah\0goo").VerifyErrors( 155new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithScriptClassName("").VerifyErrors( 159Assert.Equal(0, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithMainTypeName(null).Errors.Length); 160new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithMainTypeName("blah\0goo").VerifyErrors( 164new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithMainTypeName("").VerifyErrors( 168new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithOutputKind((OutputKind)Int32.MaxValue).VerifyErrors( 172new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithOutputKind((OutputKind)Int32.MinValue).VerifyErrors( 176new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithOptimizationLevel((OptimizationLevel)Int32.MaxValue).VerifyErrors( 180new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithOptimizationLevel((OptimizationLevel)Int32.MinValue).VerifyErrors( 184new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithPlatform((Platform)Int32.MaxValue).VerifyErrors( 188new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithPlatform((Platform)Int32.MinValue).VerifyErrors( 192var defaultWarnings = new CSharpCompilationOptions(OutputKind.ConsoleApplication); 196Assert.Equal(ReportDiagnostic.Error, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithGeneralDiagnosticOption(ReportDiagnostic.Error).GeneralDiagnosticOption); 197Assert.Equal(ReportDiagnostic.Default, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithGeneralDiagnosticOption(ReportDiagnostic.Default).GeneralDiagnosticOption); 203var actual1 = new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings(new[] { "A", "B" }).Usings; 206var actual2 = new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings(Enumerable.Repeat("A", 1)).Usings; 209Assert.Equal(0, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings("A", "B").WithUsings(null).Usings.Count()); 210Assert.Equal(0, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings("A", "B").WithUsings((string[])null).Usings.Count()); 212new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings(new string[] { null }).VerifyErrors( 216new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings(new string[] { "" }).VerifyErrors( 220new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings(new string[] { "blah\0goo" }).VerifyErrors( 235Assert.Equal(3, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithSpecificDiagnosticOptions(warnings).SpecificDiagnosticOptions.Count); 237Assert.Equal(0, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithSpecificDiagnosticOptions(null).SpecificDiagnosticOptions.Count); 239Assert.Equal(1, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithWarningLevel(1).WarningLevel); 240new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithWarningLevel(-1).VerifyErrors( 244new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithWarningLevel(5).VerifyErrors(); 245new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithWarningLevel(int.MaxValue).VerifyErrors(); 287new CSharpCompilationOptions(OutputKind.ConsoleApplication, usings: new string[] { null }).VerifyErrors( 291new CSharpCompilationOptions(OutputKind.ConsoleApplication, usings: new string[] { "" }).VerifyErrors( 295new CSharpCompilationOptions(OutputKind.ConsoleApplication, usings: new string[] { "blah\0goo" }).VerifyErrors( 299Assert.Equal("Script", new CSharpCompilationOptions(OutputKind.ConsoleApplication, scriptClassName: null).ScriptClassName); 301new CSharpCompilationOptions(OutputKind.ConsoleApplication, scriptClassName: "blah\0goo").VerifyErrors( 305new CSharpCompilationOptions(OutputKind.ConsoleApplication, scriptClassName: "").VerifyErrors( 309Assert.Equal(0, new CSharpCompilationOptions(OutputKind.ConsoleApplication, mainTypeName: null).Errors.Length); 310new CSharpCompilationOptions(OutputKind.ConsoleApplication, mainTypeName: "blah\0goo").VerifyErrors( 314new CSharpCompilationOptions(OutputKind.ConsoleApplication, mainTypeName: "").VerifyErrors( 326new CSharpCompilationOptions(OutputKind.ConsoleApplication, optimizationLevel: (OptimizationLevel)Int32.MaxValue).VerifyErrors( 330new CSharpCompilationOptions(OutputKind.ConsoleApplication, optimizationLevel: (OptimizationLevel)Int32.MinValue).VerifyErrors( 334new CSharpCompilationOptions(OutputKind.ConsoleApplication, platform: (Platform)Int32.MinValue).VerifyErrors( 338new CSharpCompilationOptions(OutputKind.ConsoleApplication, warningLevel: -1).VerifyErrors( 342new CSharpCompilationOptions(OutputKind.ConsoleApplication, warningLevel: 5).VerifyErrors(); 343new CSharpCompilationOptions(OutputKind.ConsoleApplication, warningLevel: int.MaxValue).VerifyErrors(); 345new CSharpCompilationOptions(OutputKind.ConsoleApplication, platform: Platform.AnyCpu32BitPreferred).VerifyErrors(); 417return new CSharpCompilationOptions(OutputKind.ConsoleApplication, 442var options = new CSharpCompilationOptions(OutputKind.ConsoleApplication); 454Assert.Equal(NullableContextOptions.Disable, new CSharpCompilationOptions(OutputKind.ConsoleApplication).NullableContextOptions); 461options[i] = new CSharpCompilationOptions(OutputKind.ConsoleApplication, nullableContextOptions: values[i]);
Symbols\GenericConstraintTests.cs (1)
5707compilationOptions: new Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
CompilingTestBase.cs (1)
32outputKind: OutputKind.ConsoleApplication,
CSharpTestBase.cs (1)
888options = options ?? TestOptions.ReleaseDll.WithOutputKind((expectedOutput != null) ? OutputKind.ConsoleApplication : OutputKind.DynamicallyLinkedLibrary);
TestOptions.cs (2)
73public static readonly CSharpCompilationOptions ReleaseExe = CreateTestOptions(OutputKind.ConsoleApplication, OptimizationLevel.Release); 80public static readonly CSharpCompilationOptions DebugExe = CreateTestOptions(OutputKind.ConsoleApplication, OptimizationLevel.Debug);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Workspace\LanguageServices\CSharpCompilationFactoryService.cs (1)
18private static readonly CSharpCompilationOptions s_defaultOptions = new(OutputKind.ConsoleApplication, concurrentBuild: false);
Microsoft.CodeAnalysis.LanguageServer (1)
LanguageServer\Handler\DebugConfiguration\WorkspaceDebugConfigurationHandler.cs (1)
48var isExe = project.CompilationOptions?.OutputKind is OutputKind.ConsoleApplication or OutputKind.WindowsApplication;
Microsoft.CodeAnalysis.Rebuild.UnitTests (4)
BasicDeterministicKeyBuilderTests.cs (1)
28public static VisualBasicCompilationOptions BasicOptions { get; } = new VisualBasicCompilationOptions(OutputKind.ConsoleApplication, deterministic: true);
CSharpDeterministicKeyBuilderTests.cs (1)
25public static CSharpCompilationOptions Options { get; } = new CSharpCompilationOptions(OutputKind.ConsoleApplication, deterministic: true);
OptionRoundTripTests.cs (1)
30outputKind: OutputKind.ConsoleApplication,
RoundTripUtil.cs (1)
86OutputKind.ConsoleApplication => ".exe",
Microsoft.CodeAnalysis.Test.Utilities (2)
CommonTestBase.cs (1)
92(compilation.Options.OutputKind == OutputKind.ConsoleApplication || compilation.Options.OutputKind == OutputKind.WindowsApplication),
CompilationVerifier.cs (1)
102string extension = mainModule.Kind == OutputKind.ConsoleApplication ? ".exe" : ".dll";
Microsoft.CodeAnalysis.VisualBasic (7)
CommandLine\VisualBasicCommandLineParser.vb (4)
110Dim outputKind As OutputKind = OutputKind.ConsoleApplication 1662Return OutputKind.ConsoleApplication 1675Return OutputKind.ConsoleApplication 1678Return OutputKind.ConsoleApplication
Compilation\VisualBasicCompilation.vb (1)
379options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)
PredefinedPreprocessorSymbols.vb (1)
69Case OutputKind.ConsoleApplication
VisualBasicCompilationOptions.vb (1)
1067Not (OutputKind = OutputKind.ConsoleApplication OrElse OutputKind = OutputKind.WindowsApplication OrElse OutputKind = OutputKind.WindowsRuntimeApplication) Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (4)
src\Analyzers\VisualBasic\Tests\AddExplicitCast\AddExplicitCastTests.vb (1)
514End Enum", compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optionStrict:=OptionStrict.Off))
src\Analyzers\VisualBasic\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryParenthesesTests.vb (2)
22Private Shared ReadOnly CheckOverflow As CompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, checkOverflow:=True) 23Private Shared ReadOnly DoNotCheckOverflow As CompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, checkOverflow:=False)
src\Features\VisualBasicTest\Diagnostics\AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest_NoEditor.vb (1)
16New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithParseOptions(New VisualBasicParseOptions(LanguageVersion.Latest))
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (5)
CommandLineTests.vb (5)
2910Assert.Equal(OutputKind.ConsoleApplication, parsedArgs.CompilationOptions.OutputKind) 2956Assert.Equal(OutputKind.ConsoleApplication, parsedArgs.CompilationOptions.OutputKind) 6537CheckManifestXml(source, OutputKind.ConsoleApplication, explicitManifest:=Nothing, expectedManifest:=expectedManifest) 6713CheckManifestXml(source, OutputKind.ConsoleApplication, explicitManifest, expectedManifest) 6809Case OutputKind.ConsoleApplication
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (50)
Attributes\AssemblyAttributes.vb (3)
418</compilation>, OutputKind.ConsoleApplication) 432</compilation>, OutputKind.ConsoleApplication) 471Dim comp = CreateCompilationWithMscorlib40(src, OutputKind.ConsoleApplication)
Attributes\AttributeTests_CallerArgumentExpression.vb (1)
193Dim csCompilation = CreateCSharpCompilation("Program2.Log(5 + 2);", referencedAssemblies:=TargetFrameworkUtil.GetReferences(TargetFramework.Net50, {compilation.EmitToImageReference()}), compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.ConsoleApplication))
Attributes\AttributeTests_WellKnownAttributes.vb (2)
7189Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, rootNamespace:="TestAssembly") 7248Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, rootNamespace:="TestAssembly")
BreakingChanges.vb (4)
416compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 468compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.ConsoleApplication), 607compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 660compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
CodeGen\CodeGenEvents.vb (7)
158compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 209compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 984compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1253compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1335compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1417compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1472compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
CodeGen\CodeGenMultiDimensionalArray.vb (1)
1477compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
CodeGen\CodeGenOverridingAndHiding.vb (2)
232compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 300compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
CodeGen\CodeGenTests.vb (9)
1474options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 4764compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 4837compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 8181compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 8214compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 8247compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 8398compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 8441compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 11642compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication))
CodeGen\CodeGenTuples.vb (7)
9376compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 9498compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 9570compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 9645compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 9727compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 9792compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 9853compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
CodeGen\CodeGenWithEvents.vb (6)
1578compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 1652compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1735compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1815compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1869compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1912compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
Emit\CompilationEmitTests.vb (6)
2085compilation = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithPlatform(Platform.X86)) 2089compilation = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithPlatform(Platform.X64)) 2095compilation = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithPlatform(Platform.AnyCpu32BitPreferred)) 2139compilation = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithPlatform(Platform.AnyCpu)) 2200compilation = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithPlatform(Platform.AnyCpu)) 2256compilation = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithPlatform(Platform.X64))
PDB\PDBTests.vb (2)
251Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication) 4041Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication)
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (6)
CodeActions\AbstractVisualBasicCodeActionTest_NoEditor.vb (1)
15New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithParseOptions(New VisualBasicParseOptions(LanguageVersion.Latest))
Diagnostics\AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest_NoEditor.vb (1)
16New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithParseOptions(New VisualBasicParseOptions(LanguageVersion.Latest))
GenerateMethod\GenerateMethodTests.vb (4)
1589compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithGlobalImports(GlobalImport.Parse("System"), GlobalImport.Parse("System.Collections.Generic"))) 1611compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithGlobalImports(GlobalImport.Parse("System"), GlobalImport.Parse("System.Collections.Generic"))) 1637compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithGlobalImports(GlobalImport.Parse("System"))) 1659compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithGlobalImports(GlobalImport.Parse("System")))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (150)
Binding\BindingDelegateCreationTests.vb (3)
1272Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 1308Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 1368Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication))
Binding\BindingErrorTests.vb (2)
19685</compilation>, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)) 19711</compilation>, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom))
Binding\GenericsTests.vb (2)
74compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 396compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, globalImports:=GlobalImport.Parse({"System"})))
Binding\ImplicitVariableTests.vb (4)
1095options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 1136options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 1164options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 1192options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication))
Binding\LookupTests.vb (7)
2812compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 2841compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 2869compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 2902compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 2935compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 2978compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 3014compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
Binding\MethodBodyBindingTests.vb (4)
176Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication) 221Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication) 261Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication) 287Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)
Compilation\CompilationAPITests.vb (1)
2007Dim compilation = CreateCompilationWithMscorlib40(source, OutputKind.ConsoleApplication)
Compilation\MyTemplateTests.vb (3)
122Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication) 227Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication) 282Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication)
Compilation\ReferenceManagerTests.vb (1)
1431compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
Compilation\VisualBasicCompilationOptionsTests.vb (42)
21TestPropertyGeneric(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), factory, getter, validNonDefaultValue) 55TestPropertyGeneric(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), factory, getter, validNonDefaultValue) 132AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithScriptClassName(Nothing).Errors, 137AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithScriptClassName("blah" & ChrW(0) & "goo").Errors, 142AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithScriptClassName("").Errors, 147Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithMainTypeName(Nothing).Errors.IsEmpty) 148AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithMainTypeName("blah" & ChrW(0) & "goo").Errors, 153AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithMainTypeName("").Errors, 158Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace(Nothing).Errors.IsEmpty) 159AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace("blah" & ChrW(0) & "goo").Errors, 164Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace("").Errors.IsEmpty) 166Assert.Equal(0, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithGlobalImports(GlobalImport.Parse("Goo.Bar")).WithGlobalImports(DirectCast(Nothing, IEnumerable(Of GlobalImport))).GlobalImports.Count) 167Assert.Equal(0, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithGlobalImports(GlobalImport.Parse("Goo.Bar")).WithGlobalImports(DirectCast(Nothing, GlobalImport())).GlobalImports.Count) 169AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOutputKind(CType(Int32.MaxValue, OutputKind)).Errors, 174AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOutputKind(CType(Int32.MinValue, OutputKind)).Errors, 179AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptimizationLevel(CType(Int32.MaxValue, OptimizationLevel)).Errors, 184AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptimizationLevel(CType(Int32.MinValue, OptimizationLevel)).Errors, 189AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(CType(3, OptionStrict)).Errors, 194AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithPlatform(CType(Int32.MaxValue, Platform)).Errors, 199AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithPlatform(CType(Int32.MinValue, Platform)).Errors, 238Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, scriptClassName:=Nothing) 241AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, scriptClassName:="blah" & ChrW(0) & "goo").Errors, 246AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, scriptClassName:="").Errors, 251Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, mainTypeName:=Nothing).Errors.IsEmpty) 253AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, mainTypeName:=("blah" & ChrW(0) & "goo")).Errors, 258AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, mainTypeName:="").Errors, 263Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, rootNamespace:=Nothing).Errors.IsEmpty) 265AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, rootNamespace:=("blah" & ChrW(0) & "goo")).Errors, 270Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, rootNamespace:="").Errors.IsEmpty) 282AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optimizationLevel:=CType(Int32.MaxValue, OptimizationLevel)).Errors, 287AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optimizationLevel:=CType(Int32.MinValue, OptimizationLevel)).Errors, 292AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optionStrict:=CType(3, OptionStrict)).Errors, 297AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, platform:=CType(Int32.MaxValue, Platform)).Errors, 302AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, platform:=CType(Int32.MinValue, Platform)).Errors, 310Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace(rootNs) 320Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace(rootNs).Errors.IsEmpty) 322AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace(rootNs).Errors, 348Dim opt = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithGlobalImports(GlobalImport.Parse(importStrings)) 398Assert.Equal(0, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithSpecificDiagnosticOptions(Nothing).SpecificDiagnosticOptions.Count) 417Dim commonoption = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication) 545Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication) 556Dim optionFalse = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)
Diagnostics\CompilationEventTests.vb (1)
202Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication)
Diagnostics\DiagnosticAnalyzerTests.vb (1)
754Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication,
Semantics\ArrayLiteralTests.vb (9)
24Private ReadOnly _strictOff As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off) 25Private ReadOnly _strictOn As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On) 26Private ReadOnly _strictCustom As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom) 803Dim strictOffOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off).WithOverflowChecks(False) 810Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).WithOverflowChecks(False) 845Dim strictOffOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off).WithOverflowChecks(False) 852Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).WithOverflowChecks(False) 887Dim strictOffOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off).WithOverflowChecks(False) 895Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)
Semantics\BinaryOperators.vb (1)
746Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom))
Semantics\Conversions.vb (8)
2779Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 2833compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 2884compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)) 3050Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 3087compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 3227Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 3255compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 4031compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication))
Semantics\ForeachTest.vb (1)
34</compilation>, OutputKind.ConsoleApplication)
Semantics\ForLoopTest.vb (2)
546compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOutputKind(OutputKind.ConsoleApplication))
Semantics\IFOperatorTest.vb (20)
34</compilation>, OutputKind.ConsoleApplication) 94</compilation>, OutputKind.ConsoleApplication) 146</compilation>, OutputKind.ConsoleApplication) 171</compilation>, OutputKind.ConsoleApplication) 216</compilation>, OutputKind.ConsoleApplication) 272</compilation>, OutputKind.ConsoleApplication) 478</compilation>, OutputKind.ConsoleApplication) 514</compilation>, OutputKind.ConsoleApplication) 555</compilation>, OutputKind.ConsoleApplication) 604</compilation>, OutputKind.ConsoleApplication) 646</compilation>, OutputKind.ConsoleApplication) 733</compilation>, OutputKind.ConsoleApplication) 775</compilation>, OutputKind.ConsoleApplication) 805</compilation>, OutputKind.ConsoleApplication) 841</compilation>, OutputKind.ConsoleApplication) 904</compilation>, OutputKind.ConsoleApplication) 951</compilation>, OutputKind.ConsoleApplication) 994</compilation>, OutputKind.ConsoleApplication) 1030</compilation>, OutputKind.ConsoleApplication) 1085</compilation>, OutputKind.ConsoleApplication)
Semantics\LambdaTests.vb (9)
788compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 840compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 898compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 950compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1058compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1098compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1154compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1210compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1267compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On))
Semantics\MethodCalls.vb (1)
2810New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)).
Semantics\MultiDimensionalTest.vb (8)
32</compilation>, OutputKind.ConsoleApplication) 55</compilation>, OutputKind.ConsoleApplication) 133</compilation>, OutputKind.ConsoleApplication) 155</compilation>, OutputKind.ConsoleApplication) 176</compilation>, OutputKind.ConsoleApplication) 209</compilation>, OutputKind.ConsoleApplication) 239</compilation>, OutputKind.ConsoleApplication) 265</compilation>, OutputKind.ConsoleApplication)
Semantics\OptionalArgumentTests.vb (1)
1027options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optionCompareText:=True),
Semantics\OverloadResolution.vb (11)
3857Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)) 4126Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 4129compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 4157Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 4192Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 4230compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 4238compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 4754Dim Compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 4790Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 5008Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 5043Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off))
Semantics\QueryExpressions.vb (3)
2387compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionExplicit(False)) 2844compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 3623Dim verifier = CompileAndVerify(compilationDef, options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom),
Semantics\TypeArgumentInference.vb (4)
852Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 861compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 1033Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 1035Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On))
Semantics\VariableTypeInference.vb (1)
696CompileAndVerify(source, options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), expectedOutput:=<![CDATA[
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (21)
SymbolsTests\AssemblyAndNamespaceTests.vb (1)
23AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace(badRootNS).Errors,
SymbolsTests\GenericConstraintTests.vb (2)
4219compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 4253compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication))
SymbolsTests\Metadata\MetadataMemberTests.vb (1)
615options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
SymbolsTests\Source\BindingsTests.vb (3)
207Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace("Goo.Bar") 273Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace("Goo.Bar") 408Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace("Goo.Bar")
SymbolsTests\Source\NamespaceGlobalTests.vb (2)
28Dim opt = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace("RootNS") 121Dim compilation2 = CompilationUtils.CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace("Global"))
SymbolsTests\SymbolErrorTests.vb (12)
19129Dim opt = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace("_CLS") 19147Dim opt = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace("A._B") 19165Dim opt = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication) 19188Dim opt = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication) 19643Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace("BC40056WRN_UndefinedOrEmptyNamespaceOrClass1") 19874</compilation>, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithOptionStrict(OptionStrict.Custom)) 19882compilation1 = compilation1.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithOptionStrict(OptionStrict.Off)) 19886compilation1 = compilation1.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithOptionStrict(OptionStrict.On)) 19959compilation2 = compilation2.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(False).WithOptionStrict(OptionStrict.On)) 19981</compilation>, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithOptionStrict(OptionStrict.On)) 20030compilation1 = compilation1.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off).WithOptionInfer(True)) 20056</compilation>, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).WithOptionInfer(True))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Parser\VisualBasicParseOptionsTests.vb (1)
74symbols = AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication, empty)
TestSyntaxNodes.vb (1)
3335New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (4)
BasicTestBase.vb (1)
371options = options.WithOutputKind(OutputKind.ConsoleApplication)
TestOptions.vb (3)
22Public Shared ReadOnly ReleaseExe As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optimizationLevel:=OptimizationLevel.Release).WithParseOptions(Regular) 27Public Shared ReadOnly ReleaseDebugExe As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optimizationLevel:=OptimizationLevel.Release). 31Public Shared ReadOnly DebugExe As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optimizationLevel:=OptimizationLevel.Debug).WithParseOptions(Regular)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Workspace\LanguageServices\VisualBasicCompilationFactoryService.vb (1)
16Private Shared ReadOnly s_defaultOptions As New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, concurrentBuild:=False)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
1518await AssertCSCompilationOptionsAsync(OutputKind.ConsoleApplication, options => options.OutputKind); 1716await AssertVBCompilationOptionsAsync(OutputKind.ConsoleApplication, options => options.OutputKind);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestHostProject`1.cs (1)
290case OutputKind.ConsoleApplication:
Workspaces\TestWorkspace_XmlConsumption.cs (1)
408var rootNamespace = new VisualBasicCompilationOptions(OutputKind.ConsoleApplication).RootNamespace;
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
FindReferencesTests.cs (3)
177var prj = sln.GetProject(prj1Id).WithCompilationOptions(new VisualBasic.VisualBasicCompilationOptions(OutputKind.ConsoleApplication, embedVbCoreRuntime: true)); 216var prj = sln.GetProject(prj1Id).WithCompilationOptions(new VisualBasic.VisualBasicCompilationOptions(OutputKind.ConsoleApplication, embedVbCoreRuntime: true)); 280var prj = sln.GetProject(prj1Id).WithCompilationOptions(new CSharp.CSharpCompilationOptions(OutputKind.ConsoleApplication));
Host\LanguageServices\TestCSharpCompilationFactoryServiceWithIncrementalGeneratorTracking.cs (1)
20private static readonly CSharpCompilationOptions s_defaultOptions = new(OutputKind.ConsoleApplication, concurrentBuild: false);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
239OutputFileType.Console => OutputKind.ConsoleApplication,
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (1)
123Return OutputKind.ConsoleApplication
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ApplicationConfigurationGenerator.cs (1)
41and not OutputKind.ConsoleApplication)
System.Windows.Forms.Analyzers.CSharp.Tests (2)
Generators\ApplicationConfigurationGeneratorTests.cs (2)
50if (projectType is not OutputKind.ConsoleApplication 81[InlineData(OutputKind.ConsoleApplication)]