FileStream' does not contain a definition for 'Close'

Hey…
I was trying to build my project on Windows Store Universal 10 platform but I’m getting following error:

‘FileStream’ does not contain a definition for ‘Close’ and no extension method ‘Close’ accepting a first argument of type ‘FileStream’ could be found (are you missing a using directive or an assembly reference?)

Any help here would really be appreciated.

SOLVED!
You just need to change .Close() to .Dispose()