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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X