VS 2022 and the execution of new Angular Template

%3CLINGO-SUB%20id%3D%22lingo-sub-2982207%22%20slang%3D%22en-US%22%3EVS%202022%20and%20the%20execution%20of%20new%20Angular%20Template%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2982207%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3EVisual%20Studio%202022%20has%20a%20new%20template%20for%20Angular%20projects%20and%20it's%20very%20nice.%20I'm%20not%20Angular%20specialist%2C%20so%20I'm%20not%20sure%20if%20my%20question%20will%20be%20a%20bit%20silly....%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EFor%20the%20site%20to%20be%20executed%2C%20there%20is%20a%20need%20of%20a%20command%20prompt%20window%20to%20be%20opened%20and%20make%20the%20typescript%20compilation%20using%20node%2C%20besides%20provisioning%20a%20server.%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EThe%20problem%20is%20this%20window%20sometimes%20open%2C%20sometimes%20not.%20When%20it%20decides%20not%20to%20open%2C%20I%20get%20lost%20about%20what%20to%20do%20to%20ensure%20it%20will%20open%20again%20on%20next%20execution.%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3ESometime%20it%20appears%20to%20be%20related%20to%20the%20execution%20of%20a%20Build%20before%20the%20execution%2C%20but%20not%20always.%20What%20may%20I%20be%20doing%20wrong%2C%20how%20could%20I%20work%20around%20this%20and%20execute%20the%20project%20easier%3F%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EA%20workaround%20for%20this%20is%20to%20execute%20npm%20start%20on%20the%20package%20manager%20console%20window.%20But%20by%20doing%20this%2C%20when%20we%20need%20to%20compile%20again%20we%20need%20to%20close%20Visual%20Studio%20and%20open%20again.%3CBR%20%2F%3E%3CBR%20%2F%3EAny%20better%20way%20to%20work%20with%20this%3F%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2982207%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EConsole%20Apps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
MVP

Hi,

 

Visual Studio 2022 has a new template for Angular projects and it's very nice. I'm not Angular specialist, so I'm not sure if my question will be a bit silly....
 
For the site to be executed, there is a need of a command prompt window to be opened and make the typescript compilation using node, besides provisioning a server.
 
The problem is this window sometimes open, sometimes not. When it decides not to open, I get lost about what to do to ensure it will open again on next execution.
 
Sometime it appears to be related to the execution of a Build before the execution, but not always. What may I be doing wrong, how could I work around this and execute the project easier?
 
A workaround for this is to execute npm start on the package manager console window. But by doing this, when we need to compile again we need to close Visual Studio and open again.

Any better way to work with this?
0 Replies