Exemplo n.º 1
0
        private static CompatibleFramework GetFullCompatFramework(FrameworkNameVersioning frameworkName)
        {
            var compat = new CompatibleFramework
            {
                Version          = frameworkName.Version.ToString(),
                SupportedRuntime = PatchCLRVersion(Util.GetClrVersion(frameworkName.Version.ToString())),
                Profile          = "Full"
            };

            return(compat);
        }
Exemplo n.º 2
0
        private CompatibleFramework GetFullCompatFramework(FrameworkNameVersioning frameworkName)
        {
            CompatibleFramework compat = new CompatibleFramework();

            compat.Version = frameworkName.Version.ToString();

            compat.SupportedRuntime = PatchCLRVersion(Util.GetClrVersion(frameworkName.Version.ToString()));
            compat.Profile          = "Full";

            return(compat);
        }
Exemplo n.º 3
0
        private void FixupClrVersion()
        {
            AssemblyReference assembly = base.AssemblyReferences.Find("Microsoft.Windows.CommonLanguageRuntime");

            if (assembly == null)
            {
                assembly = new AssemblyReference {
                    IsPrerequisite = true
                };
                base.AssemblyReferences.Add(assembly);
            }
            if ((assembly.AssemblyIdentity == null) || string.IsNullOrEmpty(assembly.AssemblyIdentity.Version))
            {
                assembly.AssemblyIdentity = new AssemblyIdentity("Microsoft.Windows.CommonLanguageRuntime", Util.GetClrVersion(this.targetFrameworkVersion));
            }
        }
 private CompatibleFramework GetFullCompatFramework(FrameworkName frameworkName)
 {
     return(new CompatibleFramework {
         Version = frameworkName.Version.ToString(), SupportedRuntime = this.PatchCLRVersion(Util.GetClrVersion(frameworkName.Version.ToString())), Profile = "Full"
     });
 }
Exemplo n.º 5
0
        // Make sure we have a CLR dependency, add it if not...
        private void FixupClrVersion()
        {
            AssemblyReference CLRPlatformAssembly = AssemblyReferences.Find(Constants.CLRPlatformAssemblyName);

            if (CLRPlatformAssembly == null)
            {
                CLRPlatformAssembly = new AssemblyReference();
                CLRPlatformAssembly.IsPrerequisite = true;
                AssemblyReferences.Add(CLRPlatformAssembly);
            }
            if (CLRPlatformAssembly.AssemblyIdentity == null || String.IsNullOrEmpty(CLRPlatformAssembly.AssemblyIdentity.Version))
            {
                CLRPlatformAssembly.AssemblyIdentity = new AssemblyIdentity(Constants.CLRPlatformAssemblyName, Util.GetClrVersion(_targetFrameworkVersion));
            }
        }