Directory.EnumerateFiles error "System.IO.Directory' does not contain a definition for 'EnumerateFil

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi
Im trying to run the sample code from http://msdn.microsoft.com/en-us/library/dd383571(VS.90).aspx http://msdn.microsoft.com/en-us/library/dd383571(VS.90).aspx
Ive tried this on two different computers, both running Visual Studio 2008 Sp1. And both give the same build error:

Error<span style="white-space:pre 4<span style="white-space:pre
System.IO.Directory does not contain a definition for EnumerateFiles

Error<span style="white-space:pre 6<span style="white-space:pre
System.IO.File does not contain a definition for ReadLines
I am using System.IO. and System.Core.

Any ideas why I am getting this error?

Thanks
<br/>


<br/>



View the full article
 
Back
Top