1516 references to OutputKind
Aspire.Hosting.Analyzers.Tests (1)
AnalyzerTest.cs (1)
23OutputKind = Microsoft.CodeAnalysis.OutputKind.ConsoleApplication
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
1562var compilationOptions = new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithNullableContextOptions(NullableContextOptions.Enable);
IdeCoreBenchmarks (1)
SwitchStatementBenchmarks.cs (1)
72solution = solution.WithProjectCompilationOptions(projectId, new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
InteractiveHost.UnitTests (1)
InteractiveHostDesktopTests.cs (1)
940new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
Microsoft.Analyzers.Extra (1)
MakeExeTypesInternalAnalyzer.cs (1)
89if (compilationStartContext.Compilation.Options.OutputKind == OutputKind.ConsoleApplication)
Microsoft.Analyzers.Extra.Tests (3)
Resources\RoslynTestUtils.cs (3)
59.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary) 252proj = proj.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.ConsoleApplication)); 319proj = proj.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.ConsoleApplication));
Microsoft.Analyzers.Local.Tests (3)
Resources\RoslynTestUtils.cs (3)
59.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary) 252proj = proj.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.ConsoleApplication)); 320proj = proj.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.ConsoleApplication));
Microsoft.AspNetCore.Analyzer.Testing (4)
CodeFixRunner.cs (2)
46var compilationOptions = ConfigureCompilationOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)); 69return options.WithOutputKind(OutputKind.DynamicallyLinkedLibrary);
DiagnosticAnalyzerRunner.cs (1)
118return options.WithOutputKind(OutputKind.DynamicallyLinkedLibrary);
DiagnosticVerifier.cs (1)
163.WithProjectCompilationOptions(projectId, new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
Microsoft.AspNetCore.Analyzers.Test (3)
src\Shared\AnalyzerTesting\TestCompilation.cs (1)
16new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
StartupAnalyzerTest.cs (1)
662test.TestState.OutputKind = OutputKind.DynamicallyLinkedLibrary;
StartupCSharpAnalyzerTest.cs (1)
17TestState.OutputKind = OutputKind.WindowsApplication;
Microsoft.AspNetCore.App.Analyzers.Test (7)
Infrastructure\WellKnownTypesTests.cs (1)
76var options = new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary);
TestDiagnosticAnalyzer.cs (1)
173return options.WithOutputKind(OutputKind.ConsoleApplication);
Verifiers\CSharpAnalyzerVerifier.cs (1)
42TestState = { OutputKind = OutputKind.ConsoleApplication },
Verifiers\CSharpCodeFixVerifier.cs (2)
38TestState = { OutputKind = OutputKind.ConsoleApplication }, 62TestState = { Sources = { source.ReplaceLineEndings() }, OutputKind = OutputKind.ConsoleApplication },
Verifiers\CSharpSourceGeneratorVerifier.cs (2)
24OutputKind = OutputKind.ConsoleApplication, 42OutputKind = OutputKind.ConsoleApplication,
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
314var compilationOptions = new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
314var compilationOptions = new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
CSharpCompiler.cs (1)
166var csharpCompilationOptions = new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
CompilerFailedExceptionFactoryTest.cs (1)
50var compilation = CSharpCompilation.Create("Test", options: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
Microsoft.CodeAnalysis (77)
CodeGen\PrivateImplementationDetails.cs (1)
129var name = (moduleBuilder.OutputKind == OutputKind.NetModule) ?
CommandLine\CommonCompiler.cs (1)
1682private static Stream? OpenManifestStream(ICommonCompilerFileSystem fileSystem, CommonMessageProvider messageProvider, OutputKind outputKind, CommandLineArguments arguments, DiagnosticBag diagnostics)
Compilation\Compilation.cs (30)
271if (options.OutputKind.IsValid() && options.OutputKind != OutputKind.DynamicallyLinkedLibrary) 2131if (Options.OutputKind == OutputKind.NetModule && !(manifestResources != null && manifestResources.Any())) 2165if (Options.OutputKind != OutputKind.NetModule) 2205OutputKind outputKind = compilationOptions.OutputKind; 2214outputKind = OutputKind.DynamicallyLinkedLibrary; 2237if (outputKind == OutputKind.ConsoleApplication || 2238outputKind == OutputKind.WindowsApplication || 2239outputKind == OutputKind.WindowsRuntimeApplication) 2319dllCharacteristics: GetDllCharacteristics(emitOptions.HighEntropyVirtualAddressSpace, compilationOptions.OutputKind == OutputKind.WindowsRuntimeApplication), 2371private static Characteristics GetCharacteristics(OutputKind outputKind, bool requires32Bit) 2390case OutputKind.WindowsRuntimeMetadata: 2391case OutputKind.DynamicallyLinkedLibrary: 2392case OutputKind.NetModule: 2396case OutputKind.ConsoleApplication: 2397case OutputKind.WindowsRuntimeApplication: 2398case OutputKind.WindowsApplication: 2408private static Subsystem GetSubsystem(OutputKind outputKind) 2412case OutputKind.ConsoleApplication: 2413case OutputKind.DynamicallyLinkedLibrary: 2414case OutputKind.NetModule: 2415case OutputKind.WindowsRuntimeMetadata: 2418case OutputKind.WindowsRuntimeApplication: 2419case OutputKind.WindowsApplication: 2442&& Options.OutputKind != OutputKind.NetModule 2457&& Options.OutputKind != OutputKind.NetModule 2768/// By default both entry points in an executable program (<see cref="OutputKind.ConsoleApplication"/>, <see cref="OutputKind.WindowsApplication"/>, <see cref="OutputKind.WindowsRuntimeApplication"/>) 2875if (this.Options.OutputKind == OutputKind.NetModule) 3164if (Options.OutputKind == OutputKind.NetModule && manifestResources != null)
Compilation\CompilationOptions.cs (4)
24public OutputKind OutputKind { get; protected set; } 268OutputKind outputKind, 430public CompilationOptions WithOutputKind(OutputKind kind) 530protected abstract CompilationOptions CommonWithOutputKind(OutputKind kind);
Compilation\SubsystemVersion.cs (7)
154internal static SubsystemVersion Default(OutputKind outputKind, Platform platform) 161case OutputKind.ConsoleApplication: 162case OutputKind.DynamicallyLinkedLibrary: 163case OutputKind.NetModule: 164case OutputKind.WindowsApplication: 166case OutputKind.WindowsRuntimeApplication: 167case OutputKind.WindowsRuntimeMetadata:
Emit\CommonPEModuleBuilder.cs (6)
28internal readonly OutputKind OutputKind; 54OutputKind outputKind, 384return OutputKind == OutputKind.NetModule ? null : (Cci.IAssemblyReference)this; 493if (OutputKind != OutputKind.NetModule) 521if (OutputKind != OutputKind.NetModule) 607OutputKind outputKind,
MetadataReference\CompilationReference.cs (1)
39if (compilation.Options.OutputKind == OutputKind.NetModule)
NativePdbWriter\PdbWriter.cs (1)
85bool suppressNewCustomDebugInfo = compilationOptions.OutputKind == OutputKind.WindowsRuntimeMetadata;
OutputKind.cs (21)
54internal static bool IsValid(this OutputKind value) 56return value >= OutputKind.ConsoleApplication && value <= OutputKind.WindowsRuntimeApplication; 59internal static string GetDefaultExtension(this OutputKind kind) 63case OutputKind.ConsoleApplication: 64case OutputKind.WindowsApplication: 65case OutputKind.WindowsRuntimeApplication: 68case OutputKind.DynamicallyLinkedLibrary: 71case OutputKind.NetModule: 74case OutputKind.WindowsRuntimeMetadata: 82internal static bool IsApplication(this OutputKind kind) 86case OutputKind.ConsoleApplication: 87case OutputKind.WindowsApplication: 88case OutputKind.WindowsRuntimeApplication: 91case OutputKind.DynamicallyLinkedLibrary: 92case OutputKind.NetModule: 93case OutputKind.WindowsRuntimeMetadata: 101internal static bool IsNetModule(this OutputKind kind) 103return kind == OutputKind.NetModule; 106internal static bool IsWindowsRuntime(this OutputKind kind) 108return kind == OutputKind.WindowsRuntimeMetadata;
PEWriter\MetadataWriter.cs (3)
147private bool EmitAssemblyDefinition => module.OutputKind != OutputKind.NetModule && !IsMinimalDelta; 2029bool writingNetModule = module.OutputKind == OutputKind.NetModule; 2152if (module.OutputKind != OutputKind.NetModule)
PEWriter\PeWriter.cs (1)
135if (mdWriter.Module.OutputKind == OutputKind.WindowsRuntimeMetadata)
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
1033sourceCompilation?.Options.OutputKind == OutputKind.WindowsRuntimeMetadata &&
Microsoft.CodeAnalysis.CSharp (49)
CommandLine\CSharpCommandLineParser.cs (13)
86OutputKind outputKind = OutputKind.ConsoleApplication; 1394if (outputKind == OutputKind.NetModule && (refOnly || outputRefFilePath != null)) 1650OutputKind outputKind, 1824private static OutputKind ParseTarget(string value, IList<Diagnostic> diagnostics) 1829return OutputKind.ConsoleApplication; 1832return OutputKind.WindowsApplication; 1835return OutputKind.DynamicallyLinkedLibrary; 1838return OutputKind.NetModule; 1841return OutputKind.WindowsRuntimeApplication; 1844return OutputKind.WindowsRuntimeMetadata; 1848return OutputKind.ConsoleApplication; 1977private static void ValidateWin32Settings(string? win32ResourceFile, string? win32IconResourceFile, string? win32ManifestFile, OutputKind outputKind, IList<Diagnostic> diagnostics)
Compilation\CSharpCompilation.cs (4)
344private static readonly CSharpCompilationOptions s_defaultOptions = new CSharpCompilationOptions(OutputKind.ConsoleApplication); 345private static readonly CSharpCompilationOptions s_defaultSubmissionOptions = new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithReferencesSupersedeLowerVersions(true); 3414var kind = _options.OutputKind.IsValid() ? _options.OutputKind : OutputKind.DynamicallyLinkedLibrary;
CSharpCompilationOptions.cs (12)
49OutputKind outputKind, 99OutputKind outputKind, 144OutputKind outputKind, 186OutputKind outputKind, 278public new CSharpCompilationOptions WithOutputKind(OutputKind kind) 627protected override CompilationOptions CommonWithOutputKind(OutputKind kind) => WithOutputKind(kind); 715if (Platform == Platform.AnyCpu32BitPreferred && OutputKind.IsValid() && !(OutputKind == OutputKind.ConsoleApplication || OutputKind == OutputKind.WindowsApplication || OutputKind == OutputKind.WindowsRuntimeApplication)) 816OutputKind outputKind, 855OutputKind outputKind, 896OutputKind outputKind,
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
50OutputKind outputKind,
Emitter\Model\PEAssemblyBuilder.cs (2)
70OutputKind outputKind, 634OutputKind outputKind,
Emitter\Model\PEModuleBuilder.cs (5)
80OutputKind outputKind, 123.GetCustomAttributesToEmit(this, isRefAssembly, emittingAssemblyAttributesInNetModule: OutputKind.IsNetModule()); 178if (OutputKind != OutputKind.NetModule && 636if (!OutputKind.IsNetModule()) 645Debug.Assert(OutputKind.IsNetModule() == sourceAssembly.DeclaringCompilation.Options.OutputKind.IsNetModule());
Emitter\Model\PENetModuleBuilder.cs (1)
23: base(sourceModule, emitOptions, OutputKind.NetModule, serializationProperties, manifestResources)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (2)
509if (moduleBeingBuilt.OutputKind == OutputKind.NetModule) 513string extension = OutputKind.NetModule.GetDefaultExtension();
Symbols\Compilation_WellKnownMembers.cs (1)
671if (Options.OutputKind == OutputKind.NetModule)
Symbols\Source\SourceAssemblySymbol.cs (6)
618if (DeclaringCompilation.Options.OutputKind != OutputKind.NetModule && 790if (_compilation.Options.OutputKind == OutputKind.NetModule) 813if (_compilation.Options.OutputKind == OutputKind.NetModule) 837if (_compilation.Options.OutputKind == OutputKind.NetModule) 850if (_compilation.Options.OutputKind == OutputKind.NetModule) 2014if (_compilation.Options.OutputKind == OutputKind.NetModule)
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
472(DeclaringCompilation.Options.OutputKind != OutputKind.NetModule &&
Symbols\SymbolExtensions.cs (1)
27return comp != null && comp.Options.OutputKind == OutputKind.WindowsRuntimeMetadata;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_ProgramMain.cs (2)
21=> options.OutputKind is OutputKind.ConsoleApplication or OutputKind.WindowsApplication;
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (57)
src\Analyzers\CSharp\Tests\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionTests.cs (2)
2159OutputKind = OutputKind.ConsoleApplication, 2204OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests.cs (1)
180OutputKind.DynamicallyLinkedLibrary,
src\Analyzers\CSharp\Tests\MakeMethodAsynchronous\MakeMethodAsynchronousTests.cs (2)
93compilationOptions: new CSharpCompilationOptions(OutputKind.ConsoleApplication)); 96await 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 (4)
29OutputKind? outputKind = null) 46OutputKind? outputKind = null) 1761""", outputKind: OutputKind.ConsoleApplication); 1808outputKind: OutputKind.ConsoleApplication);
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryExpressionParenthesesTests.cs (1)
3225compilationOptions: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, checkOverflow: true)));
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 (4)
25OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary, 1661""", OutputKind.ConsoleApplication); 1682""", OutputKind.ConsoleApplication, LanguageVersion.CSharp12);
src\Analyzers\CSharp\Tests\UseCollectionInitializer\UseCollectionInitializerTests_CollectionExpression.cs (4)
24private static async Task TestInRegularAndScriptAsync([StringSyntax("C#-test")] string testCode, [StringSyntax("C#-test")] string fixedCode, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary) 2800""", OutputKind.ConsoleApplication); 5349OutputKind = OutputKind.DynamicallyLinkedLibrary,
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 (3)
23private static async Task TestInRegularAndScript1Async(string testCode, string fixedCode, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary) 196""", OutputKind.ConsoleApplication);
src\Analyzers\CSharp\Tests\UseObjectInitializer\UseObjectInitializerTests.cs (1)
1256TestState = { 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 (45)
CommandLineTests.cs (45)
1314Assert.Equal(OutputKind.ConsoleApplication, parsedArgs.CompilationOptions.OutputKind); 1318Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind); 1322Assert.Equal(OutputKind.DynamicallyLinkedLibrary, parsedArgs.CompilationOptions.OutputKind); 1326Assert.Equal(OutputKind.WindowsApplication, parsedArgs.CompilationOptions.OutputKind); 1330Assert.Equal(OutputKind.WindowsRuntimeApplication, parsedArgs.CompilationOptions.OutputKind); 1334Assert.Equal(OutputKind.WindowsRuntimeMetadata, parsedArgs.CompilationOptions.OutputKind); 1338Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind); 1365Assert.Equal(OutputKind.ConsoleApplication, parsedArgs.CompilationOptions.OutputKind); 1373Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind); 1381Assert.Equal(OutputKind.DynamicallyLinkedLibrary, parsedArgs.CompilationOptions.OutputKind); 1389Assert.Equal(OutputKind.WindowsApplication, parsedArgs.CompilationOptions.OutputKind); 1397Assert.Equal(OutputKind.WindowsRuntimeApplication, parsedArgs.CompilationOptions.OutputKind); 1405Assert.Equal(OutputKind.WindowsRuntimeMetadata, parsedArgs.CompilationOptions.OutputKind); 1413Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind); 2560Assert.Equal(new CSharpCompilationOptions(OutputKind.ConsoleApplication).OptimizationLevel, parsedArgs.CompilationOptions.OptimizationLevel); 7473options = options.WithOutputKind(OutputKind.WindowsApplication); 7482options = options.WithOutputKind(OutputKind.NetModule); 7552CheckManifestString(source, OutputKind.ConsoleApplication, explicitManifest: null, expectedManifest: 7579CheckManifestString(source, OutputKind.DynamicallyLinkedLibrary, explicitManifest: null, expectedManifest: null); 7592CheckManifestString(source, OutputKind.WindowsApplication, explicitManifest: null, expectedManifest: 7620CheckManifestString(source, OutputKind.WindowsRuntimeApplication, explicitManifest: null, expectedManifest: 7647CheckManifestString(source, OutputKind.WindowsRuntimeMetadata, explicitManifest: null, expectedManifest: null); 7659CheckManifestString(source, OutputKind.NetModule, explicitManifest: null, expectedManifest: null); 7695CheckManifestString(source, OutputKind.ConsoleApplication, explicitManifest, expectedManifest); 7730CheckManifestString(source, OutputKind.DynamicallyLinkedLibrary, explicitManifest, expectedManifest); 7756CheckManifestString(source, OutputKind.NetModule, explicitManifest, expectedManifest: null); 7764private void CheckManifestString(string source, OutputKind outputKind, string explicitManifest, string expectedManifest) 7773case OutputKind.ConsoleApplication: 7777case OutputKind.WindowsApplication: 7781case OutputKind.DynamicallyLinkedLibrary: 7785case OutputKind.NetModule: 7789case OutputKind.WindowsRuntimeMetadata: 7793case OutputKind.WindowsRuntimeApplication: 7833var resourceId = outputKind == OutputKind.DynamicallyLinkedLibrary ? "#2" : "#1"; 12124new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, cryptoPublicKey: TestResources.TestKeys.PublicKey_b03f5f7f11d50a3a)).EmitToArray(); 12136new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, cryptoPublicKey: TestResources.TestKeys.PublicKey_31bf3856ad364e35)).EmitToArray(); 12230new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)).EmitToArray(); 12445var list = new List<Tuple<string, OutputKind>>() 12447Tuple.Create("exe", OutputKind.ConsoleApplication), 12448Tuple.Create("winexe", OutputKind.WindowsApplication), 12449Tuple.Create("library", OutputKind.DynamicallyLinkedLibrary), 12450Tuple.Create("module", OutputKind.NetModule), 12451Tuple.Create("appcontainerexe", OutputKind.WindowsRuntimeApplication), 12452Tuple.Create("winmdobj", OutputKind.WindowsRuntimeMetadata) 15388new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Interactive\CSharpInteractiveEvaluatorLanguageInfoProvider.cs (1)
38OutputKind.DynamicallyLinkedLibrary,
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (11)
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());
GenerateConstructorFromMembers\GenerateConstructorFromMembersTests.cs (2)
1999""", compilationOptions: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, allowUnsafe: true)); 2022""", compilationOptions: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, allowUnsafe: true));
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
267var options = compilationFactory.GetDefaultCompilationOptions().WithOutputKind(OutputKind.DynamicallyLinkedLibrary);
QuickInfo\SemanticQuickInfoSourceTests.cs (1)
8187await TestWithOptionsAsync(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, nullableContextOptions: NullableContextOptions.Enable),
SymbolKey\SymbolKeyErrorTypeTests.cs (2)
373var sourceCompilation = (Compilation)CreateCompilation(source, options: new(OutputKind.DynamicallyLinkedLibrary, allowUnsafe: true)); 387var emptyCompilation = CSharpCompilation.Create("empty", options: new(OutputKind.DynamicallyLinkedLibrary, concurrentBuild: false))
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (57)
CodeGen\CodeGenOverridingAndHiding.cs (6)
4191compilationOptions: new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)); 4215compilationOptions: new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 4259compilationOptions: new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)); 4284compilationOptions: new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 4409compilationOptions: new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)); 4430compilationOptions: new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary),
CodeGen\CodeGenTupleTest.cs (3)
6308compilationOptions: new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)); 6325compilationOptions: new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)); 6578compilationOptions: new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
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 (8)
1060var reference = CompilationVerifier.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary); 1142var reference = CompilationVerifier.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary); 1310options: TestOptions.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule)); 2580options: TestOptions.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule)); 2594options: TestOptions.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule)); 2724OutputKind.DynamicallyLinkedLibrary, GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 3738var compilation = CreateCompilation(source, options: TestOptions.CreateTestOptions(OutputKind.WindowsRuntimeApplication, OptimizationLevel.Debug)); 4288var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule));
Emit\CovariantReturnTests.cs (1)
428var compilationOptions = new VisualBasic.VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptimizationLevel(OptimizationLevel.Release);
Emit\DeterministicTests.cs (1)
472var opt = new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary);
Emit\EmitMetadataTests.cs (2)
230options: TestOptions.DebugDll.WithOutputKind(OutputKind.NetModule)); 1413var module = new PEAssemblyBuilder((SourceAssemblySymbol)sourceType.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary,
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
307OutputKind.ConsoleApplication,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (52)
Attributes\AttributeTests_IsUnmanaged.cs (9)
755[InlineData(OutputKind.DynamicallyLinkedLibrary)] 756[InlineData(OutputKind.NetModule)] 757public void IsUnmanagedAttributeExistsWithWrongConstructorSignature(OutputKind outputKind) 778[InlineData(OutputKind.DynamicallyLinkedLibrary)] 779[InlineData(OutputKind.NetModule)] 780public void IsUnmanagedAttributeExistsWithPrivateConstructor(OutputKind outputKind) 801[InlineData(OutputKind.DynamicallyLinkedLibrary)] 802[InlineData(OutputKind.NetModule)] 803public void IsUnmanagedAttributeExistsAsInterface(OutputKind outputKind)
Attributes\AttributeTests_Synthesized.cs (38)
50foreach (var kind in Enum.GetValues(typeof(OutputKind))) 171var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 220var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 259var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 287var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 425var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 480var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 538var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 576var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 619var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 972public void SynthesizedAllAttributes(OutputKind outputKind, OptimizationLevel optimizationLevel) 1003public void AppliedCompilationRelaxations(OutputKind outputKind, OptimizationLevel optimizationLevel) 1038public void AppliedRuntimeCompatibility(OutputKind outputKind, OptimizationLevel optimizationLevel) 1073public void AppliedDebuggable(OutputKind outputKind, OptimizationLevel optimizationLevel) 1108public void AppliedDebuggableOnBothAssemblyAndModule(OutputKind outputKind, OptimizationLevel optimizationLevel) 1147public void AppliedCompilationRelaxationsAndRuntimeCompatibility(OutputKind outputKind, OptimizationLevel optimizationLevel) 1183public void ModuleCompilationRelaxationsDoNotSuppressAssemblyAttributes(OutputKind outputKind, OptimizationLevel optimizationLevel) 1221public void ModuleDebuggableDoNotSuppressAssemblyAttributes(OutputKind outputKind, OptimizationLevel optimizationLevel) 1259public void MissingWellKnownAttributesNoDiagnosticsAndNoSynthesizedAttributes(OutputKind outputKind, OptimizationLevel optimizationLevel) 1288public void MissingWellKnownAttributeEnumsNoDiagnosticsAndNoSynthesizedAttributes(OutputKind outputKind, OptimizationLevel optimizationLevel) 1328public void InaccessibleWellKnownAttributeEnumsNoDiagnosticsAndNoSynthesizedAttributes(OutputKind outputKind, OptimizationLevel optimizationLevel) 1377public void WellKnownAttributeMissingCtorNoDiagnosticsAndNoSynthesizedAttributes(OutputKind outputKind, OptimizationLevel optimizationLevel) 1424public void WellKnownAttributeInvalidTypeNoDiagnosticsAndNoSynthesizedAttributes(OutputKind outputKind, OptimizationLevel optimizationLevel) 1468public void MissingWellKnownAttributeMembersProduceDiagnostics(OutputKind outputKind, OptimizationLevel optimizationLevel) 1513public void AppliedCompilationRelaxationsOnModuleSuppressesAssemblyAttributes(OutputKind outputKind, OptimizationLevel optimizationLevel) 1519", options: TestOptions.CreateTestOptions(OutputKind.NetModule, optimizationLevel)); 1554public void AppliedRuntimeCompatibilityOnModuleSuppressesAssemblyAttributes(OutputKind outputKind, OptimizationLevel optimizationLevel) 1560", options: TestOptions.CreateTestOptions(OutputKind.NetModule, optimizationLevel)); 1596[InlineData(OutputKind.DynamicallyLinkedLibrary)] 1597[InlineData(OutputKind.NetModule)] 1598public void CheckUnsafeAttributes(OutputKind outputKind) 1671var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 1714var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 1756var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 1798var referenceOptions = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 1837var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 1867var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 1897var referenceOptions = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
1056options: new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithStrongNameProvider(DefaultDesktopStrongNameProvider));
Diagnostics\DiagnosticAnalyzerTests.cs (1)
1283var options = new CSharpCompilationOptions(OutputKind.ConsoleApplication, generalDiagnosticOption: generalOption, specificDiagnosticOptions: specificOptions);
RefReadonlyParameterTests.cs (1)
5799compilationOptions: new VisualBasic.VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
Semantics\ParamsCollectionTests.cs (2)
12815if (comp.Options.OutputKind == OutputKind.NetModule && memberName.StartsWith("<>")) 12839verify: comp.Options.OutputKind != OutputKind.NetModule ?
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
401var options = new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)
Microsoft.CodeAnalysis.CSharp.Features (3)
SemanticSearch\CSharpSemanticSearchUtilities.cs (1)
12public static readonly CSharpCompilationOptions CompilationOptions = new(OutputKind.ConsoleApplication);
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_ProgramMain.cs (2)
21=> options.OutputKind is OutputKind.ConsoleApplication or OutputKind.WindowsApplication;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (178)
ConvertProgram\ConvertToProgramMainAnalyzerTests.cs (23)
32TestState = { OutputKind = OutputKind.ConsoleApplication }, 75TestState = { OutputKind = OutputKind.ConsoleApplication }, 99TestState = { OutputKind = OutputKind.ConsoleApplication }, 125TestState = { OutputKind = OutputKind.ConsoleApplication }, 156TestState = { OutputKind = OutputKind.ConsoleApplication }, 178TestState = { OutputKind = OutputKind.ConsoleApplication }, 200TestState = { OutputKind = OutputKind.ConsoleApplication }, 230TestState = { OutputKind = OutputKind.ConsoleApplication }, 260TestState = { OutputKind = OutputKind.ConsoleApplication }, 298TestState = { OutputKind = OutputKind.ConsoleApplication }, 325TestState = { OutputKind = OutputKind.ConsoleApplication }, 356TestState = { OutputKind = OutputKind.ConsoleApplication }, 384TestState = { OutputKind = OutputKind.ConsoleApplication }, 414TestState = { OutputKind = OutputKind.ConsoleApplication }, 441TestState = { OutputKind = OutputKind.ConsoleApplication }, 469TestState = { OutputKind = OutputKind.ConsoleApplication }, 493TestState = { OutputKind = OutputKind.ConsoleApplication }, 516TestState = { OutputKind = OutputKind.ConsoleApplication }, 551TestState = { OutputKind = OutputKind.ConsoleApplication }, 590TestState = { OutputKind = OutputKind.ConsoleApplication }, 623TestState = { OutputKind = OutputKind.ConsoleApplication }, 661TestState = { OutputKind = OutputKind.ConsoleApplication }, 698TestState = { 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 (5)
21private static async Task VerifyRefactoringAsync(string testCode, string? fixedCode = null, int index = 0, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary) 1178"""", outputKind: OutputKind.ConsoleApplication); 1640"""", outputKind: OutputKind.ConsoleApplication); 1657"""", index: 1, outputKind: OutputKind.ConsoleApplication);
ConvertToRawString\ConvertRegularStringToRawStringTests.cs (5)
21private static async Task VerifyRefactoringAsync(string testCode, string fixedCode, int index = 0, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary) 217"""", outputKind: OutputKind.ConsoleApplication); 555"""", outputKind: OutputKind.ConsoleApplication); 572"""", index: 1, outputKind: OutputKind.ConsoleApplication);
ExtractClass\ExtractClassTests.cs (2)
50var unusedCompilationOptions = new CSharpCompilationOptions(OutputKind.NetModule); 2845OutputKind = OutputKind.ConsoleApplication
ExtractMethod\ExtractLocalFunctionTests.cs (6)
5189OutputKind = OutputKind.ConsoleApplication, 5230OutputKind = OutputKind.ConsoleApplication, 5279OutputKind = OutputKind.ConsoleApplication, 5332OutputKind = OutputKind.ConsoleApplication, 5362OutputKind = OutputKind.ConsoleApplication, 5396OutputKind = OutputKind.ConsoleApplication,
ExtractMethod\ExtractMethodTests2.cs (4)
5003OutputKind = OutputKind.ConsoleApplication, 5029OutputKind = OutputKind.ConsoleApplication, 5059OutputKind = OutputKind.ConsoleApplication, 5091OutputKind = 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 },
SimplifyTypeNames\SimplifyTypeNamesTests.cs (1)
5308""", compilationOptions: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, warningLevel: warningLevel));
src\Analyzers\CSharp\Tests\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionTests.cs (2)
2159OutputKind = OutputKind.ConsoleApplication, 2204OutputKind = OutputKind.ConsoleApplication,
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests.cs (1)
180OutputKind.DynamicallyLinkedLibrary,
src\Analyzers\CSharp\Tests\MakeMethodAsynchronous\MakeMethodAsynchronousTests.cs (2)
93compilationOptions: new CSharpCompilationOptions(OutputKind.ConsoleApplication)); 96await 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 (4)
29OutputKind? outputKind = null) 46OutputKind? outputKind = null) 1761""", outputKind: OutputKind.ConsoleApplication); 1808outputKind: OutputKind.ConsoleApplication);
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryExpressionParenthesesTests.cs (1)
3225compilationOptions: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, checkOverflow: true)));
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 (4)
25OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary, 1661""", OutputKind.ConsoleApplication); 1682""", OutputKind.ConsoleApplication, LanguageVersion.CSharp12);
src\Analyzers\CSharp\Tests\UseCollectionInitializer\UseCollectionInitializerTests_CollectionExpression.cs (4)
24private static async Task TestInRegularAndScriptAsync([StringSyntax("C#-test")] string testCode, [StringSyntax("C#-test")] string fixedCode, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary) 2800""", OutputKind.ConsoleApplication); 5349OutputKind = OutputKind.DynamicallyLinkedLibrary,
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 (3)
23private static async Task TestInRegularAndScript1Async(string testCode, string fixedCode, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary) 196""", OutputKind.ConsoleApplication);
src\Analyzers\CSharp\Tests\UseObjectInitializer\UseObjectInitializerTests.cs (1)
1256TestState = { 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.Scripting (1)
CSharpScriptCompiler.cs (1)
57outputKind: OutputKind.DynamicallyLinkedLibrary,
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (5)
InteractiveSessionReferencesTests.cs (4)
35new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, cryptoPublicKey: TestResources.TestKeys.PublicKey_ce65828c82a341f2); 38new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, cryptoPublicKey: TestResources.TestKeys.PublicKey_ce65828c82a341f2); 530new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)); 1118new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
ObjectFormatterTests.cs (1)
107new VB.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel: OptimizationLevel.Debug));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
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);
Semantics\NamedAndOptionalTests.cs (1)
1566compilationOptions: new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
Semantics\UseSiteErrorTests.cs (1)
2263options = options.WithOutputKind(OutputKind.NetModule);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (80)
Compilation\CompilationAPITests.cs (9)
1972c2 = c1.WithOptions(TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsApplication)); 1978c2 = c1.WithOptions(TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 1989c2 = c1.WithOptions(TestOptions.CreateTestOptions(OutputKind.WindowsApplication, OptimizationLevel.Debug)); 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 (59)
38TestPropertyGeneric(new CSharpCompilationOptions(OutputKind.ConsoleApplication), factory, getter, validNonDefaultValue); 73TestHiddenProperty((old, value) => old.WithOutputKind(value), opt => opt.OutputKind, OutputKind.DynamicallyLinkedLibrary); 103TestPropertyGeneric(new CSharpCompilationOptions(OutputKind.ConsoleApplication), factory, getter, validNonDefaultValue); 109TestProperty((old, value) => old.WithOutputKind(value), opt => opt.OutputKind, OutputKind.DynamicallyLinkedLibrary); 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( 318new CSharpCompilationOptions(outputKind: (OutputKind)Int32.MaxValue).VerifyErrors( 322new CSharpCompilationOptions(outputKind: (OutputKind)Int32.MinValue).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(); 347new CSharpCompilationOptions(OutputKind.WindowsRuntimeApplication, platform: Platform.AnyCpu32BitPreferred).VerifyErrors(); 349new CSharpCompilationOptions(OutputKind.WindowsRuntimeMetadata, platform: Platform.AnyCpu32BitPreferred).VerifyErrors( 352new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, 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]);
CrossLanguageTests.cs (1)
29new VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
Symbols\GenericConstraintTests.cs (1)
5707compilationOptions: new Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
Symbols\Source\BaseClassTests.cs (1)
1574var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary,
Symbols\Source\MethodTests.cs (6)
1682var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, 1726var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, 1773var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, 1827var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, 1968var module = new PEAssemblyBuilder((SourceAssemblySymbol)classC.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, 2012var module = new PEAssemblyBuilder((SourceAssemblySymbol)classC.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary,
Symbols\Source\PropertyTests.cs (2)
2505var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, 2543var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary,
Symbols\SymbolErrorTests.cs (1)
16436new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (13)
BasicCompilationUtils.cs (1)
37var options = new VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel: OptimizationLevel.Release);
CompilingTestBase.cs (1)
32outputKind: OutputKind.ConsoleApplication,
CSharpTestBase.cs (2)
888options = options ?? TestOptions.ReleaseDll.WithOutputKind((expectedOutput != null) ? OutputKind.ConsoleApplication : OutputKind.DynamicallyLinkedLibrary);
TestOptions.cs (9)
72public static readonly CSharpCompilationOptions ReleaseDll = CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, OptimizationLevel.Release); 73public static readonly CSharpCompilationOptions ReleaseExe = CreateTestOptions(OutputKind.ConsoleApplication, OptimizationLevel.Release); 79public static readonly CSharpCompilationOptions DebugDll = CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, OptimizationLevel.Debug); 80public static readonly CSharpCompilationOptions DebugExe = CreateTestOptions(OutputKind.ConsoleApplication, OptimizationLevel.Debug); 85public static readonly CSharpCompilationOptions ReleaseWinMD = CreateTestOptions(OutputKind.WindowsRuntimeMetadata, OptimizationLevel.Release); 86public static readonly CSharpCompilationOptions DebugWinMD = CreateTestOptions(OutputKind.WindowsRuntimeMetadata, OptimizationLevel.Debug); 88public static readonly CSharpCompilationOptions ReleaseModule = CreateTestOptions(OutputKind.NetModule, OptimizationLevel.Release); 89public static readonly CSharpCompilationOptions DebugModule = CreateTestOptions(OutputKind.NetModule, OptimizationLevel.Debug); 189internal static CSharpCompilationOptions CreateTestOptions(OutputKind outputKind, OptimizationLevel optimizationLevel, bool allowUnsafe = false)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (14)
Metadata\WinMdEventTests.cs (14)
2912foreach (OutputKind kind in Enum.GetValues(typeof(OutputKind))) 2956foreach (OutputKind kind in new[] { OutputKind.DynamicallyLinkedLibrary, OutputKind.WindowsRuntimeMetadata }) 3025foreach (OutputKind kind in new[] { OutputKind.DynamicallyLinkedLibrary, OutputKind.WindowsRuntimeMetadata }) 3091foreach (OutputKind kind in new[] { OutputKind.DynamicallyLinkedLibrary, OutputKind.WindowsRuntimeMetadata }) 3286foreach (OutputKind kind in new[] { OutputKind.DynamicallyLinkedLibrary, OutputKind.WindowsRuntimeMetadata })
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Workspace\LanguageServices\CSharpCompilationFactoryService.cs (3)
18private static readonly CSharpCompilationOptions s_defaultOptions = new(OutputKind.ConsoleApplication, concurrentBuild: false); 48!Enum.TryParse<OutputKind>(outputKindString, out var outputKind))
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (3)
CodeGeneration\AddImportsTests.cs (2)
788.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)); 837.WithOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary))
CodeGeneration\SyntaxGeneratorTests.cs (1)
2549WithOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)).
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
ExtractInterface\AbstractExtractInterfaceTests.cs (1)
73new VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, rootNamespace: rootNamespace));
Workspaces\VisualBasicTestWorkspaceFixture.cs (1)
18compilationOptions: new VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (9)
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (2)
49options: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 84OutputKind.DynamicallyLinkedLibrary, rootNamespace: rootNamespace),
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
80.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel: OptimizationLevel.Release));
MetadataAsSource\MetadataAsSourceTests.cs (2)
1927.WithCompilationOptions(new CS.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)); 1941.WithCompilationOptions(new VB.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
Utilities\SymbolEquivalenceComparerTests.cs (4)
25public static readonly CS.CSharpCompilationOptions CSharpDllOptions = new CS.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary); 26public static readonly CS.CSharpCompilationOptions CSharpSignedDllOptions = new CS.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary). 1716using var workspace1 = TestWorkspace.CreateCSharp(csharpCode, compilationOptions: new CS.CSharpCompilationOptions(OutputKind.NetModule, moduleName: "GooModule")); 1717using var workspace2 = TestWorkspace.CreateCSharp(csharpCode, compilationOptions: new CS.CSharpCompilationOptions(OutputKind.NetModule, moduleName: "BarModule"));
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
63var compilationOptions = services.GetRequiredLanguageService<ICompilationFactoryService>(LanguageName).GetDefaultCompilationOptions().WithOutputKind(OutputKind.DynamicallyLinkedLibrary);
Microsoft.CodeAnalysis.LanguageServer (3)
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (1)
27public OutputKind OutputKind { get; init; }
LanguageServer\Handler\DebugConfiguration\WorkspaceDebugConfigurationHandler.cs (2)
48var isExe = project.CompilationOptions?.OutputKind is OutputKind.ConsoleApplication or OutputKind.WindowsApplication;
Microsoft.CodeAnalysis.Rebuild (4)
CSharpCompilationFactory.cs (2)
87pdbOptions.OptionToEnum<OutputKind>(CompilationOptionNames.OutputKind) ?? OutputKind.DynamicallyLinkedLibrary,
VisualBasicCompilationFactory.cs (2)
96pdbOptions.OptionToEnum<OutputKind>(CompilationOptionNames.OutputKind) ?? OutputKind.DynamicallyLinkedLibrary,
Microsoft.CodeAnalysis.Rebuild.UnitTests (10)
BasicDeterministicKeyBuilderTests.cs (2)
28public static VisualBasicCompilationOptions BasicOptions { get; } = new VisualBasicCompilationOptions(OutputKind.ConsoleApplication, deterministic: true); 237options: new VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, deterministic: true));
CompilationOptionsReaderTests.cs (2)
56public void OutputKind(OutputKind kind) 65Assert.Equal(kind, reader.GetMetadataCompilationOptions().OptionToEnum<OutputKind>(CompilationOptionNames.OutputKind));
CSharpDeterministicKeyBuilderTests.cs (2)
25public static CSharpCompilationOptions Options { get; } = new CSharpCompilationOptions(OutputKind.ConsoleApplication, deterministic: true); 428options: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, deterministic: true));
DeterministicKeyBuilderTests.cs (1)
304OutputKind outputKind,
OptionRoundTripTests.cs (1)
30outputKind: OutputKind.ConsoleApplication,
RoundTripUtil.cs (2)
85OutputKind.DynamicallyLinkedLibrary => ".dll", 86OutputKind.ConsoleApplication => ".exe",
Microsoft.CodeAnalysis.Scripting.TestUtilities (3)
TestCompilationFactory.cs (3)
26new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)); 35new VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)); 44options ?? new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
Microsoft.CodeAnalysis.Test.Utilities (25)
AssemblyLoadTestFixture.cs (1)
523CSharpCompilationOptions options = new(OutputKind.DynamicallyLinkedLibrary, warningLevel: Diagnostic.MaxWarningLevel);
CommonTestBase.cs (4)
92(compilation.Options.OutputKind == OutputKind.ConsoleApplication || compilation.Options.OutputKind == OutputKind.WindowsApplication), 368compilationOptions = new CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary); 454compilationOptions = new VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary);
Compilation\CompilationExtensions.cs (2)
130if (comp.Options.OutputKind == OutputKind.NetModule) 512options: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
Compilation\IRuntimeEnvironment.cs (3)
126OutputKind.DynamicallyLinkedLibrary, 216OutputKind.DynamicallyLinkedLibrary, 327if (module.Kind == OutputKind.NetModule)
CompilationVerifier.cs (4)
81images.AddRange(_allModuleData.Where(m => m.Kind == OutputKind.NetModule).Select(m => m.Image)); 102string extension = mainModule.Kind == OutputKind.ConsoleApplication ? ".exe" : ".dll"; 710OutputKind outputKind, 716if (outputKind == OutputKind.NetModule)
Metadata\ModuleData.cs (4)
55public readonly OutputKind Kind; 68this.Kind = OutputKind.NetModule; 75public ModuleData(AssemblyIdentity identity, OutputKind kind, ImmutableArray<byte> image, ImmutableArray<byte> pdb, bool inMemoryModule, bool isCorLib) 85public ModuleData(ModuleDataId id, OutputKind kind, ImmutableArray<byte> image, ImmutableArray<byte> pdb, bool inMemoryModule, bool isCorLib)
Mocks\Silverlight.cs (1)
82OutputKind.DynamicallyLinkedLibrary,
Mocks\StdOle.cs (1)
69OutputKind.DynamicallyLinkedLibrary,
Platform\Desktop\RuntimeAssemblyManager.cs (1)
176if (module.Kind == OutputKind.NetModule)
Platform\Desktop\RuntimeModuleData.cs (2)
66var kind = (OutputKind)info.GetInt32(nameof(ModuleData.Kind));
Platform\Desktop\TestHelpers.cs (1)
91new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
TestBase.cs (1)
194var compilationOptions = new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary);
Microsoft.CodeAnalysis.UnitTests (7)
Analyzers\AnalyzerFileReferenceAppDomainTests.cs (1)
103new CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, warningLevel: CodeAnalysis.Diagnostic.MaxWarningLevel));
Analyzers\AnalyzerFileReferenceTests.cs (1)
487new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
CorLibTypesTests.cs (1)
69options: new CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, warningLevel: CodeAnalysis.Diagnostic.MaxWarningLevel),
Diagnostics\CompilationWithAnalyzersTests.cs (1)
23private static readonly CSharpCompilationOptions s_dllWithMaxWarningLevel = new(OutputKind.DynamicallyLinkedLibrary, warningLevel: CodeAnalysis.Diagnostic.MaxWarningLevel);
Diagnostics\SuppressMessageAttributeCompilerTests.cs (2)
59options: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 91OutputKind.DynamicallyLinkedLibrary,
Diagnostics\SuppressMessageTargetSymbolResolverTests.cs (1)
1440options: new VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, rootNamespace: rootNamespace),
Microsoft.CodeAnalysis.VisualBasic (57)
CommandLine\VisualBasicCommandLineParser.vb (14)
110Dim outputKind As OutputKind = OutputKind.ConsoleApplication 1301If outputKind = OutputKind.NetModule AndAlso (refOnly OrElse outputRefFileName IsNot Nothing) Then 1639Private Shared Sub ValidateWin32Settings(noWin32Manifest As Boolean, win32ResSetting As String, win32IconSetting As String, win32ManifestSetting As String, outputKind As OutputKind, diagnostics As List(Of Diagnostic)) 1659Private Shared Function ParseTarget(optionName As String, value As String, diagnostics As IList(Of Diagnostic)) As OutputKind 1662Return OutputKind.ConsoleApplication 1664Return OutputKind.WindowsApplication 1666Return OutputKind.DynamicallyLinkedLibrary 1668Return OutputKind.NetModule 1670Return OutputKind.WindowsRuntimeApplication 1672Return OutputKind.WindowsRuntimeMetadata 1675Return OutputKind.ConsoleApplication 1678Return OutputKind.ConsoleApplication 2303kind As OutputKind,
Compilation\ClsComplianceChecker.vb (2)
659Debug.Assert(symbol.Kind <> If(Me._compilation.Options.OutputKind = OutputKind.NetModule, SymbolKind.Assembly, SymbolKind.NetModule) OrElse 799Dim producingNetModule = Me._compilation.Options.OutputKind = OutputKind.NetModule
Compilation\VisualBasicCompilation.vb (3)
357If(options, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)).WithReferencesSupersedeLowerVersions(True), 379options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication) 2426Dim kind = If(Options.OutputKind.IsValid(), Options.OutputKind, OutputKind.DynamicallyLinkedLibrary)
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
49outputKind As OutputKind,
Emit\PEAssemblyBuilder.vb (2)
38outputKind As OutputKind, 175outputKind As OutputKind,
Emit\PEModuleBuilder.vb (5)
34outputKind As OutputKind, 150If OutputKind <> OutputKind.NetModule AndAlso 186emittingAssemblyAttributesInNetModule:=OutputKind.IsNetModule()) 407If Not OutputKind.IsNetModule() Then 415Debug.Assert(OutputKind.IsNetModule() = sourceAssembly.DeclaringCompilation.Options.OutputKind.IsNetModule())
Emit\PENetModuleBuilder.vb (1)
23MyBase.New(sourceModule, emitOptions, OutputKind.NetModule, serializationProperties, manifestResources)
PredefinedPreprocessorSymbols.vb (10)
23Public Function AddPredefinedPreprocessorSymbols(kind As OutputKind, symbols As IEnumerable(Of KeyValuePair(Of String, Object))) As ImmutableArray(Of KeyValuePair(Of String, Object)) 33Public Function AddPredefinedPreprocessorSymbols(kind As OutputKind, ParamArray symbols As KeyValuePair(Of String, Object)()) As ImmutableArray(Of KeyValuePair(Of String, Object)) 43Public Function AddPredefinedPreprocessorSymbols(kind As OutputKind, symbols As ImmutableArray(Of KeyValuePair(Of String, Object))) As ImmutableArray(Of KeyValuePair(Of String, Object)) 67Friend Function GetTargetString(kind As OutputKind) As String 69Case OutputKind.ConsoleApplication 72Case OutputKind.DynamicallyLinkedLibrary 75Case OutputKind.NetModule 78Case OutputKind.WindowsApplication 81Case OutputKind.WindowsRuntimeApplication 84Case OutputKind.WindowsRuntimeMetadata
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (2)
199If moduleBeingBuilt.OutputKind = OutputKind.NetModule Then 201Dim extension As String = OutputKind.NetModule.GetDefaultExtension()
Symbols\Attributes\AttributeData.vb (2)
554target.DeclaringCompilation.Options.OutputKind = OutputKind.NetModule) OrElse 591target.DeclaringCompilation.Options.OutputKind <> OutputKind.NetModule) Then
Symbols\Source\SourceAssemblySymbol.vb (3)
1264If DeclaringCompilation.Options.OutputKind <> OutputKind.NetModule AndAlso 1298If _compilation.Options.OutputKind = OutputKind.NetModule Then 1614If _compilation.Options.OutputKind = OutputKind.NetModule Then
Symbols\SymbolExtensions.vb (1)
20Return comp IsNot Nothing And comp.Options.OutputKind = OutputKind.WindowsRuntimeMetadata
VisualBasicCompilationOptions.vb (11)
69outputKind As OutputKind, 146outputKind As OutputKind, 213outputKind As OutputKind, 479Public Shadows Function WithOutputKind(kind As OutputKind) As VisualBasicCompilationOptions 983Protected Overrides Function CommonWithOutputKind(kind As OutputKind) As CompilationOptions 1067Not (OutputKind = OutputKind.ConsoleApplication OrElse OutputKind = OutputKind.WindowsApplication OrElse OutputKind = OutputKind.WindowsRuntimeApplication) Then 1145outputKind As OutputKind, 1210outputKind As OutputKind, 1275outputKind As OutputKind,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (5)
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 (2)
16New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithParseOptions(New VisualBasicParseOptions(LanguageVersion.Latest)) 27Return parameters.WithCompilationOptions(If(parameters.compilationOptions, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)))
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (35)
CommandLineTests.vb (35)
1974Assert.Equal(OutputKind.DynamicallyLinkedLibrary, parsedArgs.CompilationOptions.OutputKind) 1978Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind) 2911Assert.Equal(OutputKind.ConsoleApplication, parsedArgs.CompilationOptions.OutputKind) 2915Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind) 2919Assert.Equal(OutputKind.DynamicallyLinkedLibrary, parsedArgs.CompilationOptions.OutputKind) 2923Assert.Equal(OutputKind.WindowsApplication, parsedArgs.CompilationOptions.OutputKind) 2927Assert.Equal(OutputKind.WindowsRuntimeMetadata, parsedArgs.CompilationOptions.OutputKind) 2931Assert.Equal(OutputKind.WindowsRuntimeApplication, parsedArgs.CompilationOptions.OutputKind) 2935Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind) 2957Assert.Equal(OutputKind.ConsoleApplication, parsedArgs.CompilationOptions.OutputKind) 2961Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind) 2965Assert.Equal(OutputKind.DynamicallyLinkedLibrary, parsedArgs.CompilationOptions.OutputKind) 2969Assert.Equal(OutputKind.WindowsApplication, parsedArgs.CompilationOptions.OutputKind) 2973Assert.Equal(OutputKind.WindowsRuntimeMetadata, parsedArgs.CompilationOptions.OutputKind) 2977Assert.Equal(OutputKind.WindowsRuntimeApplication, parsedArgs.CompilationOptions.OutputKind) 2981Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind) 5208opt = opt.WithOutputKind(OutputKind.DynamicallyLinkedLibrary) 6538CheckManifestXml(source, OutputKind.ConsoleApplication, explicitManifest:=Nothing, expectedManifest:=expectedManifest) 6557CheckManifestXml(source, OutputKind.DynamicallyLinkedLibrary, explicitManifest:=Nothing, expectedManifest:=Nothing) 6576CheckManifestXml(source, OutputKind.NetModule, explicitManifest:=Nothing, expectedManifest:=Nothing) 6612CheckManifestXml(source, OutputKind.WindowsApplication, explicitManifest:=Nothing, expectedManifest:=expectedManifest) 6648CheckManifestXml(source, OutputKind.WindowsRuntimeApplication, explicitManifest:=Nothing, expectedManifest:=expectedManifest) 6667CheckManifestXml(source, OutputKind.WindowsRuntimeMetadata, explicitManifest:=Nothing, expectedManifest:=Nothing) 6714CheckManifestXml(source, OutputKind.ConsoleApplication, explicitManifest, expectedManifest) 6761CheckManifestXml(source, OutputKind.DynamicallyLinkedLibrary, explicitManifest, expectedManifest) 6793CheckManifestXml(source, OutputKind.NetModule, explicitManifest, expectedManifest:=Nothing) 6803Private Sub CheckManifestXml(source As XElement, outputKind As OutputKind, explicitManifest As XDocument, expectedManifest As XDocument) 6810Case OutputKind.ConsoleApplication 6813Case OutputKind.WindowsApplication 6816Case OutputKind.DynamicallyLinkedLibrary 6819Case OutputKind.NetModule 6822Case OutputKind.WindowsRuntimeMetadata 6825Case OutputKind.WindowsRuntimeApplication 6859Dim resourceId As String = If(outputKind = OutputKind.DynamicallyLinkedLibrary, "#2", "#1") 10880New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (228)
Attributes\AssemblyAttributes.vb (39)
39</compilation>, OutputKind.DynamicallyLinkedLibrary) 54</compilation>, OutputKind.DynamicallyLinkedLibrary) 71</compilation>, OutputKind.DynamicallyLinkedLibrary) 152</compilation>, OutputKind.DynamicallyLinkedLibrary) 169</compilation>, OutputKind.DynamicallyLinkedLibrary) 185</compilation>, OutputKind.DynamicallyLinkedLibrary) 198</compilation>, OutputKind.DynamicallyLinkedLibrary) 220</compilation>, OutputKind.DynamicallyLinkedLibrary) 237</compilation>, OutputKind.DynamicallyLinkedLibrary) 254</compilation>, OutputKind.DynamicallyLinkedLibrary) 271</compilation>, OutputKind.DynamicallyLinkedLibrary) 292</compilation>, OutputKind.DynamicallyLinkedLibrary) 313</compilation>, OutputKind.DynamicallyLinkedLibrary) 331</compilation>, OutputKind.DynamicallyLinkedLibrary) 348</compilation>, OutputKind.DynamicallyLinkedLibrary) 367Dim other As VisualBasicCompilation = CreateCompilationWithMscorlib40(src, OutputKind.DynamicallyLinkedLibrary) 381</compilation>, OutputKind.DynamicallyLinkedLibrary) 391</compilation>, OutputKind.DynamicallyLinkedLibrary) 401</compilation>, OutputKind.DynamicallyLinkedLibrary) 418</compilation>, OutputKind.ConsoleApplication) 432</compilation>, OutputKind.ConsoleApplication) 447</compilation>, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 471Dim comp = CreateCompilationWithMscorlib40(src, OutputKind.ConsoleApplication) 585OutputKind.DynamicallyLinkedLibrary, 618OutputKind.DynamicallyLinkedLibrary, 622OutputKind.DynamicallyLinkedLibrary, 684</compilation>, OutputKind.DynamicallyLinkedLibrary) 692</compilation>, OutputKind.DynamicallyLinkedLibrary) 710</compilation>, OutputKind.DynamicallyLinkedLibrary) 726</compilation>, OutputKind.DynamicallyLinkedLibrary) 742</compilation>, OutputKind.DynamicallyLinkedLibrary) 759</compilation>, OutputKind.DynamicallyLinkedLibrary) 1077compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1085compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1094compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1105compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1117compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1133compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1669Dim comp = CreateCompilationWithMscorlib40(source, OutputKind.DynamicallyLinkedLibrary)
Attributes\AttributeTests.vb (1)
3397compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary))
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_Synthesized.vb (43)
36For Each kind As OutputKind In [Enum].GetValues(GetType(OutputKind)) 44For Each kind As OutputKind In [Enum].GetValues(GetType(OutputKind)) 93New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary). 150New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary). 218New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary). 272New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary). 328options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary). 365New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary). 415New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary). 470options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=optimizationLevel)) 500options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=optimizationLevel)) 524options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=optimizationLevel)) 592Dim comp = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=optimizationLevel)) 746Public Sub TestSynthesizedAssemblyAttributes_01(outputKind As OutputKind) 767If outputKind <> OutputKind.NetModule Then 781Public Sub TestSynthesizedAssemblyAttributes_02(outputKind As OutputKind) 823Public Sub TestSynthesizedAssemblyAttributes_03(outputKind As OutputKind) 865Public Sub TestSynthesizedAssemblyAttributes_04(outputKind As OutputKind) 933Public Sub TestSynthesizedAssemblyAttributes_05(outputKind As OutputKind) 985Public Sub TestSynthesizedAssemblyAttributes_06(outputKind As OutputKind) 1015If outputKind <> OutputKind.NetModule Then 1061Public Sub TestDebuggableAttribute_01(outputKind As OutputKind, optimizationLevel As OptimizationLevel) 1090CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1095Public Sub TestDebuggableAttribute_02(outputKind As OutputKind, optimizationLevel As OptimizationLevel) 1128CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1133Public Sub TestDebuggableAttribute_03(outputKind As OutputKind, optimizationLevel As OptimizationLevel) 1165CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1170Public Sub TestDebuggableAttribute_04(outputKind As OutputKind, optimizationLevel As OptimizationLevel) 1209CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1214Public Sub TestDebuggableAttribute_MissingWellKnownTypeOrMember_01(outputKind As OutputKind, optimizationLevel As OptimizationLevel) 1245Public Sub TestDebuggableAttribute_MissingWellKnownTypeOrMember_02(outputKind As OutputKind, optimizationLevel As OptimizationLevel) 1284CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1289Public Sub TestDebuggableAttribute_MissingWellKnownTypeOrMember_03(outputKind As OutputKind, optimizationLevel As OptimizationLevel) 1336CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1341Public Sub TestDebuggableAttribute_MissingWellKnownTypeOrMember_04(outputKind As OutputKind, optimizationLevel As OptimizationLevel) 1383CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1388Public Sub TestDebuggableAttribute_MissingWellKnownTypeOrMember_05(outputKind As OutputKind, optimizationLevel As OptimizationLevel) 1432CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1653Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=optimizationLevel) 1687Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=optimizationLevel) 1748Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=optimizationLevel)
Attributes\AttributeTests_WellKnownAttributes.vb (7)
3695Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40(source, OutputKind.DynamicallyLinkedLibrary) 3761Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40(source, OutputKind.DynamicallyLinkedLibrary) 3791Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40(source, OutputKind.DynamicallyLinkedLibrary) 3815Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40(source, OutputKind.DynamicallyLinkedLibrary) 3843Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40(source, OutputKind.DynamicallyLinkedLibrary) 7189Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, rootNamespace:="TestAssembly") 7248Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, rootNamespace:="TestAssembly")
Attributes\InternalsVisibleToAndStrongNameTests.vb (5)
840options:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithStrongNameProvider(DefaultDesktopStrongNameProvider)) 2301Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, cryptoKeyFile:=Nothing) 2311Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, cryptoKeyFile:=String.Empty) 2321Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, cryptoKeyFile:=Nothing, publicSign:=True) 2334Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, cryptoKeyFile:=String.Empty, publicSign:=True)
BreakingChanges.vb (6)
416compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 468compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.ConsoleApplication), 548compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 607compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 634compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 660compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
CodeGen\CodeGenAsyncTests.vb (1)
9086compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=OptimizationLevel.Release, allowUnsafe:=True))
CodeGen\CodeGenEvents.vb (14)
134compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 158compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 185compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 209compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 959compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 984compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1215}]]>, compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1253compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1291compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1335compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1393compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1417compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1448compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1472compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
CodeGen\CodeGenIterators.vb (1)
1582Dim comp = CreateEmptyCompilationWithReferences(source, {MscorlibRef_v4_0_30316_17626}, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary))
CodeGen\CodeGenMultiDimensionalArray.vb (2)
1466compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1477compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
CodeGen\CodeGenOverridingAndHiding.vb (19)
177compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 190compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 201compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 232compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 249compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 263compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 274compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 300compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 316compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 328compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 337compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 357compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 381compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 393compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 402compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 421compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 436compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 455compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 470compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary),
CodeGen\CodeGenSelectCase.vb (1)
4535</compilation>, OutputKind.DynamicallyLinkedLibrary).
CodeGen\CodeGenTests.vb (19)
1474options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 4764compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 4837compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 6128</compilation>, OutputKind.DynamicallyLinkedLibrary). 6144</compilation>, OutputKind.DynamicallyLinkedLibrary). 6160</compilation>, OutputKind.DynamicallyLinkedLibrary). 6176</compilation>, OutputKind.DynamicallyLinkedLibrary). 8168compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 8181compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 8202compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 8214compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 8235compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 8247compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 8386compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 8398compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 8426compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 8441compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 10746compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 11642compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication))
CodeGen\CodeGenTuples.vb (19)
7205compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 7476compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 9342compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 9376compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 9464compilationOptions:=New Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 9498compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 9552compilationOptions:=New Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 9570compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 9616compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 9645compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 9698compilationOptions:=New Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 9727compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 9766compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 9792compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 9825compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 9853compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 17349compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 21326compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 21462compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary),
CodeGen\CodeGenWinMdEvents.vb (6)
24Dim comp = CreateCompilationWithMscorlib40(source, OutputKind.WindowsRuntimeMetadata) 51Dim comp = CreateCompilationWithMscorlib40(source, OutputKind.WindowsRuntimeMetadata) 79Dim comp = CreateCompilationWithMscorlib40(source, OutputKind.WindowsRuntimeMetadata) 107Dim comp = CreateCompilationWithMscorlib40(source, OutputKind.WindowsRuntimeMetadata) 158Dim comp = CreateCompilationWithMscorlib40(source, OutputKind.WindowsRuntimeMetadata) 192Dim comp = CreateCompilationWithMscorlib40(source, OutputKind.WindowsRuntimeMetadata)
CodeGen\CodeGenWithEvents.vb (13)
1151compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1185compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1578compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 1623compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1652compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1691compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1735compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1791compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1815compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1845compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1869compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1893compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1912compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication),
Emit\CompilationEmitTests.vb (15)
890Dim reference = CompilationVerifier.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary) 965Dim reference = CompilationVerifier.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary) 1158CreateEmptyCompilation("", options:=TestOptions.DebugDll.WithDeterministic(True).WithOutputKind(OutputKind.NetModule)) 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)) 2114Dim compilation = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithPlatform(Platform.AnyCpu)) 2139compilation = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithPlatform(Platform.AnyCpu)) 2175Dim compilation = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithPlatform(Platform.Arm)) 2200compilation = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithPlatform(Platform.AnyCpu)) 2236Dim compilation = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithPlatform(Platform.X64)) 2256compilation = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithPlatform(Platform.X64)) 2311Dim compilation = CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(OutputKind.WindowsRuntimeApplication)) 3277Dim assemblyBuilder = New PEAssemblyBuilder(sourceAssembly, emitOptions, OutputKind.DynamicallyLinkedLibrary, GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable(Of ResourceDescription), Nothing) 3845Dim comp = CreateCompilationWithMscorlib40(source1, OutputKind.NetModule)
Emit\DeterministicTests.vb (5)
174compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 195compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.NetModule), 203options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 238compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 244options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary),
PDB\ChecksumTests.vb (1)
174</compilation>, OutputKind.DynamicallyLinkedLibrary)
PDB\PDBTests.vb (4)
251Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication) 4041Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication) 4354OutputKind.WindowsApplication, 4363OutputKind.WindowsApplication,
PDB\PDBWinMdExpTests.vb (5)
23Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeMetadata)) 68Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeMetadata)) 100Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeMetadata)) 162options:=TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeMetadata)) 225Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeMetadata))
PDB\VisualBasicDeterministicBuildCompilationTests.vb (1)
190OutputKind.DynamicallyLinkedLibrary,
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (2)
CompilationExtensions.vb (1)
115outputKind:=OutputKind.DynamicallyLinkedLibrary,
EEAssemblyBuilder.vb (1)
38outputKind:=OutputKind.DynamicallyLinkedLibrary,
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (14)
CodeActions\AbstractVisualBasicCodeActionTest_NoEditor.vb (2)
15New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithParseOptions(New VisualBasicParseOptions(LanguageVersion.Latest)) 22Return parameters.WithCompilationOptions(If(parameters.compilationOptions, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)))
Diagnostics\AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest_NoEditor.vb (2)
16New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithParseOptions(New VisualBasicParseOptions(LanguageVersion.Latest)) 27Return parameters.WithCompilationOptions(If(parameters.compilationOptions, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)))
Diagnostics\Configuration\ConfigureCodeStyle\BooleanCodeStyleOptionConfigurationTests.vb (1)
17Return parameters.WithCompilationOptions(If(parameters.compilationOptions, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)))
Diagnostics\Configuration\ConfigureSeverity\CodeStyleOptionBasedSeverityConfigurationTests.vb (1)
17Return parameters.WithCompilationOptions(If(parameters.compilationOptions, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)))
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.vb (1)
41Return parameters.WithCompilationOptions(If(parameters.compilationOptions, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)))
Diagnostics\Configuration\ConfigureSeverity\MultipleCodeStyleOptionBasedConfigureSeverityTests.vb (1)
16Return parameters.WithCompilationOptions(If(parameters.compilationOptions, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)))
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.vb (1)
33Return parameters.WithCompilationOptions(If(parameters.compilationOptions, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)))
Diagnostics\Suppression\SuppressionTests.vb (1)
28Return parameters.WithCompilationOptions(If(parameters.compilationOptions, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)))
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.Scripting (1)
VisualBasicScriptCompiler.vb (1)
77outputKind:=OutputKind.DynamicallyLinkedLibrary,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (204)
Binding\Binder_Statements_Tests.vb (1)
3619compilation = compilation.WithOptions(compilation.Options.WithOutputKind(OutputKind.DynamicallyLinkedLibrary))
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 (14)
2803compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 2812compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 2832compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 2841compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 2860compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 2869compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 2893compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 2902compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 2926compilationOptions:=New Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 2935compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 2958compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 2978compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 3000compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 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 (15)
44Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary). 181Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary). 193Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary). 204Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary). 2007Dim compilation = CreateCompilationWithMscorlib40(source, OutputKind.ConsoleApplication) 2030Dim compilation = CreateCompilationWithMscorlib40(source, OutputKind.DynamicallyLinkedLibrary) 2048Dim compilation = CreateCompilationWithMscorlib40(source, OutputKind.NetModule) 2244c2 = c1.WithOptions(New VisualBasicCompilationOptions(OutputKind.WindowsApplication)) 2258c2 = c1.WithOptions(New VisualBasicCompilationOptions(OutputKind.WindowsApplication)) 2454Dim c4 = c3.WithOptions(New VisualBasicCompilationOptions(OutputKind.NetModule)) 2599Dim CompilationOptions = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary) 2627Assert.Throws(Of ArgumentException)(Function() VisualBasicCompilation.CreateScriptCompilation("a", options:=TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule))) 2628Assert.Throws(Of ArgumentException)(Function() VisualBasicCompilation.CreateScriptCompilation("a", options:=TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeMetadata))) 2629Assert.Throws(Of ArgumentException)(Function() VisualBasicCompilation.CreateScriptCompilation("a", options:=TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeApplication))) 2630Assert.Throws(Of ArgumentException)(Function() VisualBasicCompilation.CreateScriptCompilation("a", options:=TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsApplication)))
Compilation\MyTemplateTests.vb (5)
122Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication) 198Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.WindowsApplication) 202Dim compilationOptions = TestOptions.ReleaseExe.WithOutputKind(OutputKind.WindowsApplication).WithParseOptions(parseOptions).WithMainTypeName("Form1") 227Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication) 282Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication)
Compilation\ReferenceManagerTests.vb (6)
775Dim libV1 = CompilationUtils.CreateCompilationWithMscorlib40(sourceLibV1, OutputKind.DynamicallyLinkedLibrary) 1405compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1412compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 1420compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 1431compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 1511Dim moduleRef = CreateCompilationWithMscorlib40(moduleSource, OutputKind.NetModule).EmitToImageReference()
Compilation\VisualBasicCompilationOptionsTests.vb (49)
21TestPropertyGeneric(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), factory, getter, validNonDefaultValue) 26TestHiddenProperty(Function(old, value) old.WithOutputKind(value), Function(opt) opt.OutputKind, OutputKind.DynamicallyLinkedLibrary) 55TestPropertyGeneric(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), factory, getter, validNonDefaultValue) 88TestProperty(Function(old, value) old.WithOutputKind(value), Function(opt) opt.OutputKind, OutputKind.DynamicallyLinkedLibrary) 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) 272AssertTheseDiagnostics(New VisualBasicCompilationOptions(outputKind:=CType(Int32.MaxValue, OutputKind)).Errors, 277AssertTheseDiagnostics(New VisualBasicCompilationOptions(outputKind:=CType(Int32.MinValue, OutputKind)).Errors, 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) 508Dim options As New VisualBasicCompilationOptions(OutputKind.NetModule, embedVbCoreRuntime:=True) 545Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication) 556Dim optionFalse = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)
DeclaringSyntaxNodeTests.vb (1)
378</compilation>, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithRootNamespace("N1"))
Diagnostics\CompilationEventTests.vb (6)
98CreateCompilationWithMscorlib40AndVBRuntime(source, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)).WithEventQueue(q).VerifyDiagnostics().VerifyDiagnostics() 164Dim comp = CreateCompilationWithMscorlib40AndVBRuntime(source, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)).WithEventQueue(q) 169comp = CreateCompilationWithMscorlib40AndVBRuntime(source, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)).WithEventQueue(q) 175comp = CreateCompilationWithMscorlib40AndVBRuntime(source, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)).WithEventQueue(q) 181comp = CreateCompilationWithMscorlib40AndVBRuntime(source, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)).WithEventQueue(q) 202Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication)
Diagnostics\DiagnosticAnalyzerTests.vb (2)
754Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, 1635Dim defines = AddPredefinedPreprocessorSymbols(OutputKind.WindowsApplication)
Diagnostics\GetDiagnosticsTests.vb (4)
292Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary) 328Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary) 359Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, parseOptions:=parseOptions1) 388Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, parseOptions:=parseOptions1)
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\PartialMethodsTest.vb (7)
595Dim comp = CreateCompilationWithMscorlib40({tree1, tree2}, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 924Dim comp = CreateCompilationWithMscorlib40({tree1, tree2}, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 959Dim comp = CreateCompilationWithMscorlib40({tree1}, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 994Dim comp = CreateCompilationWithMscorlib40({tree1}, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1038Dim comp = CreateCompilationWithMscorlib40({tree1, tree2}, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1094Dim comp = CreateCompilationWithMscorlib40({tree1, tree2}, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 1135Dim comp = CreateCompilationWithMscorlib40({tree}, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary))
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 (91)
SymbolDisplay\SymbolDisplayTests.vb (2)
4870Assert.Equal("3", SymbolDisplay.FormatPrimitive(OutputKind.NetModule, quoteStrings:=False, useHexadecimalNumbers:=False)) 4871Assert.Equal("&H00000003", SymbolDisplay.FormatPrimitive(OutputKind.NetModule, quoteStrings:=False, useHexadecimalNumbers:=True))
SymbolsTests\AssemblyAndNamespaceTests.vb (1)
23AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace(badRootNS).Errors,
SymbolsTests\AttributeTests_UnmanagedCallersOnly.vb (1)
14Private ReadOnly _csharpCompOptions As CSharp.CSharpCompilationOptions = New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, allowUnsafe:=True)
SymbolsTests\CompilationCreationTests.vb (1)
2172Dim lib1 = CreateCompilationWithMscorlib40(source1, OutputKind.NetModule)
SymbolsTests\DefaultInterfaceImplementationTests.vb (1)
11458compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.WindowsRuntimeMetadata),
SymbolsTests\GenericConstraintTests.vb (2)
4219compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication)) 4253compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication))
SymbolsTests\InaccessibleOverriding.vb (2)
105</compilation>, OutputKind.DynamicallyLinkedLibrary) 246</compilation>, OutputKind.DynamicallyLinkedLibrary)
SymbolsTests\Metadata\MetadataMemberTests.vb (11)
615options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), 940Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary) 983options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary) 1021Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary) 1025options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.Internal) 1028options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.All) 1031options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.Public) 1034options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=CType(Byte.MaxValue, MetadataImportOptions)) 1049Dim compilation = CreateCompilationWithMscorlib40("", options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.Internal), references:={compilation0.EmitToImageReference()}) 1056compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.All)) 1063compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=CType(Byte.MaxValue, MetadataImportOptions)))
SymbolsTests\Metadata\PE\HasUnsupportedMetadata.vb (1)
517compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithAllowUnsafe(True))
SymbolsTests\Metadata\PE\NoPia.vb (1)
1241OutputKind.DynamicallyLinkedLibrary,
SymbolsTests\Metadata\WinMdEventTest.vb (6)
993For Each kind As OutputKind In [Enum].GetValues(GetType(OutputKind)) 1028For Each kind As OutputKind In [Enum].GetValues(GetType(OutputKind)) 1512For Each kind As OutputKind In [Enum].GetValues(GetType(OutputKind))
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\ClsComplianceTests.vb (4)
1680Dim moduleComp = CreateCSharpCompilation("[assembly:System.CLSCompliant(true)]", compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.NetModule), assemblyName:="A") 1697Dim moduleComp1 = CreateCSharpCompilation("[assembly:System.CLSCompliant(true)]", compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.NetModule), assemblyName:="A") 1700Dim moduleComp2 = CreateCSharpCompilation("[assembly:System.CLSCompliant(false)]", compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.NetModule), assemblyName:="B") 1761CreateCompilationWithMscorlib40(source, OutputKind.NetModule).AssertTheseDiagnostics(<errors><![CDATA[
SymbolsTests\Source\FieldTests.vb (1)
447compilationOptions:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary))
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\Source\PropertyTests.vb (4)
586Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40(source, OutputKind.DynamicallyLinkedLibrary) 8086Dim comp = CreateCompilationWithMscorlib40(libSrc, OutputKind.DynamicallyLinkedLibrary) 8090comp = CreateCompilationWithMscorlib40(libSrc, OutputKind.WindowsRuntimeMetadata) 8199Dim [module] = New PEAssemblyBuilder(DirectCast([class].ContainingAssembly, SourceAssemblySymbol), EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable(Of ResourceDescription)())
SymbolsTests\Source\TypeTests.vb (6)
2780Dim modComp = CreateCompilationWithMscorlib40(source1, OutputKind.NetModule) 2843Dim modComp = CreateCompilationWithMscorlib40(source1, OutputKind.NetModule) 2914Dim modComp = CreateCompilationWithMscorlib40(source1, OutputKind.NetModule) 2967Dim modComp = CreateCompilationWithMscorlib40(source1, OutputKind.NetModule) 3029Dim modComp = CreateCompilationWithMscorlib40(source1, OutputKind.NetModule) 3092Dim modComp = CreateCompilationWithMscorlib40(source1, OutputKind.NetModule)
SymbolsTests\SymbolErrorTests.vb (41)
6906Dim csharpComp = CSharp.CSharpCompilation.Create("Test", options:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 9476</compilation>, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithGlobalImports( 9499</compilation>, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithGlobalImports( 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) 19487</compilation>, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, rootNamespace:="ConsoleApplicationVB")) 19506</compilation>, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, rootNamespace:="CONSOLEAPPLICATIONVB")) 19527</compilation>, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, rootNamespace:="GOO.bar")) 19547</compilation>, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, rootNamespace:="GOO.BAR")) 19568</compilation>, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, rootNamespace:="GOO.BAR")) 19588</compilation>, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, rootNamespace:="goo.BAR")) 19607</compilation>, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, rootNamespace:="CONSOLEAPPLICATIONVB")) 19643Dim options = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace("BC40056WRN_UndefinedOrEmptyNamespaceOrClass1") 19728</compilation>, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optionStrict:=OptionStrict.Custom)) 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)) 20531</compilation>, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optionStrict:=OptionStrict.Custom)) 24185options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24202options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24221options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24245options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24265options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24283options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24341options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24383options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24406Dim compilation = CreateCompilationWithMscorlib40(String.Empty, references:={ilModule}, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 24419options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24425options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24451options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24514options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24555options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24570options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24601options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary), 24618options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary),
SymbolsTests\UnmanagedTypeConstraintTests.vb (1)
1327compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithAllowUnsafe(True)).EmitToImageReference()
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (9)
Parser\VisualBasicParseOptionsTests.vb (8)
59Dim symbols = AddPredefinedPreprocessorSymbols(OutputKind.NetModule) 63symbols = AddPredefinedPreprocessorSymbols(OutputKind.DynamicallyLinkedLibrary, symbols) 66symbols = AddPredefinedPreprocessorSymbols(OutputKind.WindowsApplication, 70symbols = AddPredefinedPreprocessorSymbols(OutputKind.WindowsApplication, 74symbols = AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication, empty) 77symbols = AddPredefinedPreprocessorSymbols(OutputKind.WindowsApplication, empty) 112Dim symbols = AddPredefinedPreprocessorSymbols(OutputKind.WindowsRuntimeApplication) 115symbols = AddPredefinedPreprocessorSymbols(OutputKind.WindowsRuntimeMetadata)
TestSyntaxNodes.vb (1)
3307New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (11)
BasicTestBase.vb (1)
371options = options.WithOutputKind(OutputKind.ConsoleApplication)
CompilationTestUtils.vb (1)
187outputKind As OutputKind,
TestOptions.vb (9)
21Public Shared ReadOnly ReleaseDll As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=OptimizationLevel.Release).WithParseOptions(Regular) 22Public Shared ReadOnly ReleaseExe As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optimizationLevel:=OptimizationLevel.Release).WithParseOptions(Regular) 24Public Shared ReadOnly ReleaseDebugDll As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=OptimizationLevel.Release). 27Public Shared ReadOnly ReleaseDebugExe As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optimizationLevel:=OptimizationLevel.Release). 30Public Shared ReadOnly DebugDll As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=OptimizationLevel.Debug).WithParseOptions(Regular) 31Public Shared ReadOnly DebugExe As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optimizationLevel:=OptimizationLevel.Debug).WithParseOptions(Regular) 33Public Shared ReadOnly ReleaseModule As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.NetModule, optimizationLevel:=OptimizationLevel.Release).WithParseOptions(Regular) 34Public Shared ReadOnly ReleaseWinMD As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.WindowsRuntimeMetadata, optimizationLevel:=OptimizationLevel.Release).WithParseOptions(Regular) 35Public Shared ReadOnly DebugWinMD As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.WindowsRuntimeMetadata, optimizationLevel:=OptimizationLevel.Debug).WithParseOptions(Regular)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
Workspace\LanguageServices\VisualBasicCompilationFactoryService.vb (2)
16Private Shared ReadOnly s_defaultOptions As New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, concurrentBuild:=False) 53Dim outputKind As OutputKind
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
2454WithOptions(New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)).
Microsoft.CodeAnalysis.Workspaces (3)
Serialization\AbstractOptionsSerializationService.cs (3)
78OutputKind outputKind, 107var outputKind = (OutputKind)reader.ReadInt32();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (9)
VisualStudioMSBuildWorkspaceTests.cs (9)
411var solution2 = solution1.WithProjectCompilationOptions(project.Id, project.CompilationOptions.WithOutputKind(OutputKind.NetModule)); 1511await AssertCSCompilationOptionsAsync(OutputKind.DynamicallyLinkedLibrary, options => options.OutputKind); 1518await AssertCSCompilationOptionsAsync(OutputKind.ConsoleApplication, options => options.OutputKind); 1525await AssertCSCompilationOptionsAsync(OutputKind.WindowsApplication, options => options.OutputKind); 1532await AssertCSCompilationOptionsAsync(OutputKind.NetModule, options => options.OutputKind); 1709await AssertVBCompilationOptionsAsync(OutputKind.DynamicallyLinkedLibrary, options => options.OutputKind); 1716await AssertVBCompilationOptionsAsync(OutputKind.ConsoleApplication, options => options.OutputKind); 1723await AssertVBCompilationOptionsAsync(OutputKind.WindowsApplication, options => options.OutputKind); 1730await AssertVBCompilationOptionsAsync(OutputKind.NetModule, options => options.OutputKind);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (18)
Workspaces\TestHostProject`1.cs (7)
286private static string GetDefaultExtension(OutputKind kind) 290case OutputKind.ConsoleApplication: 291case OutputKind.WindowsApplication: 292case OutputKind.WindowsRuntimeApplication: 295case OutputKind.DynamicallyLinkedLibrary: 298case OutputKind.NetModule: 301case OutputKind.WindowsRuntimeMetadata:
Workspaces\TestWorkspace_XmlConsumption.cs (9)
408var rootNamespace = new VisualBasicCompilationOptions(OutputKind.ConsoleApplication).RootNamespace; 416var outputKind = OutputKind.DynamicallyLinkedLibrary; 432outputKind = (OutputKind)Enum.Parse(typeof(OutputKind), outputKindAttribute.Value); 494rootNamespace = new VisualBasicCompilationOptions(OutputKind.WindowsRuntimeMetadata).RootNamespace; 499? new CSharpCompilationOptions(OutputKind.WindowsRuntimeMetadata, allowUnsafe: allowUnsafe) 500: new VisualBasicCompilationOptions(OutputKind.WindowsRuntimeMetadata).WithGlobalImports(globalImports).WithRootNamespace(rootNamespace) 768var options = compilationFactory.GetDefaultCompilationOptions().WithOutputKind(OutputKind.DynamicallyLinkedLibrary);
Workspaces\TestWorkspace_XmlCreation.cs (1)
173if (options.OutputKind != OutputKind.DynamicallyLinkedLibrary)
Workspaces\TestWorkspace`1.cs (1)
775.WithOutputKind(OutputKind.DynamicallyLinkedLibrary)
Microsoft.CodeAnalysis.Workspaces.UnitTests (14)
BatchFixAllProviderTests.cs (1)
151return new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary);
CommandLineProject\CommandLineProjectWorkspaceTests.cs (2)
34Assert.Equal(OutputKind.DynamicallyLinkedLibrary, project.CompilationOptions.OutputKind); 62Assert.Equal(OutputKind.DynamicallyLinkedLibrary, project.CompilationOptions.OutputKind);
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 (3)
20private static readonly CSharpCompilationOptions s_defaultOptions = new(OutputKind.ConsoleApplication, concurrentBuild: false); 50!Enum.TryParse<OutputKind>(outputKindString, out var outputKind))
SolutionTests\SolutionTests.cs (5)
1175compilationOptions: new CSharpCompilationOptions(OutputKind.WindowsApplication, moduleName: "newModuleName"), 1314compilationOptions: new CSharpCompilationOptions(OutputKind.WindowsApplication, moduleName: "newModuleName"), 1419compilationOptions: new CSharpCompilationOptions(OutputKind.WindowsApplication, moduleName: "newModuleName"), 1724var options = new CSharpCompilationOptions(OutputKind.NetModule); 4831.WithProjectCompilationOptions(projectId, new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithNullableContextOptions(NullableContextOptions.Enable));
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
84new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithNullableContextOptions(NullableContextOptions.Enable));
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
84new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithNullableContextOptions(NullableContextOptions.Enable));
Microsoft.Gen.Logging.Unit.Tests (2)
CompilationHelper.cs (1)
51options: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
test\Generators\Shared\RoslynTestUtils.cs (1)
84new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithNullableContextOptions(NullableContextOptions.Enable));
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
84new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithNullableContextOptions(NullableContextOptions.Enable));
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
84new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary).WithNullableContextOptions(NullableContextOptions.Enable));
Microsoft.ML.CodeAnalyzer.Tests (1)
Code\BestFriendTest.cs (1)
70projectA = projectA.WithCompilationOptions(projectA.CompilationOptions.WithOutputKind(OutputKind.DynamicallyLinkedLibrary));
Microsoft.VisualStudio.LanguageServices.CSharp (8)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (8)
26private OutputKind _outputKind; 237var newOutputKind = fileType switch 239OutputFileType.Console => OutputKind.ConsoleApplication, 240OutputFileType.Windows => OutputKind.WindowsApplication, 241OutputFileType.Library => OutputKind.DynamicallyLinkedLibrary, 242OutputFileType.Module => OutputKind.NetModule, 243OutputFileType.AppContainer => OutputKind.WindowsRuntimeApplication, 244OutputFileType.WinMDObj => OutputKind.WindowsRuntimeMetadata,
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
ProjectSystemShim\ConvertedVisualBasicProjectOptionsTests.vb (1)
167New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary) _
Microsoft.VisualStudio.LanguageServices.VisualBasic (11)
ProjectSystemShim\TempPECompiler.TempPEProject.vb (1)
206New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, parseOptions:=_parseOptions), pCompilerOptions)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (10)
33Private Shared ReadOnly s_conditionalCompilationSymbolsCache As Dictionary(Of KeyValuePair(Of String, OutputKind), ImmutableArray(Of KeyValuePair(Of String, Object))) = 34New Dictionary(Of KeyValuePair(Of String, OutputKind), ImmutableArray(Of KeyValuePair(Of String, Object))) 120Private Shared Function GetOutputKind(ByRef compilerOptions As VBCompilerOptions) As OutputKind 123Return OutputKind.ConsoleApplication 125Return OutputKind.DynamicallyLinkedLibrary 127Return OutputKind.NetModule 129Return OutputKind.WindowsApplication 131Return OutputKind.WindowsRuntimeApplication 133Return OutputKind.WindowsRuntimeMetadata 222Private Shared Function GetConditionalCompilationSymbols(kind As OutputKind, str As String) As ImmutableArray(Of KeyValuePair(Of String, Object))
Mvc.Analyzers.Test (1)
src\Shared\AnalyzerTesting\TestCompilation.cs (1)
16new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
StackDepthTest (1)
Program.cs (1)
78var options = new CSharpCompilationOptions(outputKind: OutputKind.DynamicallyLinkedLibrary, concurrentBuild: false);
System.Windows.Forms.Analyzers.CSharp (6)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ApplicationConfigurationGenerator.cs (6)
18OutputKind outputKind, 37if (outputKind is not OutputKind.WindowsApplication 41and not OutputKind.ConsoleApplication) 45Location.None, nameof(OutputKind.WindowsApplication))); 74IncrementalValueProvider<OutputKind> outputKindProvider = context.CompilationProvider.Select((compilation, _) 84IncrementalValueProvider<(OutputKind OutputKind, Collections.Immutable.ImmutableArray<string?> ProjectNamespaces, ApplicationConfig? ApplicationConfig, Diagnostic? ApplicationConfigDiagnostics)> inputs
System.Windows.Forms.Analyzers.CSharp.Tests (18)
Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenTest.cs (1)
185OutputKind = OutputKind.WindowsApplication,
Analyzers\MissingPropertySerializationConfiguration\ControlPropertySerializationDiagnosticAnalyzerTest.cs (3)
179OutputKind = OutputKind.WindowsApplication, 200OutputKind = OutputKind.WindowsApplication, 223OutputKind = OutputKind.WindowsApplication,
Generators\ApplicationConfigurationGeneratorTests.cs (14)
44public static TheoryData<OutputKind> UnsupportedProjectTypes_TestData() 46TheoryData<OutputKind> testData = new(); 48foreach (OutputKind projectType in Enum.GetValues(typeof(OutputKind))) 50if (projectType is not OutputKind.ConsoleApplication 51and not OutputKind.WindowsApplication) 62public async Task CS_ApplicationConfigurationGenerator_GenerateInitialize_fails_if_project_type_unsupported(OutputKind projectType) 81[InlineData(OutputKind.ConsoleApplication)] 82[InlineData(OutputKind.WindowsApplication)] 83public async Task CS_ApplicationConfigurationGenerator_GenerateInitialize_pass_if_supported_project_type(OutputKind projectType) 112OutputKind = OutputKind.WindowsApplication, 133OutputKind = OutputKind.WindowsApplication, 171OutputKind = OutputKind.WindowsApplication, 197OutputKind = OutputKind.WindowsApplication,
System.Windows.Forms.Analyzers.VisualBasic.Tests (4)
AvoidPassingTaskWithoutCancellationTokenTest.vb (1)
165context.TestState.OutputKind = OutputKind.WindowsApplication
MissingPropertySerializationConfigurationAnalyzerTest.vb (3)
174context.TestState.OutputKind = OutputKind.WindowsApplication 190context.TestState.OutputKind = OutputKind.WindowsApplication 209context.TestState.OutputKind = OutputKind.WindowsApplication
System.Windows.Forms.Design.Tests (1)
System\Resources\Tools\CodeDomCompileHelper.cs (1)
38new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
System.Windows.Forms.PrivateSourceGenerators.Tests (1)
EnumValidationTests.cs (1)
303CSharpCompilation compilation = CSharpCompilation.Create("original", new SyntaxTree[] { syntaxTree }, references, new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
VBCSCompiler.UnitTests (1)
AnalyzerConsistencyCheckerTests.cs (1)
59OutputKind.DynamicallyLinkedLibrary,