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

Problems with Visual Studio update

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

    Problems with Visual Studio update

    I've been using Visual Studio for Ninjatrader 8 development for years (version 2019). I was required to update to a newer 2019 edition. Since I was updating, I decided to upgrade to the VS 2022 version. I have uninstalled the 2019 version, and restarted my computer several times.

    Now, when I try to compile using the editor, I get the following error:
    NinjaScript File Error Code Line Column
    \NETFramework,Version=v4\5\AssemblyAttributes.cs Duplicate 'global::System.Runtime.Versioning.TargetFramework Attribute' attribute CS0579 4 12
    Additionally, when I try to push the button on the editor to pull up Visual Studio, it says that it failed to find an installation.

    Click image for larger version

Name:	failed to find.png
Views:	74
Size:	44.0 KB
ID:	1201279

    Any guidance would be appreciated. Thank you.
    Attached Files
    Last edited by mohawkTrader; 05-13-2022, 11:12 AM.

    #2
    Hello mohawkTrader,

    Thanks for your post.

    Currently, Visual Studio 2022 is not supported for use with NinjaTrader. The supported versions could be seen in the Help Guide documentation below. The most recent supported version is Visual Studio 2019.

    Visual Studio Debugging: https://ninjatrader.com/support/help..._debugging.htm

    That said, you may still try out using Visual Studio 2022 and share your findings with the community members on the forums.

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

    Comment


      #3
      I reverted to Visual Studio 2019; it seemed that NT would know if VS 2022 was open (said to close all instances), but if it was closed, then could not find it.

      I still had the same compilation error however, so I had to delete the bin and obj files out of the /Custom folder in order to get things recompiled.

      Hopefully I'm good to go now. Posting in case someone else runs into a similar issue.

      Comment


        #4
        Hang on here... According to this post/thread, 2022 is supported. It is working well for me.

        https://ninjatrader.com/support/foru...2-free-version

        Comment


          #5
          Hello mohawkTrader and StealthM93,

          Thanks for your note.

          That is correct. Visual Studio 2022 is now supported in the current release of NinjaTrader 8.0.26.0. This could be seen in the Release Notes linked below under to category 'NinjaScript Editor'.

          15119 Fixed NinjaScript Editor, Visual Studio Integration Editor could fail to find Visual Studio 2022 installation

          Release Notes: https://ninjatrader.com/support/help...8/8_0_26_0.htm

          To use Visual Studio 2022, you would need to ensure that you are updated to the latest release of NinjaTrader.

          The most recent release could be found on this page: https://ninjatrader.com/PlatformDirect

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

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ironwariortesto, Today, 02:38 AM
          0 responses
          17 views
          0 likes
          Last Post ironwariortesto  
          Started by ironwariortesto, Today, 02:36 AM
          0 responses
          15 views
          0 likes
          Last Post ironwariortesto  
          Started by Balage0922, Today, 01:25 AM
          0 responses
          25 views
          0 likes
          Last Post Balage0922  
          Started by DemetSemhara, Today, 12:58 AM
          0 responses
          29 views
          0 likes
          Last Post DemetSemhara  
          Started by adaisguy, 09-26-2022, 10:51 PM
          2 responses
          47 views
          0 likes
          Last Post adaisguy  
          Working...
          X