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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      92 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      138 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      122 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      73 views
      0 likes
      Last Post PaulMohn  
      Working...
      X