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. System.ServiceProcess.ServiceController.dll [SOLVED]

System.ServiceProcess.ServiceController.dll [SOLVED]

Scheduled Pinned Locked Moved C#
csharpquestiondotnetvisual-studio
4 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.
  • Richard Andrew x64R Offline
    Richard Andrew x64R Offline
    Richard Andrew x64
    wrote on last edited by
    #1

    Hi, I just upgraded a .NET Framework project to .NET 8.0 using the .NET Upgrade Assistant extension for Visual Studio from Microsoft. I added a reference in the Dependencies folder to System.ServiceProcess.ServiceController.dll in the "C:\Program Files\dotnet\sdk\8.0.101" disk folder. For some reason, it's unable to resolve types within that DLL (such as ServiceBase) and the reference in the Dependencies folder has a yellow triangle with an exclamation mark. Is the project fubared because it was in-place upgraded, or is there something else wrong? Why can't it resolve the types within that DLL, and why does the reference node have that yellow triangle icon? When I mouse over the icon, it doesn't display any tooltip to tell me what's wrong. SOLUTION: I added the file from the wrong folder. When I changed the reference to point to the same assembly in the "C:\Program Files\dotnet\sdk\8.0.101\runtimes\win\lib\net8.0\" folder, it resolved all the issues. Thanks for reading my post.

    The difficult we do right away... ...the impossible takes slightly longer.

    J 1 Reply Last reply
    0
    • Richard Andrew x64R Richard Andrew x64

      Hi, I just upgraded a .NET Framework project to .NET 8.0 using the .NET Upgrade Assistant extension for Visual Studio from Microsoft. I added a reference in the Dependencies folder to System.ServiceProcess.ServiceController.dll in the "C:\Program Files\dotnet\sdk\8.0.101" disk folder. For some reason, it's unable to resolve types within that DLL (such as ServiceBase) and the reference in the Dependencies folder has a yellow triangle with an exclamation mark. Is the project fubared because it was in-place upgraded, or is there something else wrong? Why can't it resolve the types within that DLL, and why does the reference node have that yellow triangle icon? When I mouse over the icon, it doesn't display any tooltip to tell me what's wrong. SOLUTION: I added the file from the wrong folder. When I changed the reference to point to the same assembly in the "C:\Program Files\dotnet\sdk\8.0.101\runtimes\win\lib\net8.0\" folder, it resolved all the issues. Thanks for reading my post.

      The difficult we do right away... ...the impossible takes slightly longer.

      J Offline
      J Offline
      jochance
      wrote on last edited by
      #2

      That will probably work, but I think you'll have a better time now and in the future if you add that as a nuget: NuGet Gallery | System.ServiceProcess.ServiceController 9.0.0-preview.1.24080.9[^]

      Richard Andrew x64R 1 Reply Last reply
      0
      • J jochance

        That will probably work, but I think you'll have a better time now and in the future if you add that as a nuget: NuGet Gallery | System.ServiceProcess.ServiceController 9.0.0-preview.1.24080.9[^]

        Richard Andrew x64R Offline
        Richard Andrew x64R Offline
        Richard Andrew x64
        wrote on last edited by
        #3

        Hey, thanks. I didn't know it's available as a nuget package.

        The difficult we do right away... ...the impossible takes slightly longer.

        J 1 Reply Last reply
        0
        • Richard Andrew x64R Richard Andrew x64

          Hey, thanks. I didn't know it's available as a nuget package.

          The difficult we do right away... ...the impossible takes slightly longer.

          J Offline
          J Offline
          jochance
          wrote on last edited by
          #4

          Many of what you'd probably think of as common to .NET dependencies are out there in various forms. Dependency chaining has changed a little bit though. Mostly for the better. For the most part, transients can now be consumed without a direct reference and very little effort. If you have a nuget that then has as a dependency and you are already including that original nuget package, you do not generally also need a direct package reference in there... dotnet build will just figure that all out. (Assuming packagereference, but don't do packages.config anymore, ever)

          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