When try to build my Unity 3D project on Windows Store Apps, this error occurs
System.IO.Stream' does not contain a definition for 'Close' and no extension method 'Close' accepting a first argument of type 'System.IO.Stream' could be found
How can I use Streams in Windows 8?
You get that error because there is no support for Stream.Close on Windows Store Apps.
As is stated on the .Net for Windows Store apps overview page
You will have to replace that with a
Dispose()
or by using ausing
statement.