Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

load resource (resx) file

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

    load resource (resx) file

    lets say, from Visual Studio, under AddOns folder we add a "New Item>Resource", and then in `myAddon.cs` we have:

    Code:
    string a = NinjaTrader.Custom.AddOns.WhateverMy.MyResources.x yz;
    Code:
    System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "NinjaTrader.Custom.AddOns.WhateverMy.MyResources.resources" was correctly embedded or linked into assembly "55a42b9e148e49d78397f96d2d0411db" at compile time, or that all the satellite assemblies required are loadable and fully signed.
    at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName) ..
    what is the reason? does not vanilla NinjaScript editor compiler include `resx` files? I wish not to include separate dll project or load separate dll with embeded-resources.

    #2
    Hello, thanks for writing in. This question goes outside the scope of support we can provide as none of this is documented in the NinjaScript library, but I have found this forum post that could help you:

    Comment


      #3
      Thank you NinjaTrader_ChrisL and NinjaTrader_Jesse , that answer helped me!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      59 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      27 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      17 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      24 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      24 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X