You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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.
then
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)
The text was updated successfully, but these errors were encountered: