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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    656 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    373 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X