Announcement

Collapse

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

Collapse

Visual Studio not found by Ninja Trader

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Visual Studio not found by Ninja Trader

    I have NinjaTrader 8 and Visual Studio 2017 installed on windows. In the NinjaScriptEditor I

    1) Enable debugging
    2) Compile the script
    3) Select "Open project in visual studio" button

    and I get a dialog box that says "Failed to find Visual Studio installation".

    However, if I have Visual Studio already open on the desktop, I get a dialog box with the message "Please shut down all running instances of Visual Studio", which tells me NinjaTrader is aware of visual studio.

    Is there a configuration setting for the visual studio location? Or is this possibly a Visual Studio version issue?

    Doug

    #2
    Hello dougservice,

    Thank you for the post.

    This is likely due to the visual studio installation, can you tell me when you installed VS was this the only version installed on this PC and what specifically did you select when installing VS? In the installation tool, you can select many different programming languages and options, for ninja trader you would need the C#/ .net desktop development pack. Did you select the packages you are presented with or do a selective install?

    Alternatively are you able to directly open the project successfully in visual studio? You can double-click the project file in the folder: Documents\NinjaTrader 8\bin\Custom\NinjaTrader.Custom.csproj. If prompted, select Visual Studio 2017 or Visual Studio Version Selector.

    I look forward to being of further assistance.

    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Jesse,

      A couple of days ago I set up a new machine for running NinjaTrader. I installed Windows, NinjaTrader 8, and then Visual Studio 2017.

      When I go directly to the project file in the file manager, as you suggested, and double-click, the project opens in Visual Studio 2017, I can attach to the NinjaTrader process and set breakpoints that get hit on the strategy running in a chart window.

      You made me realize this might be a path variable problem, so I typed devenv.exe in a powershell window and it could not find Visual Studio. I then added the directory for devenv.exe to the path and I was able to run Visual Studio 2017 from powershell after I restared it. I restarted NinjaTrader, but it still cannot find Visual Studio.

      Maybe NinjaTrader has to be installed after Visual Studio? Or is Ninja Trader looking for the version selector?

      Comment


        #4
        Hello dougservice,

        Yes, this still sounds like the VS install. When you installed VS, did you select the .net development package in total or did you pick and choose the features that you wanted? I have only tested VS by using the total install options if you are selectively choosing components that may be why it's not being found. Did you also install VS to the standard location it suggested?

        The platform should not need to be installed before visual studio it should be able to pick it up after it is installed. You may try reinstalling the platform to see if that helps but this still sounds like it is just not picking up the specific version you have installed. Which specific version of VS did you install? Is this community or one of the other editions?

        typing devenv.exe in a command prompt is also not the normal way to open VS so I wouldnt expect that to work anyway, you would generally need to supply the full path to the exe if you start it from a command prompt. Adding the bin folder to the path would not help with NinjaTrader specifically.


        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Hello Jesse,

          Visual Studio now launches properly from the strategy editor. Under the .NET section of the Visual Studio installer, I had left the F# language and .NET Core 1.0 - 1.1 options unchecked. I reran the Visual Studio installer, added those components, and now Visual Studio launched properly from the strategy editor.

          Thanks

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by algospoke, Yesterday, 06:40 PM
          2 responses
          21 views
          0 likes
          Last Post algospoke  
          Started by ghoul, Today, 06:02 PM
          3 responses
          14 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          45 views
          0 likes
          Last Post jeronymite  
          Started by Barry Milan, Yesterday, 10:35 PM
          7 responses
          21 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by AttiM, 02-14-2024, 05:20 PM
          10 responses
          181 views
          0 likes
          Last Post jeronymite  
          Working...
          X