Why are the DotNet commands not found after successful installation and setup? #1092
-
I have been trying to get Nuke to work for some time now, but am failing. I installed the GlobalTools as follows:
And then ran the setup in the solution directory:
So far, so good. When I run nuke, everything works. But now I want to fill the targets, e.g. the Restore Target with "DotNetRestore":
The issue is, Visual Studio underlines "DotNetRestore" red to me, with the message
Also, when I run "nuke", the following error message appears:
Can anyone tell me what I am doing wrong or what I am missing? I have tested it with a solution in which projects with .NET 6 are present, as well as with a completely new solution, console program with .NET Framework 4.8. OS I'm trying to run it: Windows 10 and Windows 11, if that matters |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use your IDE to search for |
Beta Was this translation helpful? Give feedback.
You can use your IDE to search for
DotNetRestore
. That should reveal that it's a method of theDotNetTasks
class.