Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to load NT Custom Proj File into Visual Studio

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

    How to load NT Custom Proj File into Visual Studio

    I'm trying to load NinjaTrader into VIsual Studio 2019 but its not working. I simply double clicked on NinjaTrader.Custom.csproj and it loads Visual Studio but there are zero files in VS Solution.
    Can someone help guide me to get NT loaded?

    Attached Files

    #2
    Hello Taddypole,

    Thanks for your post.

    To use Visual Studio with NT8 you would need to first open the NinjaScript Editor (New > NinjaScript Editor) and then click the Visual Studio button in the Editor toolbar. This opens the NinjaTrader.Custom project in Visual Studio. See the attached image highlighting the Visual Studio button in the NinjaScript Editor.

    Let us know if we may assist further.
    Attached Files
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Sorry Brandon,
      I wrote this in the NT7 area because I haven't moved to NT 8 yet. So need guidance for NT 7.

      Comment


        #4
        Hello Taddypole,

        Thank you for your note.

        For NinjaTrader 7, you would need to open the script you would like to edit (Tools > Edit NinjaScript), right-click in the script, and select 'Debug mode'. Then you would open Visual Studio, select Debug > Attach to process, select NinjaTrader from the process list, and press the "Attach" button. After attaching NinjaTrader from the process list, open the NinjaScript source file within Microsoft Visual Studio. After making changes to your script, save the script in Visual Studio, and click the compile button in the NinjaScript Editor window (NOT in Visual Studio).

        See this help guide documentation for detailed steps on editing/debugging a NinjaScript in Visual Studio: https://ninjatrader.com/support/help..._debugging.htm

        Let us know if we may assist further.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          Thank you Brandon,

          I have put the script in Debug mode and pulled up Visual Studio but I don't see the Debug menu item to attach the process????
          Attached Files

          Comment


            #6
            Hello Taddypole,

            Thank you for your note.

            Are you using Visual Studio or Visual Studio Code? Also, please provide a screenshot of the full version of Visual Studio that you are using. (This can be found by navigating to Help > About Microsoft Visual Studio.)

            Please note that the Express version of Visual Studio is not supported as stated in the NT7 help guide documentation linked in my previous post.

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

            Comment


              #7
              I'm using Visual Studio Community 2019.
              also attached is the process I'm trying and the message I get about not being able to open the file. It says please select a Project file, but the is what i'm selecting.... I don't understand.
              Attached Files

              Comment


                #8
                Hello Taddypole,

                Thank you for your note.

                When selecting the project file from Documents\NinjaTrader 7\bin\Custom, were you prompted with a window asking if you would like to upgrade the project?

                Do you have the .NET C# package installed in Visual Studio?

                Please attach the NinjaTrader.Custom.csproj file located in the Documents\NinjaTrader 7\bin\Custom folder so we may further investigate this.

                I look forward to your reply.
                Brandon H.NinjaTrader Customer Service

                Comment


                  #9
                  Thank you Brandon,

                  Installing the .NET C# package got me going again.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by max1ci6, Today, 02:02 AM
                  2 responses
                  11 views
                  0 likes
                  Last Post max1ci6
                  by max1ci6
                   
                  Started by junkone, Yesterday, 08:06 PM
                  3 responses
                  17 views
                  0 likes
                  Last Post NinjaTrader_EricB  
                  Started by fscabrera03, Yesterday, 07:27 PM
                  1 response
                  5 views
                  0 likes
                  Last Post tradecombine  
                  Started by Rad4633, Yesterday, 05:31 PM
                  0 responses
                  2 views
                  0 likes
                  Last Post Rad4633
                  by Rad4633
                   
                  Started by litamm89, Yesterday, 03:51 PM
                  0 responses
                  6 views
                  0 likes
                  Last Post litamm89  
                  Working...
                  X