Skip to content

dotnet script Could not execute because the specified command or file was not found #738

Closed
@stealthAngel

Description

@stealthAngel

For some reason, my dotnet script does not work anymore.

What I probably did was trying to run dotnetscript from cmd

when I try to do it again in packagemanager console it does not work anymore. Maybe I have to clear the cache or something.

I tried making a test.csx

My error log:

Mode LastWriteTime Length Name


d----- 10/3/2023 10:53 PM BatFiles
d----- 9/10/2023 2:13 PM bin
d----- 9/30/2023 7:19 PM Generate
d----- 10/3/2023 10:53 PM obj
d----- 9/11/2023 5:33 PM Roles
-a---- 10/3/2023 10:53 PM 927 Zgenerate.csproj
-a---- 9/20/2023 10:36 PM 3092 DirectoryService.cs
-a---- 9/20/2023 10:36 PM 500 GenerateSettings.cs
-a---- 10/3/2023 10:56 PM 33 test.csx
-a---- 5/13/2023 6:36 PM 84 tgconfig.json

PM> dotnet script test.csx
dotnet : Could not execute because the specified command or file was not found.
At line:1 char:1

  • dotnet script test.csx
  •   + CategoryInfo          : NotSpecified: (Could not execu... was not found.:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

Possible reasons for this include:

  • You misspelled a built-in dotnet command.
  • You intended to execute a .NET program, but dotnet-script does not exist.
  • You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
    image

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy