CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 4 of 4

Thread: Assembly version problem

  1. #1
    Join Date
    Sep 2010

    Assembly version problem

    Hey guys,

    I just stumbled onto a problem: I get 5 (the same) errors about the assembly version of the project which I am working on. I'm an intern at the company where I currently work for, and a few previous interns worked on the same project. As it wasn't finished, they asked me to continue with it. I had a look through the source code and I found these assembly errors. I'm not exactly sure what causes it and how to solve it. Here's the code of the assembly part:

    // <auto-generated>
    //     This code was generated by a tool.
    //     Runtime Version:2.0.50727.3603
    //     Changes to this file may cause incorrect behavior and will be lost if
    //     the code is regenerated.
    // </auto-generated>
    using System;
    using System.Reflection;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;
    [assembly: AssemblyTitle("OneStep Printer Application")]
    [assembly: AssemblyCompany("DHL")]
    [assembly: AssemblyProduct("OneStep Printer Software")]
    [assembly: AssemblyCopyright("Copyright  2009")]
    [assembly: ComVisible(false)]
    [assembly: AssemblyVersion("0.1.0.-1")]
    [assembly: AssemblyFileVersion("0.1.0.-1")]
    I hope this piece of code has helped a bit. The error is on the AssemblyVersion line, as I highlighted in the code. This is the exact error:
    Error	3	Error emitting 'System.Reflection.AssemblyVersionAttribute' attribute -- 'The version specified '0.1.0.-1' is invalid'
    If I wasn't clear about something or you need some more information about this, please tell me.

    Thanks in advance.

    Kind regards,

  2. #2
    Join Date
    Oct 2004

    Re: Assembly version problem

    Try replacing that -1 with a non-negative number

  3. #3
    Join Date
    May 2009
    Bengaluru, India

    Re: Assembly version problem

    i dont think version will a negative number "-1"..

  4. #4
    Join Date
    Sep 2010

    Re: Assembly version problem

    I removed the '-', and the error disappeared when I debugged the program. When I closed the application the '-' came back, but didn't cause any error.. quite strange to be honest. At the moment I have 7 warnings
    Warning	1	LocalPath is not a working subversion copy.
    . Though the application still runs.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)