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 tentacle, Today, 08:49 PM
        0 responses
        4 views
        0 likes
        Last Post tentacle  
        Started by Amaria77, Today, 08:21 PM
        0 responses
        6 views
        0 likes
        Last Post Amaria77  
        Started by jleira, Today, 07:08 PM
        0 responses
        2 views
        0 likes
        Last Post jleira
        by jleira
         
        Started by varsha, Today, 06:33 PM
        0 responses
        20 views
        0 likes
        Last Post varsha
        by varsha
         
        Started by NtFan, Today, 04:12 PM
        1 response
        8 views
        0 likes
        Last Post NtFan
        by NtFan
         
        Working...
        X