Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AssemblyAttributes files generated when editing indicator

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

    AssemblyAttributes files generated when editing indicator

    Editing custom indicator results in multiple .NET4.8 AssemblyAttributes.cs files. No idea why it seems to be doing this every time I edit the file and compile all is fine after depleting the files and compiling, just seems unnecessary.

    On NT 4.1.2

    #2
    Hello Conceptzx,

    Thanks for your notes.

    To clarify, do you mean you are using NinjaTrader Desktop version 8.1.2, not 4.1.2?

    Are you editing and compiling the file in the NinjaScript Editor window? Or, are you using Visual Studio?

    Please send us a screenshot of the behavior you are reporting and send us the exact steps and settings you are using to reproduce the behavior so we may investigate this matter further.
    • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
    • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
    I look forward to assisting further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Yes, the latest version editing and compiling in NinjaScript editor. This happened numerous times on Friday as I was editing an indicator. I'll try to replicate the issue when I start back on it.

      Comment


        #4
        yes, I know I can just delete them, but this is now every time I compile after changing anything.
        Attached Files

        Comment


          #5
          Hello Conceptzx,

          Thanks for your notes.

          The Solution was saved in Visual Studio or an attempt to compile was performed in VisualStudio and this causes Visual Studio to write an AssemblyAttribute.cs file.

          Delete Documents\NinjaTrader 8\bin\Custom\obj folder to resolve the error.

          Ensure you do not build or compile in Visual Studio to prevent this from occurring. Make sure to save the file in Visual Studio and only compile in the NinjaScript Editor window.

          As noted in the Visual Studio Debugging help guide: "You can also use Visual Studio as editor for your NinjaScript files - for that open the project as in step 2 above and then use Visual Studio for editing and once done save the file (don't run or build the solution then in Visual Studio), preferably with the NinjaScript editor opened still at the same time, so changes would be auto compiled in then."

          Visual Studio Debugging: https://ninjatrader.com/support/help...ing.htm​
          <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

          Comment


            #6
            I'm not sure how that could be, Visual Studio has not been open and I only ever save from VS, never compile. I understand how it creates errors like this but I'm not using VS.

            Comment


              #7
              Hello Conceptzx,

              Thanks for your notes.

              First, delete the Documents\NinjaTrader 8\bin\Custom\obj folder to resolve the error.

              Then, ensure Visual Studio is closed, modify a script using the NinjaScript Editor window, run a compile in the NinjaScript Editor window, and test to see if the behavior persists.

              If the behavior persists, send us the exact steps and settings you are using to reproduce the behavior so we may investigate this matter further.
              <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              58 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              39 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              19 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              21 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              51 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X