11,570 questions
According to the documentation at system.io.file.readalllinesasync it is not available in the
.Net Framework. You should be able to use it successfully in .Net 6
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
On VS2019 in a C# program, I try to refer to System.IO.File.ReadAllLinesAsync and get the error:
'File' does not contain a definition for 'ReadAllLinesAsync'
I use .NET6 and Framework4.7.2
Do I need to install anything to get it?
According to the documentation at system.io.file.readalllinesasync it is not available in the
.Net Framework. You should be able to use it successfully in .Net 6