Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SharpDx dll hell

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

    SharpDx dll hell

    Hi!

    I want to use some advanced logic with SharpDX.Direct3D9 and SharpDX.Direct3D11.

    I copied corresponding dlls (SharpDx v.2.6.3 for .net framework 4.0) and added references to it.

    But I always get the next error
    The type 'SharpDx.comObject' is defined in an assembly that is not referenced. You must add a reference to assembly 'SharpDx, version=2.6.3.0, Culture=neutral, PublicKeyToken=null'. This tells me that I have to add some version numbers

    Similar problem
    I'm preparing a brand new ASP.NET MVC 5.1 solution. I'm adding in a bunch of NuGet packages and setting it up with Zurb Foundation etc. As part of that, I've added a reference to an in-house NuGet

    #2
    Hello fut_practic,

    This is outside of what is supported by the NinjaScript Support team, however this thread will remain open for any community members that would like to assist.

    You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello fut_practic,

      This is outside of what is supported by the NinjaScript Support team, however this thread will remain open for any community members that would like to assist.

      You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.
      Are you serious about that this problem is out of tech support of NT team?

      Please, close your eyes on the SharpDx. It doesn't matter in fact.

      The fact is that I can't compile ninja script because
      1) I use some 3rd party libraries, but it's ok.
      2) I use 2 different versions of parts of that library. And this is also ok. No any restrictions on this. The thing is that 2 components has confilct caused by compiler. Compiler can't understand what version to use.
      3) I have to point what version to use

      It's very simple.

      And I ask the advice from NT team how to do this by standard tools from NT software (code editor, come config files) or using Visual Studio

      Thanks

      Comment


        #4
        Hello fut_practic,

        This is correct, we would not be able to assist with using any 3rd party libraries and assembly dlls.

        I can help with what is documented in the NinjaTrader 8 help guide on SharpDx and I can direct you to a few examples that use documented code.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hello fut_practic,

          This is correct, we would not be able to assist with using any 3rd party libraries and assembly dlls.

          I can help with what is documented in the NinjaTrader 8 help guide on SharpDx and I can direct you to a few examples that use documented code.
          Thank you, I understood about documented items

          Comment


            #6
            Originally posted by NinjaTrader_ChelseaB View Post
            Hello fut_practic,

            This is correct, we would not be able to assist with using any 3rd party libraries and assembly dlls.

            I can help with what is documented in the NinjaTrader 8 help guide on SharpDx and I can direct you to a few examples that use documented code.
            But this is general question.
            I need only advice how to tell compiler that it has to use particular .NET assembly for my particular script
            And it doesn't matter is it standard .NET assembly or 3rd party assembly (because I may want to use some official .NET 3.5 code in the current .NET 4+)
            And also it doesn't matter is my script working or not

            Comment


              #7
              Hello fut_practic,

              NinjaTrader 8 was created targeting .NET 4.5. We would not be able to assist with targeting any other version of .NET or with any 3rd party assemblies.

              Once a script has a reference, it's called through the namespace and class path written within the code of that file.

              If the dll is using the same namespace as SharpDX in NinjaTrader 8, I would expect this to error and not work at all. You would need customize that project to use different namespaces which means you would probably need the open source project to modify and then re-compile.

              If the namespaces are different, I would expect that it should be accessible through that namespace once the assembly has a reference. I'm not aware of any further way of accessing a 3rd party assembly.
              Last edited by NinjaTrader_ChelseaB; 06-16-2019, 08:13 PM.
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by fut_practic View Post

                But this is general question.
                I need only advice how to tell compiler that it has to use particular .NET assembly for my particular script
                And it doesn't matter is it standard .NET assembly or 3rd party assembly (because I may want to use some official .NET 3.5 code in the current .NET 4+)
                And also it doesn't matter is my script working or not
                Did you add a "using" statement for the namespace(s) that contain your dlls?

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by pvincent, 06-23-2022, 12:53 PM
                14 responses
                238 views
                0 likes
                Last Post Nyman
                by Nyman
                 
                Started by TraderG23, 12-08-2023, 07:56 AM
                9 responses
                383 views
                1 like
                Last Post Gavini
                by Gavini
                 
                Started by oviejo, Today, 12:28 AM
                0 responses
                1 view
                0 likes
                Last Post oviejo
                by oviejo
                 
                Started by pechtri, 06-22-2023, 02:31 AM
                10 responses
                125 views
                0 likes
                Last Post Leeroy_Jenkins  
                Started by judysamnt7, 03-13-2023, 09:11 AM
                4 responses
                59 views
                0 likes
                Last Post DynamicTest  
                Working...
                X