title: updating the angular version in a visual studio 2019 project
body: <p>Im starting to learn angular and have hit a bump pretty quickly.  The angular project template in visual studio 2019 installs angular 8.  The latest version is 12, so I thought Id simply update to that version.  What a headache !  The most popular option seems to be to copy the src folder somewhere then delete the ClientApp folder in the angular src directory of the project and run this command line</p>
  <p>ng new ClientApp</p>
  <p>this creates the clientapp directory using the latest version of angular installed on my system.  This works and after checking the package.json file, the version has been updated.  I then copy the original app directory from my original project (so that I keep all the original pages, etc) back int the new src directory.  When I run the project again, it wont run, in the browser all I get is a message</p>
  <p>'Cannot Get'</p>
  <p>How on earth is it possible to simply update the angular version ?, there must be an easier way.  If I develop something with an older angular version and simply want to switch to a newer version, retaining my original code how can this be done ?  Surely in the real world this is a common practice, apps will be developed, then a new version of angular comes out and the app will need to be updated.  It seems incredibly complicated, I havent actually manged to get it to work.  Can anyone help ?</p>
  <p>So I tried the update path as suggested but it didnt work, heres the error (I tried it wih version 9 too, same results, the version wasnt updated)</p>
  <p><a href="https://i.stack.imgur.com/tlWOv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tlWOv.jpg" alt="enter image description here" /></a></p>
  <p>** update</p>
  <p>managed to get to version 9 but with errors, so tried to go to 10, now I have this, what a painful experience, can anyone shed some light on this problem ?</p>
  <p><a href="https://i.stack.imgur.com/XniRk.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XniRk.jpg" alt="enter image description here" /></a></p>