-
Notifications
You must be signed in to change notification settings - Fork 177
Closed
Description
I've written a dotnet script which I'm using as part of a unix pipe chain.
A problem I'm finding is that if I leave some non-breaking code in the csx file, that throws a warning, e.g.
public async Task Foo()
{
//no code in this method currently uses await, but I can't face refactoring all the
//task code out of existence as I'm probably going to use some await code in a minute
}
then
warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
will be written to StdOut, messing up my unix piping.
is there a way to suppress these warnings, or have them written to StdErr (which is ignored when piping)
Metadata
Metadata
Assignees
Labels
No labels