UseAngularCliServer fail on .net core 3.0
Describe the bug
On net core 3.0 preview, Angular template execution fails on exception : System.AggregateException: One or more errors occurred. (One or more errors occurred. (Failed to start 'npm'. To resolve this:. ... See the InnerException for further details of the cause. ---> System.ComponentModel.Win32Exception: Invalid path name
To Reproduce
Steps to reproduce the behavior:
- Allow preview version of .net core in Visual studio 2017
- Generate angular template with cli command : dotnet new angular -o angularbase
- Start application in VS (debug or release)
Expected behavior
spa.UseAngularCliServer(npmScript: "start") should start ng server correctly
Just additional information, npm is correctly installed and executable correctly referenced in path. With same project if I go back to target framework 2.2 everything is ok.
Thanks for contacting us, @tuxy42. @ryanbrandenburg, can you please look into this? Thanks!
Another information, it's only true when "IIS express" debugging profil is selected, when I select "Project" name profile (self contained webserver I suppose) everything work well.
Thanks for contacting us, @tuxy42. Given that there have been many changes in Angular template, we think this issue has been addressed. If you feel otherwise, please open it or file a new issue for us to investigate.
Hi not sure if this is relevant, but I have an issue which is either the same or at least similar/related. If you set up a .net core 3.0 web api project and an angular .net core 3.0 project and put them both into debug via IISExpress you can trigger the same bug as described above if you place a web API call from your angular app with a breakpoint within the api code and then just wait around 30 seconds and then click continue. If as described above you run the .net core 3.0 angular app in Project then everything works fine.