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)
3719Assert.Equal("MyBinary.dll", parsedArgs.CompilationOptions.ModuleName) 3726Assert.Equal("MyBinary.dll", parsedArgs.CompilationOptions.ModuleName) 3763Assert.Equal("MyBinary.dll", parsedArgs.CompilationOptions.ModuleName) 3770Assert.Equal("MyBinary.dll", parsedArgs.CompilationOptions.ModuleName) 3777Assert.Equal("MyBinary.dll", parsedArgs.CompilationOptions.ModuleName) 3785Assert.Equal("a.exe", parsedArgs.CompilationOptions.ModuleName) 3793Assert.Equal("a.dll", parsedArgs.CompilationOptions.ModuleName) 3801Assert.Equal("a.netmodule", parsedArgs.CompilationOptions.ModuleName) 3809Assert.Equal("a.exe", parsedArgs.CompilationOptions.ModuleName) 3817Assert.Equal("a.winmdobj", parsedArgs.CompilationOptions.ModuleName) 3828Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3838Assert.Equal("a.exe", parsedArgs.CompilationOptions.ModuleName) 3846Assert.Equal("file.exe", parsedArgs.CompilationOptions.ModuleName) 3855Assert.Equal("a.exe", parsedArgs.CompilationOptions.ModuleName) 3882Assert.Equal("a.exe", parsedArgs.CompilationOptions.ModuleName) 3909Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3917Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3925Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3932Assert.Equal(".netmodule", parsedArgs.CompilationOptions.ModuleName) 3940Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3948Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3956Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3963Assert.Equal(".netmodule", parsedArgs.CompilationOptions.ModuleName) 3974Assert.Equal(".x.exe", parsedArgs.CompilationOptions.ModuleName) 3981Assert.Equal(".x.eXe", parsedArgs.CompilationOptions.ModuleName) 3988Assert.Null(parsedArgs.CompilationOptions.ModuleName) 3996Assert.Equal(".x.dll", parsedArgs.CompilationOptions.ModuleName) 4003Assert.Equal(".X.Dll", parsedArgs.CompilationOptions.ModuleName) 4010Assert.Null(parsedArgs.CompilationOptions.ModuleName) 4018Assert.Equal(".x", parsedArgs.CompilationOptions.ModuleName) 4025Assert.Equal("x.dll", parsedArgs.CompilationOptions.ModuleName) 4032Assert.Equal(".x.netmodule", parsedArgs.CompilationOptions.ModuleName) 4039Assert.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);