diff --git a/src/NmeaParser.Shared/NmeaFileDevice.cs b/src/NmeaParser.Shared/NmeaFileDevice.cs
index fe147a0..e9c41d1 100644
--- a/src/NmeaParser.Shared/NmeaFileDevice.cs
+++ b/src/NmeaParser.Shared/NmeaFileDevice.cs
@@ -61,6 +61,8 @@ namespace NmeaParser
m_filename = fileName;
}
+#if !NETFX_CORE
+
///
/// Gets the name of the nmea file this device is using.
///
@@ -68,6 +70,7 @@ namespace NmeaParser
{
get { return m_filename; }
}
+#endif
///
/// Gets the stream to perform buffer reads on.