133 references to NetModule
Microsoft.CodeAnalysis (20)
CodeGen\PrivateImplementationDetails.cs (1)
129var name = (moduleBuilder.OutputKind == OutputKind.NetModule) ?
Compilation\Compilation.cs (8)
2131if (Options.OutputKind == OutputKind.NetModule && !(manifestResources != null && manifestResources.Any())) 2165if (Options.OutputKind != OutputKind.NetModule) 2392case OutputKind.NetModule: 2414case OutputKind.NetModule: 2442&& Options.OutputKind != OutputKind.NetModule 2457&& Options.OutputKind != OutputKind.NetModule 2875if (this.Options.OutputKind == OutputKind.NetModule) 3164if (Options.OutputKind == OutputKind.NetModule && manifestResources != null)
Compilation\SubsystemVersion.cs (1)
163case OutputKind.NetModule:
Emit\CommonPEModuleBuilder.cs (3)
384return OutputKind == OutputKind.NetModule ? null : (Cci.IAssemblyReference)this; 493if (OutputKind != OutputKind.NetModule) 521if (OutputKind != OutputKind.NetModule)
MetadataReference\CompilationReference.cs (1)
39if (compilation.Options.OutputKind == OutputKind.NetModule)
OutputKind.cs (3)
71case OutputKind.NetModule: 92case OutputKind.NetModule: 103return kind == OutputKind.NetModule;
PEWriter\MetadataWriter.cs (3)
147private bool EmitAssemblyDefinition => module.OutputKind != OutputKind.NetModule && !IsMinimalDelta; 2029bool writingNetModule = module.OutputKind == OutputKind.NetModule; 2152if (module.OutputKind != OutputKind.NetModule)
Microsoft.CodeAnalysis.CSharp (14)
CommandLine\CSharpCommandLineParser.cs (2)
1394if (outputKind == OutputKind.NetModule && (refOnly || outputRefFilePath != null)) 1840return OutputKind.NetModule;
Emitter\Model\PEModuleBuilder.cs (1)
178if (OutputKind != OutputKind.NetModule &&
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 &&
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (9)
CommandLineTests.cs (9)
1318Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind); 1338Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind); 1373Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind); 1413Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind); 7482options = options.WithOutputKind(OutputKind.NetModule); 7659CheckManifestString(source, OutputKind.NetModule, explicitManifest: null, expectedManifest: null); 7756CheckManifestString(source, OutputKind.NetModule, explicitManifest, expectedManifest: null); 7785case OutputKind.NetModule: 12450Tuple.Create("module", OutputKind.NetModule),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Emit\CompilationEmitTests.cs (4)
1310options: TestOptions.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule)); 2580options: TestOptions.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule)); 2594options: TestOptions.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule)); 4288var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule));
Emit\EmitMetadataTests.cs (1)
230options: TestOptions.DebugDll.WithOutputKind(OutputKind.NetModule));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\AttributeTests_IsUnmanaged.cs (3)
756[InlineData(OutputKind.NetModule)] 779[InlineData(OutputKind.NetModule)] 802[InlineData(OutputKind.NetModule)]
Attributes\AttributeTests_Synthesized.cs (3)
1519", options: TestOptions.CreateTestOptions(OutputKind.NetModule, optimizationLevel)); 1560", options: TestOptions.CreateTestOptions(OutputKind.NetModule, optimizationLevel)); 1597[InlineData(OutputKind.NetModule)]
Semantics\ParamsCollectionTests.cs (2)
12815if (comp.Options.OutputKind == OutputKind.NetModule && memberName.StartsWith("<>")) 12839verify: comp.Options.OutputKind != OutputKind.NetModule ?
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
ExtractClass\ExtractClassTests.cs (1)
51var unusedCompilationOptions = new CSharpCompilationOptions(OutputKind.NetModule);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\UseSiteErrorTests.cs (1)
2263options = options.WithOutputKind(OutputKind.NetModule);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\CompilationAPITests.cs (4)
1978c2 = c1.WithOptions(TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 2417Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule))); 3094var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 3134var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
TestOptions.cs (2)
88public static readonly CSharpCompilationOptions ReleaseModule = CreateTestOptions(OutputKind.NetModule, OptimizationLevel.Release); 89public static readonly CSharpCompilationOptions DebugModule = CreateTestOptions(OutputKind.NetModule, OptimizationLevel.Debug);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Utilities\SymbolEquivalenceComparerTests.cs (2)
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.Test.Utilities (5)
Compilation\CompilationExtensions.cs (1)
130if (comp.Options.OutputKind == OutputKind.NetModule)
Compilation\IRuntimeEnvironment.cs (1)
327if (module.Kind == OutputKind.NetModule)
CompilationVerifier.cs (2)
81images.AddRange(_allModuleData.Where(m => m.Kind == OutputKind.NetModule).Select(m => m.Image)); 716if (outputKind == OutputKind.NetModule)
Metadata\ModuleData.cs (1)
68this.Kind = OutputKind.NetModule;
Microsoft.CodeAnalysis.VisualBasic (14)
CommandLine\VisualBasicCommandLineParser.vb (2)
1301If outputKind = OutputKind.NetModule AndAlso (refOnly OrElse outputRefFileName IsNot Nothing) Then 1668Return OutputKind.NetModule
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
Emit\PEModuleBuilder.vb (1)
150If OutputKind <> OutputKind.NetModule AndAlso
Emit\PENetModuleBuilder.vb (1)
23MyBase.New(sourceModule, emitOptions, OutputKind.NetModule, serializationProperties, manifestResources)
PredefinedPreprocessorSymbols.vb (1)
75Case OutputKind.NetModule
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
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (8)
CommandLineTests.vb (8)
1978Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind) 2914Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind) 2934Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind) 2960Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind) 2980Assert.Equal(OutputKind.NetModule, parsedArgs.CompilationOptions.OutputKind) 6575CheckManifestXml(source, OutputKind.NetModule, explicitManifest:=Nothing, expectedManifest:=Nothing) 6792CheckManifestXml(source, OutputKind.NetModule, explicitManifest, expectedManifest:=Nothing) 6818Case OutputKind.NetModule
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (13)
Attributes\AttributeTests_Synthesized.vb (10)
767If outputKind <> OutputKind.NetModule Then 1015If outputKind <> OutputKind.NetModule Then 1090CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1128CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1165CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1209CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1284CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1336CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1383CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator) 1432CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule, Verification.Passes, Verification.Skipped), symbolValidator:=validator)
Emit\CompilationEmitTests.vb (2)
1158CreateEmptyCompilation("", options:=TestOptions.DebugDll.WithDeterministic(True).WithOutputKind(OutputKind.NetModule)) 3845Dim comp = CreateCompilationWithMscorlib40(source1, OutputKind.NetModule)
Emit\DeterministicTests.vb (1)
195compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.NetModule),
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Compilation\CompilationAPITests.vb (3)
2048Dim compilation = CreateCompilationWithMscorlib40(source, OutputKind.NetModule) 2454Dim c4 = c3.WithOptions(New VisualBasicCompilationOptions(OutputKind.NetModule)) 2627Assert.Throws(Of ArgumentException)(Function() VisualBasicCompilation.CreateScriptCompilation("a", options:=TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)))
Compilation\ReferenceManagerTests.vb (1)
1511Dim moduleRef = CreateCompilationWithMscorlib40(moduleSource, OutputKind.NetModule).EmitToImageReference()
Compilation\VisualBasicCompilationOptionsTests.vb (1)
508Dim options As New VisualBasicCompilationOptions(OutputKind.NetModule, embedVbCoreRuntime:=True)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (13)
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\CompilationCreationTests.vb (1)
2172Dim lib1 = CreateCompilationWithMscorlib40(source1, OutputKind.NetModule)
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\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)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Parser\VisualBasicParseOptionsTests.vb (1)
59Dim symbols = AddPredefinedPreprocessorSymbols(OutputKind.NetModule)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
TestOptions.vb (1)
33Public Shared ReadOnly ReleaseModule As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.NetModule, optimizationLevel:=OptimizationLevel.Release).WithParseOptions(Regular)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
VisualStudioMSBuildWorkspaceTests.cs (3)
411var solution2 = solution1.WithProjectCompilationOptions(project.Id, project.CompilationOptions.WithOutputKind(OutputKind.NetModule)); 1532await AssertCSCompilationOptionsAsync(OutputKind.NetModule, options => options.OutputKind); 1730await AssertVBCompilationOptionsAsync(OutputKind.NetModule, options => options.OutputKind);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestHostProject`1.cs (1)
298case OutputKind.NetModule:
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionTests.cs (1)
1724var options = new CSharpCompilationOptions(OutputKind.NetModule);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
242OutputFileType.Module => OutputKind.NetModule,
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (1)
127Return OutputKind.NetModule