Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. A reference to 'mscorlib' cannot be added

A reference to 'mscorlib' cannot be added

Scheduled Pinned Locked Moved C#
helpcsharptutorialannouncement
11 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sekannak
    wrote on last edited by
    #1

    Hi, I am working .net 3.5 version. I am developing windows application. I need to add reference the mscorlib dll from the microsoft reference , but i cannot able to do that instead of i got this error as follows, "A reference to 'mscorlib' could not be added' this component is automatically added by the project system and cannot be referenced directly". So how to resolve this problem.. Can u please explain me... Thanks & regards, kannak......

    kannak

    L M L S P 6 Replies Last reply
    0
    • S sekannak

      Hi, I am working .net 3.5 version. I am developing windows application. I need to add reference the mscorlib dll from the microsoft reference , but i cannot able to do that instead of i got this error as follows, "A reference to 'mscorlib' could not be added' this component is automatically added by the project system and cannot be referenced directly". So how to resolve this problem.. Can u please explain me... Thanks & regards, kannak......

      kannak

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      sekannak wrote:

      I need to add reference the mscorlib dll

      why is that?? I never felt a need to add it, as it is always present. It is the core of .NET (you could check with Reflector). :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      Getting an article published on CodeProject should be easier and faster for Bronze and Silver authors.


      1 Reply Last reply
      0
      • S sekannak

        Hi, I am working .net 3.5 version. I am developing windows application. I need to add reference the mscorlib dll from the microsoft reference , but i cannot able to do that instead of i got this error as follows, "A reference to 'mscorlib' could not be added' this component is automatically added by the project system and cannot be referenced directly". So how to resolve this problem.. Can u please explain me... Thanks & regards, kannak......

        kannak

        M Offline
        M Offline
        Morgs Morgan
        wrote on last edited by
        #3

        sekannak wrote:

        instead of i got this error as follows, "A reference to 'mscorlib' could not be added' this component is automatically added by the project system and cannot be referenced directly".

        Just like the error says, it's self explanatory. Besides, why do you want to reference it? tell me exactly what you want to do with thi dll, Morg

        1 Reply Last reply
        0
        • S sekannak

          Hi, I am working .net 3.5 version. I am developing windows application. I need to add reference the mscorlib dll from the microsoft reference , but i cannot able to do that instead of i got this error as follows, "A reference to 'mscorlib' could not be added' this component is automatically added by the project system and cannot be referenced directly". So how to resolve this problem.. Can u please explain me... Thanks & regards, kannak......

          kannak

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Well huh? If it is not present, that means you explicitly checked that one checkbox in the advanced build settings that says "Do not reference mscorlib.dll" - just uncheck that

          S L 2 Replies Last reply
          0
          • L Lost User

            Well huh? If it is not present, that means you explicitly checked that one checkbox in the advanced build settings that says "Do not reference mscorlib.dll" - just uncheck that

            S Offline
            S Offline
            sekannak
            wrote on last edited by
            #5

            Hi, I need to use password Encryption file, the file is below "unix_md5_crypt" I am not sure, for that i need to reference the mscorlib dll. can u explain me plz...

            kannak

            L 1 Reply Last reply
            0
            • S sekannak

              Hi, I am working .net 3.5 version. I am developing windows application. I need to add reference the mscorlib dll from the microsoft reference , but i cannot able to do that instead of i got this error as follows, "A reference to 'mscorlib' could not be added' this component is automatically added by the project system and cannot be referenced directly". So how to resolve this problem.. Can u please explain me... Thanks & regards, kannak......

              kannak

              S Offline
              S Offline
              sekannak
              wrote on last edited by
              #6

              Hi, I need to use password Encryption file, the file is below unix_md5_crypt Fot that i came to know, to include the the reference , am not sure. Can u please explain ...

              kannak

              D 1 Reply Last reply
              0
              • S sekannak

                Hi, I need to use password Encryption file, the file is below "unix_md5_crypt" I am not sure, for that i need to reference the mscorlib dll. can u explain me plz...

                kannak

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                That function is not provided by .NET. But even if it were, mscorlib.dll is referenced already unless you checked said checkbox. (and btw, it's not like I'd give you any help after you were so nice as to give me a 1-vote)

                1 Reply Last reply
                0
                • S sekannak

                  Hi, I am working .net 3.5 version. I am developing windows application. I need to add reference the mscorlib dll from the microsoft reference , but i cannot able to do that instead of i got this error as follows, "A reference to 'mscorlib' could not be added' this component is automatically added by the project system and cannot be referenced directly". So how to resolve this problem.. Can u please explain me... Thanks & regards, kannak......

                  kannak

                  L Offline
                  L Offline
                  Luc Pattyn
                  wrote on last edited by
                  #8

                  :zzz:

                  Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                  Getting an article published on CodeProject should be easier and faster for Bronze and Silver authors.


                  1 Reply Last reply
                  0
                  • S sekannak

                    Hi, I need to use password Encryption file, the file is below unix_md5_crypt Fot that i came to know, to include the the reference , am not sure. Can u please explain ...

                    kannak

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #9

                    You don't need to add a reference to mscorlib. All you do is import the System.Cryptography namespace and the classes will be available to you without having to specify the entire namespace path to it. DId you also realize that MD5 is considered to be broken by the entire industry? It's easily cracked now.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007, 2008
                    But no longer in 2009...

                    1 Reply Last reply
                    0
                    • L Lost User

                      Well huh? If it is not present, that means you explicitly checked that one checkbox in the advanced build settings that says "Do not reference mscorlib.dll" - just uncheck that

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      Ok I've had it - 2 downvotes without explanation on a completely legitimate post? No more help from me for at least a year.

                      1 Reply Last reply
                      0
                      • S sekannak

                        Hi, I am working .net 3.5 version. I am developing windows application. I need to add reference the mscorlib dll from the microsoft reference , but i cannot able to do that instead of i got this error as follows, "A reference to 'mscorlib' could not be added' this component is automatically added by the project system and cannot be referenced directly". So how to resolve this problem.. Can u please explain me... Thanks & regards, kannak......

                        kannak

                        P Offline
                        P Offline
                        PIEBALDconsult
                        wrote on last edited by
                        #11

                        sekannak wrote:

                        I need to add reference the mscorlib dll

                        No you don't. Core.dll, maybe, but not mscorlib dll.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups