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