diff --git a/src/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/System.Private.CoreLib/System.Private.CoreLib.csproj
index 17fa5d72b85b..f471ad6ac09a 100644
--- a/src/System.Private.CoreLib/System.Private.CoreLib.csproj
+++ b/src/System.Private.CoreLib/System.Private.CoreLib.csproj
@@ -130,7 +130,6 @@
-
diff --git a/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems b/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
index 0c40e26e9c66..27d43b76f8d2 100644
--- a/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
+++ b/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
@@ -111,6 +111,7 @@
+
diff --git a/src/System.Private.CoreLib/src/System/ByReference.cs b/src/System.Private.CoreLib/shared/System/ByReference.cs
similarity index 79%
rename from src/System.Private.CoreLib/src/System/ByReference.cs
rename to src/System.Private.CoreLib/shared/System/ByReference.cs
index 298b4bb07e3e..492979a2d75b 100644
--- a/src/System.Private.CoreLib/src/System/ByReference.cs
+++ b/src/System.Private.CoreLib/shared/System/ByReference.cs
@@ -13,24 +13,29 @@ namespace System
[NonVersionable]
internal readonly ref struct ByReference
{
- private readonly IntPtr _value;
+ // CS0169: The private field '{blah}' is never used
+#pragma warning disable 169
+ private readonly IntPtr _value;
+#pragma warning restore
+ [Intrinsic]
public ByReference(ref T value)
{
// Implemented as a JIT intrinsic - This default implementation is for
// completeness and to provide a concrete error if called via reflection
// or if intrinsic is missed.
- throw new System.PlatformNotSupportedException();
+ throw new PlatformNotSupportedException();
}
public ref T Value
{
+ [Intrinsic]
get
{
// Implemented as a JIT intrinsic - This default implementation is for
// completeness and to provide a concrete error if called via reflection
// or if the intrinsic is missed.
- throw new System.PlatformNotSupportedException();
+ throw new PlatformNotSupportedException();
}
}
}