Esempio n. 1
0
        public void UpdatePackage(string projPath, IVsOutputWindowPane pane, string platform)
        {
            Dictionary<string, string> patchMap = new Dictionary<string, string>();

            patchMap.Add(string.Format(CultureInfo.CurrentCulture, "\\uwp\\{0}\\serialport.node", platform),
                "\\node_modules\\serialport\\build\\serialport.node");

            NpmPatcher npmPatcher = new NpmPatcher();
            npmPatcher.UpdatePackage(new Uri(PatchUri), projPath, pane, Name, patchMap);
        }
Esempio n. 2
0
        public void UpdatePackage(string projPath, IVsOutputWindowPane pane, string platform)
        {
            Dictionary <string, string> patchMap = new Dictionary <string, string>();

            patchMap.Add(string.Format(CultureInfo.CurrentCulture, "\\uwp\\{0}\\serialport.node", platform),
                         "\\node_modules\\serialport\\build\\serialport.node");

            NpmPatcher npmPatcher = new NpmPatcher();

            npmPatcher.UpdatePackage(new Uri(PatchUri), projPath, pane, Name, patchMap);
        }
        public void UpdatePackage(string projPath, IVsOutputWindowPane pane)
        {
            Dictionary<string, string> patchMap = new Dictionary<string, string>();

            patchMap.Add("\\uwp\\serialport.js", "\\node_modules\\serialport\\serialport.js");
            foreach (Platform platform in Enum.GetValues(typeof(Platform)))
            {
                string platformStr = platform.ToString();
                patchMap.Add(string.Format(CultureInfo.CurrentCulture, "\\uwp\\{0}\\serialport.node", platformStr), string.Format(CultureInfo.CurrentCulture,
                    "\\node_modules\\serialport\\build\\Release\\node-{0}-win32-{1}\\serialport.node", NODE_MODULE_VERSION, (platform == Platform.x86) ? "ia32" : platformStr));      
            }

            NpmPatcher npmPatcher = new NpmPatcher();
            npmPatcher.UpdatePackage(new Uri(PatchUri), projPath, pane, Name, patchMap);
        }
Esempio n. 4
0
        public void UpdatePackage(string projPath, IVsOutputWindowPane pane)
        {
            Dictionary <string, string> patchMap = new Dictionary <string, string>();

            patchMap.Add("\\uwp\\serialport.js", "\\node_modules\\serialport\\serialport.js");
            foreach (Platform platform in Enum.GetValues(typeof(Platform)))
            {
                string platformStr = platform.ToString();
                patchMap.Add(string.Format(CultureInfo.CurrentCulture, "\\uwp\\{0}\\serialport.node", platformStr), string.Format(CultureInfo.CurrentCulture,
                                                                                                                                  "\\node_modules\\serialport\\build\\Release\\node-{0}-win32-{1}\\serialport.node", NODE_MODULE_VERSION, (platform == Platform.x86) ? "ia32" : platformStr));
            }

            NpmPatcher npmPatcher = new NpmPatcher();

            npmPatcher.UpdatePackage(new Uri(PatchUri), projPath, pane, Name, patchMap);
        }