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 CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    26 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    26 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    18 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    29 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X