Description
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: