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