Tuesday, May 1, 2018

Invalid command line switch for tsc.exe. Visual Studio 2015 - 2017



After I installed visual studio 2017 while I had visual studio 2015 in good working condition my visual studio 2015 cordova Javascript project gave me this error.


Invalid command line switch for tsc.exe


Possible cause for this one is with visual studio 2017, you'll be getting new typescript libraries. So visual studio 2015 is confusing when selecting the highest typescript version automatically.

If your project is javascript based cordova project fix is easy.

1. Open project file in notepad or any editor you using.
2. Edit following section.


* You cant use this fix for typescript based cordova projects.
* If you still see some errors your visual studio 2015 may needs a repair.  Please follow the link bellow regarding repairing vs 2015.

https://guntucomputerhacks.blogspot.com.au/2018/04/current-package-installation-is.html





1 comment:

  1. The Casino Experience | Dr.MD
    Experience gaming in 청주 출장마사지 Las Vegas. The casino 안양 출장샵 is home to the best in live dealer 속초 출장샵 casino games, table games and live entertainment! 진주 출장샵 Experience gaming Phone Number: (702) 충청북도 출장마사지 770-5000Headquarters: Henderson, NV Rating: 2.9 · ‎4,821 reviews

    ReplyDelete