Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90


NinjaScript editor cannot find Visual Studio, VSwhere.exe is in right directory

  • Filter
  • Time
  • Show
Clear All
new posts

    NinjaScript editor cannot find Visual Studio, VSwhere.exe is in right directory

    I was going through Visual Studio debugging writeup in the Ninja Script help files. After opening NinjaScript Editor I treid to click Debug mode I get the message Visual Studio not found.

    Looking through forum posts saw that NinjaScript uses Vswhere.exe in the program files (x86) to know the location of Visual Studio installation. Found Vswhere.exe in the correct location and then rnning Vswhere.exe gives location of Visual Studio but NinjaScript editor does not find it in my case.

    When I start Visual Studio I can attach to Ninja Trader process but NinjaScript editor cannot find it. I have Visual Studio 2022 installed.

    Below is the data generated from running Vswhere.exe in my computer:
    Can you please tell me how to address this problem. TIA

    C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere
    Visual Studio Locator version 3.0.3+45247720e1 [query version 3.4.1128.26111]
    Copyright (C) Microsoft Corporation. All rights reserved.
    instanceId: fa5fd3e2
    installDate: 1/23/2023 11:16:14 AM
    installationName: VisualStudio/17.4.4+33213.308
    installationPath: C:\Program Files\Microsoft Visual Studio\2022\Community
    installationVersion: 17.4.33213.308
    productId: Microsoft.VisualStudio.Product.Community
    productPath: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe
    state: 4294967295
    isComplete: 1
    isLaunchable: 1
    isPrerelease: 0
    isRebootRequired: 0
    displayName: Visual Studio Community 2022
    description: Powerful IDE, free for students, open-source contributors, and individuals
    channelId: VisualStudio.17.Release
    enginePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services \Microsoft.VisualStudio.Setup.Service
    installedChannelId: VisualStudio.17.Release
    updateDate: 2023-01-23T16:16:14.5537841Z
    catalog_buildBranch: d17.4
    catalog_buildVersion: 17.4.33213.308
    catalog_id: VisualStudio/17.4.4+33213.308
    catalog_localBuild: build-lab
    catalog_manifestName: VisualStudio
    catalog_manifestType: installer
    catalog_productDisplayVersion: 17.4.4
    catalog_productLine: Dev17
    catalog_productLineVersion: 2022
    catalog_productMilestone: RTW
    catalog_productMilestoneIsPreRelease: False
    catalog_productName: Visual Studio
    catalog_productPatchVersion: 4
    catalog_productPreReleaseMilestoneSuffix: 1.0
    catalog_productSemanticVersion: 17.4.4+33213.308
    catalog_requiredEngineVersion: 3.4.2246.31370
    properties_campaignId: 2030:ce9190f062ca4ed99ebc692faef1a825
    properties_channelManifestId: VisualStudio.17.Release/17.4.4+33213.308
    properties_setupEngineFilePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe

    C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere

    Hello suraj,

    Thanks for your post.

    What version of NinjaTrader are you using? Please provide the full version number (ex: 8.0.X.X). This could be found in the Control Center > Help > About window.

    I look forward to assisting further.
    Brandon H.NinjaTrader Customer Service


      Hi Brandon,

      I am using Version 64-bit on the machine that I got the error

      but I also use another machine with Version 64-bit which I also might have to use for debugging later.



        Hello suraj,

        Thanks for your note.

        I see that you're using an older version of NinjaTrader 8. The current version of NinjaTrader 8 is

        Please follow the steps below to upgrade NinjaTrader to the latest version and retest for the error.
        • First, copy your license key from NinjaTrader under Help> License Key then exit NinjaTrader
        • Click on the link:
        • Enter your license key and press Submit
        • Select 'Download'
        • Critical: Before running the installer, ensure NinjaTrader is closed.
        ​Please let me know if I may assist further.
        Brandon H.NinjaTrader Customer Service


          Hi Brandon,

          I installed version on another machine an it fond Visual Studio.

          Is the link to Visual Studio a new addition?
          What did the developers do before this version to debug i.e. is there another way to link Ninja trader with Visual Studio manually to carry out the debg process?

          I would like to see if I can get it to work with the older version of NT listed above because those machines have proprietary indicator licences tied to the MC ID, which the company is no longer functional - reinstalling NT 8 will make the indicators non fnctional with no way to reinstall them.

          Or is there a way to update version of NT 8 without having to reinstall all indicators?


            Hello suraj,

            Thanks for your note.

            The support for Visual Studio 2022 was added in NinjaTrader version

            To use Visual Studio 2022 for debugging NinjaScripts, you must upgrade to the latest version of NinjaTrader using the steps mentioned in post # 4.

            Or, you could consider using an older version of Visual Studio. Note that for us to diagnose an error or issue, you would need to upgrade to the latest version of NinjaTrader. The error or issue was likely fixed in the updated version of the platform.

            Typically NinjaTrader can be updated without custom indicators being affected. This means indicators are not removed when an update occurs.

            However, if the indicator does not work with the latest version of NinjaTrader, you would need to reach out to the third-party developer who made the script if they are available or find an equivalent indicator that is updated to use with the latest NinjaTrader version.

            Please let me know if I may assist further.

            Brandon H.NinjaTrader Customer Service


            Latest Posts


            Topics Statistics Last Post
            Started by KingCandy, Today, 06:31 PM
            0 responses
            Last Post KingCandy  
            Started by xmess777, Today, 05:32 PM
            0 responses
            Last Post xmess777  
            Started by peterpanou, 09-07-2023, 04:33 PM
            16 responses
            Last Post max333
            by max333
            Started by HalTech, Today, 04:35 PM
            0 responses
            Last Post HalTech
            by HalTech
            Started by IndyScalper, Today, 03:59 PM
            0 responses
            Last Post IndyScalper