Base solution for your next web application
Open Closed

TypeScript Upgrade #3368


User avatar
0
tteoh created

Hi Support,

Please advice if I should upgrade TypeScript whenever prompted the message by Visual Studio:

Your project uses a version of TypeScript older than the version currently installed with Visual Studio. You may get errors if you try to build your project. Would you like us to upgrade the TypeScriptToolsVersion in your project file so you don't see this warning again?

Thanks. /Tommy


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @tteoh,

    Which version of Typescript do you use in your project ? I think you can upgrade it, this is just related to tooling.

    Thanks.

  • User Avatar
    0
    tteoh created

    <cite>ismcagdas: </cite> Hi @tteoh,

    Which version of Typescript do you use in your project ? I think you can upgrade it, this is just related to tooling.

    Thanks.

    I run from Developer Command Prompt for VS2015, it shows "Version 1.0.3.0"

    However, I am not sure how to check the current TypeScript used for AspNetZero solution. Appreciate your advice.

    Thanks. /Tommy

  • User Avatar
    0
    tteoh created

    <cite>tteoh: </cite>

    <cite>ismcagdas: </cite> Hi @tteoh,

    Which version of Typescript do you use in your project ? I think you can upgrade it, this is just related to tooling.

    Thanks.

    I run from Developer Command Prompt for VS2015, it shows "Version 1.0.3.0"

    However, I am not sure how to check the current TypeScript used for AspNetZero solution. Appreciate your advice.

    Thanks. /Tommy

    Hi Support,

    Sorry for the miscommunication above. Every moment is a learning moment for me.

    Just realized the version provided in the developer command prompt is not so accurate. Based on "C:\Program Files (x86)\Microsoft SDKs\TypeScript" path, I have version 1.8 and 2.2 installed.

    Based on .Web csproj file, the config shows "<TypeScriptToolsVersion>2.1</TypeScriptToolsVersion>"

    What should be the correct config?

    Thanks. /Tommy

  • User Avatar
    0
    ismcagdas created
    Support Team

    We didn't try v2.2 but you can change it and if it works you can keep that change. We will upgrade it in the future.

    Thanks.