3 writes to ModuleName
Microsoft.CodeAnalysis (1)
Compilation\CompilationOptions.cs (1)
298this.ModuleName = moduleName;
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
295return new CSharpCompilationOptions(this) { ModuleName = moduleName };
Microsoft.CodeAnalysis.VisualBasic (1)
VisualBasicCompilationOptions.vb (1)
497Return New VisualBasicCompilationOptions(Me) With {.ModuleName = moduleName}
55 references to ModuleName
Microsoft.CodeAnalysis (8)
Compilation\Compilation.cs (2)
402/// Unless <see cref="CompilationOptions.ModuleName"/> specifies otherwise the module name 425return Options.ModuleName ??
Compilation\CompilationOptions.cs (5)
32/// If <see cref="ModuleName"/> is null the actual name written to metadata 636string.Equals(this.ModuleName, other.ModuleName, StringComparison.Ordinal) && 683Hash.Combine(this.ModuleName != null ? StringComparer.Ordinal.GetHashCode(this.ModuleName) : 0,
Compilation\DeterministicKeyBuilder.cs (1)
443writer.Write("moduleName", options.ModuleName);
Microsoft.CodeAnalysis.CSharp (4)
CSharpCompilationOptions.cs (4)
233moduleName: other.ModuleName, 290if (moduleName == this.ModuleName) 685if (ModuleName != null) 687MetadataHelpers.CheckAssemblyOrModuleName(ModuleName, MessageProvider.Instance, (int)ErrorCode.ERR_BadModuleName, builder);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\CSharpCompilationOptionsTests.cs (3)
74TestHiddenProperty((old, value) => old.WithModuleName(value), opt => opt.ModuleName, "goo.dll"); 110TestProperty((old, value) => old.WithModuleName(value), opt => opt.ModuleName, "goo.dll"); 252Assert.Null(TestOptions.ReleaseDll.WithModuleName(null).ModuleName);
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
RoundTripUtil.cs (1)
225case nameof(CompilationOptions.ModuleName):
Microsoft.CodeAnalysis.VisualBasic (4)
VisualBasicCompilationOptions.vb (4)
300moduleName:=other.ModuleName, 493If String.Equals(moduleName, Me.ModuleName, StringComparison.Ordinal) Then 1038If ModuleName IsNot Nothing Then 1039MetadataHelpers.CheckAssemblyOrModuleName(ModuleName, MessageProvider.Instance, ERRID.ERR_BadModuleName, builder)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (33)
CommandLineTests.vb (33)
3720Assert.Equal("MyBinary.dll", parsedArgs.CompilationOptions.ModuleName) 3727Assert.Equal("MyBinary.dll", parsedArgs.CompilationOptions.ModuleName) 3764Assert.Equal("MyBinary.dll", parsedArgs.CompilationOptions.ModuleName) 3771Assert.Equal("MyBinary.dll", parsedArgs.CompilationOptions.ModuleName) 3778Assert.Equal("MyBinary.dll", parsedArgs.CompilationOptions.ModuleName) 3786Assert.Equal("a.exe", parsedArgs.CompilationOptions.ModuleName) 3794Assert.Equal("a.dll", parsedArgs.CompilationOptions.ModuleName) 3802Assert.Equal("a.netmodule", parsedArgs.CompilationOptions.ModuleName) 3810Assert.Equal("a.exe", parsedArgs.CompilationOptions.ModuleName) 3818Assert.Equal("a.winmdobj", parsedArgs.CompilationOptions.ModuleName) 3829Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3839Assert.Equal("a.exe", parsedArgs.CompilationOptions.ModuleName) 3847Assert.Equal("file.exe", parsedArgs.CompilationOptions.ModuleName) 3856Assert.Equal("a.exe", parsedArgs.CompilationOptions.ModuleName) 3883Assert.Equal("a.exe", parsedArgs.CompilationOptions.ModuleName) 3910Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3918Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3926Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3933Assert.Equal(".netmodule", parsedArgs.CompilationOptions.ModuleName) 3941Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3949Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3957Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3964Assert.Equal(".netmodule", parsedArgs.CompilationOptions.ModuleName) 3975Assert.Equal(".x.exe", parsedArgs.CompilationOptions.ModuleName) 3982Assert.Equal(".x.eXe", parsedArgs.CompilationOptions.ModuleName) 3989Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3997Assert.Equal(".x.dll", parsedArgs.CompilationOptions.ModuleName) 4004Assert.Equal(".X.Dll", parsedArgs.CompilationOptions.ModuleName) 4011Assert.Null(parsedArgs.CompilationOptions.ModuleName) 4019Assert.Equal(".x", parsedArgs.CompilationOptions.ModuleName) 4026Assert.Equal("x.dll", parsedArgs.CompilationOptions.ModuleName) 4033Assert.Equal(".x.netmodule", parsedArgs.CompilationOptions.ModuleName) 4040Assert.Equal("x.netmodule", parsedArgs.CompilationOptions.ModuleName)
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\AbstractOptionsSerializationService.cs (1)
30writer.WriteString(options.ModuleName);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlCreation.cs (1)
73var projectElement = CreateProjectElement(compilationOptions?.ModuleName ?? "Test", language, commonReferences, parseOptions, compilationOptions, documentElements);