Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Visual Studio compiler error related to NET framework

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

    Visual Studio compiler error related to NET framework

    I installed the latest version of NT8. I have all updates of Windows 10 installed. I have also the latest version of Visual Studio. When I compile from the Ninjascript editor it works fine. When I use VS and want to build in VS, I am getting the following error in the NinjaScript Editor:

    \NETFramework,version=v4\6\1AssemblyAttributes.cs Error Duplicate'global::System.Runtime.Versioning.Target FramwrokAttribute' attribute CODE CS0579


    The error code is not helpful to me

    Any help is appreciated,

    Thanks

    Ruurd




    #2
    Hello Rugosoft,

    Thank you for your note.

    The error looks like you may have an AssemblyAttributes.cs file in the Custom folder which is conflicting with a .NET file. This may occur when building something in Visual Studio

    Check in Documents > NinjaTrader 8 > bin > Custom >obj > Debug for a file named AssemblyAttributes.cs. If you find this file, drag it out of the folder to the desktop temporarily and then compile in the NinjaScript editor.

    This can occur when trying to run the project from Visual Studio or building from Visual Studio instead of saving and running the compile in the NinjaScript Editor. When using Visual Studio if you do so there's a generated folder that gets created and that's what's causing the error. You should always compile from the Editor and not build the project in VS.

    Removing this file should allow you to compile.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Thank You Kat W. This solved the problem.!

      Comment


        #4
        Brilliant!! Thank you Rugosoft for raising the question and NinjaTrader_Kate for the solution.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by JakeOfSpades, Today, 08:55 AM
        1 response
        6 views
        0 likes
        Last Post JakeOfSpades  
        Started by IndieTrader, Today, 05:29 AM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by ballboy11, Today, 08:09 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by kempotrader, 05-03-2019, 10:52 AM
        10 responses
        92 views
        0 likes
        Last Post kempotrader  
        Started by waldoalvarez, Today, 07:53 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Working...
        X