Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The type or namespace name 'UniversalBase' could not be found

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

    The type or namespace name 'UniversalBase' could not be found

    @UniversalOptimizer.cs The type or namespace name 'UniversalBase' could not be found (are you missing a using directive or an assembly reference?) CS0246 1041 34
    I get this strange error, how can I fix this? I do not understand what could be causing it. I haven't modified @UniversalOptimizer.cs

    It is preventing me from compiling my other sources.(this is the only error)

    it refers to this line

    public sealed class Universal : UniversalBase

    #2
    In this particular case, the 'UnversalOptimizer.cs' file needs to be removed. Follow these steps:
    • Open Windows File Explorer (hotkey = Windows key + E)
    • Navigate to Documents > NinjaTrader 8 > bin > Custom > Optimizers folder
    • Delete '@UniversalOptimizer.cs'
    • In NinjaTrader, recompile

    Comment


      #3
      ok, will do - so this is a useless file?


      I don't need to optimize anything if that matters

      Comment


        #4
        It was inadvertently included in the 8.0.17.0 installer for a short time. In the future, it may be included in the installation without causing compile errors.

        Comment


          #5
          where can I download older versions of NT8? whatever was current around Christmas? or early january

          Comment


            #6
            We do not recommend using an older version of NinjaTrader. The current version is 8.0.17.2 and if any issues occur with this version, we should troubleshoot that.

            You can find the previously supported version on our website. Enter your email on the main page, select 'NinjaTrader 8' from the drop down list, then look for the 'prior version' link.

            Comment


              #7
              is it safe to delete @PathTool.cs it also has this problem and @DrawingToolTile.cs
              Last edited by NinjaCustomer; 02-22-2019, 12:21 PM.

              Comment


                #8
                Please include a screenshot of the actual compile errors from the NinjaScript Editor

                Comment


                  #9
                  they are gone now since I deleted those 3 files. They are the only 3 files that gave problems.

                  Comment


                    #10
                    The Namespace "UniversalBase" came back when I upgraded to the latest version of NinjaTrader Version 8.0.17.2 64-bit this week.
                    I removed it so I could compile after searching for the problem and finding this thread.
                    Is that still the recommend fix?

                    Thanks

                    Comment


                      #11
                      Yes, that should be fine. There was a brief time during which the public installer included some files still in development, so anyone experiencing this issue must have downloaded 8.0.17.0 during that time. Removal of the files is the solutions.

                      Comment


                        #12
                        Thanks PatrickG

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by DJ888, 04-16-2024, 06:09 PM
                        6 responses
                        18 views
                        0 likes
                        Last Post DJ888
                        by DJ888
                         
                        Started by Jon17, Today, 04:33 PM
                        0 responses
                        1 view
                        0 likes
                        Last Post Jon17
                        by Jon17
                         
                        Started by Javierw.ok, Today, 04:12 PM
                        0 responses
                        6 views
                        0 likes
                        Last Post Javierw.ok  
                        Started by timmbbo, Today, 08:59 AM
                        2 responses
                        10 views
                        0 likes
                        Last Post bltdavid  
                        Started by alifarahani, Today, 09:40 AM
                        6 responses
                        41 views
                        0 likes
                        Last Post alifarahani  
                        Working...
                        X