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. References for solution??

References for solution??

Scheduled Pinned Locked Moved C#
questionhelp
5 Posts 2 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.
  • D Offline
    D Offline
    daavena
    wrote on last edited by
    #1

    Hi, I have a small problem with my solution/references. I have 2 projects in the solution. I use a folder(in the solution) where are some cs files. I need in one cs file use System.Managemet. I know that exist references folder in a project, but these file is in the solution. There isn't any references folder. How can I do that? Is it possible to have any reference inside a cs file? Thanks.

    P 1 Reply Last reply
    0
    • D daavena

      Hi, I have a small problem with my solution/references. I have 2 projects in the solution. I use a folder(in the solution) where are some cs files. I need in one cs file use System.Managemet. I know that exist references folder in a project, but these file is in the solution. There isn't any references folder. How can I do that? Is it possible to have any reference inside a cs file? Thanks.

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      I don't understand your question. You don't need explicitly add a reference to your project to use the classes in the System.Management namespace. They're available by default.

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      D 1 Reply Last reply
      0
      • P pmarfleet

        I don't understand your question. You don't need explicitly add a reference to your project to use the classes in the System.Management namespace. They're available by default.

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        D Offline
        D Offline
        daavena
        wrote on last edited by
        #3

        when i want to use System.Managemet, have to add reference. Without reference it doesn't work.

        P 1 Reply Last reply
        0
        • D daavena

          when i want to use System.Managemet, have to add reference. Without reference it doesn't work.

          P Offline
          P Offline
          pmarfleet
          wrote on last edited by
          #4

          I'm not sure why have to explicitly add a reference to System.Management to use it. But if it works then there's no problem, right?

          Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

          D 1 Reply Last reply
          0
          • P pmarfleet

            I'm not sure why have to explicitly add a reference to System.Management to use it. But if it works then there's no problem, right?

            Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

            D Offline
            D Offline
            daavena
            wrote on last edited by
            #5

            I am so stupid. I have been looking for asolution a couple of hours. I just added reference into both projects and it works. Thanks.

            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