Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to reference a system dll?

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

    How to reference a system dll?

    I use a lot of Text-to-speech in my indicators. In NT7 I was able to add this line:
    <string>System.Speech.dll</string> in config.xml where other dlls were referenced.
    When I do that in NT8, the NinjaScript editor gives me the following error:
    Metadata file 'System.Speech.dll' could not be found
    CS0006

    What is the proper way for me to do this in NT8?

    Thanks,
    Dale

    NT 8.0.0.3

    #2
    Hello Dale,

    Thanks for your post.

    You will need to add a reference to the location of the DLL. Right mouse click in an indicator and select references, click on "add" then navigate to:

    C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.Speech. dll and click the OK button.

    In your code, make sure to add: using System.Speech.Synthesis;

    Please let me know if I can be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, Today, 06:46 AM
    0 responses
    9 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, Yesterday, 05:21 PM
    0 responses
    14 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    15 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    82 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    48 views
    0 likes
    Last Post PaulMohn  
    Working...
    X