Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionHow to set up a Using..? Pin
glennPattonWork38-Feb-24 1:32
professionalglennPattonWork38-Feb-24 1:32 
AnswerRe: How to set up a Using..? Pin
Richard Andrew x648-Feb-24 1:38
professionalRichard Andrew x648-Feb-24 1:38 
GeneralRe: How to set up a Using..? Pin
glennPattonWork38-Feb-24 2:24
professionalglennPattonWork38-Feb-24 2:24 
GeneralRe: How to set up a Using..? Pin
Richard Andrew x648-Feb-24 2:33
professionalRichard Andrew x648-Feb-24 2:33 
GeneralRe: How to set up a Using..? Pin
glennPattonWork38-Feb-24 3:11
professionalglennPattonWork38-Feb-24 3:11 
AnswerRe: How to set up a Using..? Pin
Richard Deeming8-Feb-24 2:51
mveRichard Deeming8-Feb-24 2:51 
GeneralRe: How to set up a Using..? Pin
glennPattonWork38-Feb-24 3:10
professionalglennPattonWork38-Feb-24 3:10 
QuestionSystem.ServiceProcess.ServiceController.dll [SOLVED] Pin
Richard Andrew x643-Feb-24 2:38
professionalRichard Andrew x643-Feb-24 2:38 
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.


modified 3-Feb-24 8:45am.

AnswerRe: System.ServiceProcess.ServiceController.dll [SOLVED] Pin
jochance13-Feb-24 9:37
jochance13-Feb-24 9:37 
GeneralRe: System.ServiceProcess.ServiceController.dll [SOLVED] Pin
Richard Andrew x6413-Feb-24 12:16
professionalRichard Andrew x6413-Feb-24 12:16 
GeneralRe: System.ServiceProcess.ServiceController.dll [SOLVED] Pin
jochance13-Feb-24 12:46
jochance13-Feb-24 12:46 
Questionwhy cant I run powershell script from current directory Pin
Sherzaad132913251-Feb-24 22:04
Sherzaad132913251-Feb-24 22:04 
AnswerRe: why cant I run powershell script from current directory Pin
Richard Deeming1-Feb-24 22:23
mveRichard Deeming1-Feb-24 22:23 
GeneralRe: why cant I run powershell script from current directory Pin
Sherzaad132913252-Feb-24 1:39
Sherzaad132913252-Feb-24 1:39 
AnswerRe: why cant I run powershell script from current directory Pin
jschell2-Feb-24 6:00
jschell2-Feb-24 6:00 
AnswerRe: why cant I run powershell script from current directory Pin
Sherzaad132913252-Feb-24 11:44
Sherzaad132913252-Feb-24 11:44 
GeneralRe: why cant I run powershell script from current directory Pin
Dave Kreskowiak5-Feb-24 7:05
mveDave Kreskowiak5-Feb-24 7:05 
GeneralRe: why cant I run powershell script from current directory Pin
trønderen7-Feb-24 4:49
trønderen7-Feb-24 4:49 
GeneralRe: why cant I run powershell script from current directory Pin
Dave Kreskowiak7-Feb-24 5:58
mveDave Kreskowiak7-Feb-24 5:58 
GeneralRe: why cant I run powershell script from current directory Pin
trønderen7-Feb-24 17:18
trønderen7-Feb-24 17:18 
GeneralRe: why cant I run powershell script from current directory Pin
Dave Kreskowiak7-Feb-24 19:15
mveDave Kreskowiak7-Feb-24 19:15 
GeneralRe: why cant I run powershell script from current directory Pin
Richard MacCutchan7-Feb-24 21:35
mveRichard MacCutchan7-Feb-24 21:35 
GeneralRe: why cant I run powershell script from current directory Pin
trønderen8-Feb-24 6:21
trønderen8-Feb-24 6:21 
GeneralRe: why cant I run powershell script from current directory Pin
jschell7-Feb-24 5:31
jschell7-Feb-24 5:31 
QuestionShould 0.5 round up or down? Pin
Gerry Schmitz26-Jan-24 8:33
mveGerry Schmitz26-Jan-24 8:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.