1 write to PrimaryModule
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\MetadataShadowCopy.cs (1)
38
PrimaryModule
= primaryModule;
11 references to PrimaryModule
Microsoft.CodeAnalysis.Scripting (3)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (1)
123
var result = _runtimeAssemblyLoader.LoadFromPath((copy != null) ? copy.
PrimaryModule
.FullPath : reference);
Hosting\AssemblyLoader\MetadataShadowCopy.cs (1)
46
PrimaryModule
.DisposeFileStream();
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
317
key = new FileKey(fullPath, FileUtilities.GetFileTimeStamp(newCopy.Public.
PrimaryModule
.FullPath));
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (8)
MetadataShadowCopyProviderTests.cs (8)
91
Assert.Equal(dll.Path, sc1.
PrimaryModule
.OriginalPath);
92
Assert.NotEqual(dll.Path, sc1.
PrimaryModule
.FullPath);
96
Assert.Equal(File.ReadAllBytes(dll.Path), File.ReadAllBytes(sc1.
PrimaryModule
.FullPath));
128
Assert.NotEqual(dll.Path, sc1.
PrimaryModule
.FullPath);
131
var sc2 = _provider.GetMetadataShadowCopy(sc1.
PrimaryModule
.FullPath, MetadataImageKind.Assembly);
231
Assert.Equal(Path.Combine(Path.GetDirectoryName(sc.
PrimaryModule
.FullPath), @"a.xml"), sc.DocumentationFile.FullPath);
237
Assert.Equal(Path.Combine(Path.GetDirectoryName(sc.
PrimaryModule
.FullPath), @"el-GR", "a.xml"), sc.DocumentationFile.FullPath);
243
Assert.Equal(Path.Combine(Path.GetDirectoryName(sc.
PrimaryModule
.FullPath), @"a.xml"), sc.DocumentationFile.FullPath);