private void Initialize() { this.projectType = WinRTProjectTypeDetector.GetProjectType(this.assembly); this.dependencies = new Dictionary <string, string>(); this.runtimes = new List <string>(); if (this.IsUWPProject) { TargetArchitecture architecture = this.assembly.MainModule.GetModuleArchitecture(); if (architecture == TargetArchitecture.I386) { this.runtimes.Add("win10-x86"); this.runtimes.Add("win10-x86-aot"); } else if (architecture == TargetArchitecture.AMD64) { this.runtimes.Add("win10-x64"); this.runtimes.Add("win10-x64-aot"); } else if (architecture == TargetArchitecture.ARMv7) { this.runtimes.Add("win10-arm"); this.runtimes.Add("win10-arm-aot"); } } InitializeInstalledUAPVersions(); }
private void Initialize() { this.projectType = WinRTProjectTypeDetector.GetProjectType(this.assembly); if (this.projectType == WinRTProjectType.Component || this.projectType == WinRTProjectType.ComponentForWindows) { this.platforms = new List <string>() { "Any CPU", "ARM", "x64", "x86" }; } else if (this.projectType == WinRTProjectType.ComponentForUniversal) { this.platforms = new List <string>() { "Any CPU" }; } else if (this.projectType == WinRTProjectType.ComponentForWindowsPhone) { this.platforms = new List <string>() { "Any CPU", "ARM", "x86" }; } else { this.platforms = new List <string>(); } }
public WinRTProjectFileManager(AssemblyDefinition assembly, AssemblyInfo assemblyInfo, ILanguage language, VisualStudioVersion visualStudioVersion, NamespaceHierarchyTree namespaceHierarchyTree, Dictionary <ModuleDefinition, Guid> modulesProjectsGuids, WinRTProjectType projectType, bool isUWPProject, Version minInstalledUAPVersion, Version maxInstalledUAPVersion) : base(assembly, assemblyInfo, visualStudioVersion, modulesProjectsGuids, language, namespaceHierarchyTree) { this.projectType = projectType; this.isUWPProject = isUWPProject; this.minInstalledUAPVersion = minInstalledUAPVersion; this.maxInstalledUAPVersion = maxInstalledUAPVersion; }
private void Initialize() { this.projectType = WinRTProjectTypeDetector.GetProjectType(this.assembly); if (this.projectType == WinRTProjectType.Component || this.projectType == WinRTProjectType.ComponentForWindows) { this.platforms = new List<string>() { "Any CPU", "ARM", "x64", "x86" }; } else if (this.projectType == WinRTProjectType.ComponentForUniversal) { this.platforms = new List<string>() { "Any CPU" }; } else if (this.projectType == WinRTProjectType.ComponentForWindowsPhone) { this.platforms = new List<string>() { "Any CPU", "ARM", "x86" }; } else { this.platforms = new List<string>(); } }
private void Initialize() { this.projectType = WinRTProjectTypeDetector.GetProjectType(this.assembly); this.dependencies = new Dictionary<string, string>(); this.runtimes = new List<string>(); if (this.IsUWPProject) { TargetArchitecture architecture = this.assembly.MainModule.GetModuleArchitecture(); if (architecture == TargetArchitecture.I386) { this.runtimes.Add("win10-x86"); this.runtimes.Add("win10-x86-aot"); } else if (architecture == TargetArchitecture.AMD64) { this.runtimes.Add("win10-x64"); this.runtimes.Add("win10-x64-aot"); } else if (architecture == TargetArchitecture.ARMv7) { this.runtimes.Add("win10-arm"); this.runtimes.Add("win10-arm-aot"); } } InitializeInstalledUAPVersions(); }