-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix wiki documentation for Shell #26
Comments
i follow the wiki and await-ing is not working : var result = await $"dir";
WriteLine(result.ExitCode);
result.StdOut.ForEach(WriteLine); Resulting Script compilation failure! See diagnostics below.
So where i miss the point ? Thanks for your help. |
Same for the official doc in the readme.md : copy/paste and running code throw error. #r "nuget: Nake.Meta" // for Nake attribute
#r "nuget: Nake.Utility" // for all other class
using Nake;
using static Nake.Shell;
using static System.Console;
[Nake] void Default() {
Console.WriteLine("Default();");
Nake.Session.Exit("ok");
} |
Uh, somehow lost this issue. @bufferUnderrun I'll check that. But I swear |
I found the issue : Working #r "nuget: Nake.Meta" // for Nake attribute
#r "nuget: Nake.Utility" // for all other class
using Nake;
using static Nake.Shell;
using static System.Console;
[Nake] async Task Default() {
await $"dir";
Nake.Session.Exit("ok");
} Not working #r "nuget: Nake.Meta" // for Nake attribute
#r "nuget: Nake.Utility" // for all other class
using Nake;
using static Nake.Shell;
using static System.Console;
[Nake] async Task Default() {
var result = await $"dir";
Nake.Session.Exit("ok");
} Error
One last question : What is the difference between Thanks for you help |
@stratdev3 I'll check this and get back to you |
Shell.Cmd
Shell.Run
Tee
classawait
-ing stringsThe text was updated successfully, but these errors were encountered: