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 DannyP96, 05-18-2026, 02:38 PM
      1 response
      83 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      143 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      83 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      256 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      334 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X