Last post Oct 18, 2018 04:35 AM by Gary Liu - MSFT
Oct 11, 2018 05:13 AM|Ganesan Rengasamy|LINK
I am working on creating the ASP.NET Core Project Templates for my controls. I am using some third party Npm packages to use my control after creating the custom project template. I have added the logic for NPM installation itself to overcome the manual
process of give the NPM restore from the project while creating the custom project from my project template.
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "cmd.exe";
string npmArguments = "/c npm install " + "@syncfusion/ej2-js-es5"+ "@" + "16.3.21";
p.StartInfo.Arguments = npmArguments;
p.StartInfo.RedirectStandardError = false;
p.StartInfo.RedirectStandardOutput = false;
p.StartInfo.UseShellExecute = true;
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
Environment.CurrentDirectory = NPMInstallerPath;
dte.StatusBar.Text = ("JS: " + project.Name + ", Adding Syncfusion EJ2 NPM to the project...");
But NPM is not restored by default after created the project. NPM package entries available in the package.json file. This issue has been reproduced in VS2017 15.7.1 only. I have checked the same VSIX in VS2017 15.8.4, the issue is not reproduced. NPM is
Could you please suggest me to resolve this issue?
Oct 12, 2018 02:29 AM|Xing Zou|LINK
Hi Ganesan Rengasamy,
I am afraid that this problem is more related to VS not asp.net core development. You could ask it on
Visual Studio Forum.
Oct 17, 2018 06:48 AM|Ganesan Rengasamy|LINK
First I have asked this query in Visual Studio Forum and they are redirected me to this link. So, I have asked the question here. What will i do now for the solution.
Oct 18, 2018 04:35 AM|Gary Liu - MSFT|LINK
Sorry for making you inconvenient and confused. Acuallty, this case should be in the scope of VS support forum. And after an internal communication, the support engineer had replied you at https://social.msdn.microsoft.com/Forums/en-US/24590cd4-9c3f-4f08-ba5b-95341abafdf8/npm-installation-not-working-properly?forum=visualstudiogeneral.
Please follow this issue at your original thread on MSDN forum.
Thanks for your understanding.