/// <summary>
        /// Returns the filename of the dac dll according to the specified parameters
        /// </summary>
        public static string GetDacRequestFileName(ClrFlavor flavor, Runtime.Architecture currentArchitecture, Runtime.Architecture targetArchitecture, VersionInfo clrVersion)
        {
            if (flavor == ClrFlavor.Native)
            {
                return(targetArchitecture == Runtime.Architecture.Amd64 ? "mrt100dac_winamd64.dll" : "mrt100dac_winx86.dll");
            }

            string dacName = flavor == ClrFlavor.CoreCLR ? "mscordaccore" : "mscordacwks";

            return(string.Format("{0}_{1}_{2}_{3}.{4}.{5}.{6:D2}.dll", dacName, currentArchitecture, targetArchitecture, clrVersion.Major, clrVersion.Minor, clrVersion.Revision, clrVersion.Patch));
        }
Example #2
0
 internal static string GetDacFileName(ClrFlavor flavor, Runtime.Architecture targetArchitecture)
 {
     return(flavor == ClrFlavor.Core ? "mscordaccore.dll" : "mscordacwks.dll");
 }
Example #3
0
        /// <summary>
        /// Returns the filename of the dac dll according to the specified parameters
        /// </summary>
        public static string GetDacRequestFileName(ClrFlavor flavor, Runtime.Architecture currentArchitecture, Runtime.Architecture targetArchitecture, VersionInfo clrVersion)
        {
            string dacName = flavor == ClrFlavor.Core ? "mscordaccore" : "mscordacwks";

            return(string.Format("{0}_{1}_{2}_{3}.{4}.{5}.{6:D2}.dll", dacName, currentArchitecture, targetArchitecture, clrVersion.Major, clrVersion.Minor, clrVersion.Revision, clrVersion.Patch));
        }