internal void RemoveRuntimeVersion(Platform platform, AssemblyVersion version)
        {
            var rv = new RuntimeVersion {
                Version = version, Platform = platform
            };

            _runtimeVersion2Directories.Remove(rv);
        }
        internal void AddRuntimeVersion(Platform platform, AssemblyVersion version, string dir)
        {
            var rv = new RuntimeVersion {
                Version = version, Platform = platform
            };

            _runtimeVersion2Directories[rv] = dir;
        }
        string GetDirectoryByRuntimeVersion(Platform platform, AssemblyVersion version)
        {
            var rv = new RuntimeVersion {
                Version = version, Platform = platform
            };
            string result;

            if (!_runtimeVersion2Directories.TryGetValue(rv, out result))
            {
                throw new NotSupportedException("Version not supported: " + version);
            }
            return(result);
        }
示例#4
0
 // 删除平台版本到平台文件夹的映射
 internal static void RemoveRuntimeVersion(Platform platform, AssemblyVersion version)
 {
     _assemblyResolver.RemoveRuntimeVersion(platform, version);
 }
示例#5
0
 // 添加平台版本到平台文件夹的映射
 internal static void AddRuntimeVersion(Platform platform, AssemblyVersion version, string dir)
 {
     _assemblyResolver.AddRuntimeVersion(platform, version, dir);
 }