Factor WinRT GetFolderPath into static accessible via reflection (dotnet/corefx#34873)
authorStephen Toub <stoub@microsoft.com>
Sat, 26 Jan 2019 11:26:35 +0000 (06:26 -0500)
committerGitHub <noreply@github.com>
Sat, 26 Jan 2019 11:26:35 +0000 (06:26 -0500)
Commit migrated from https://github.com/dotnet/corefx/commit/3fc7efd29ce1fbc57c95eb0b82267b2ad0f7e3ff

src/libraries/System.Runtime.Extensions/src/System.Runtime.Extensions.csproj
src/libraries/System.Runtime.WindowsRuntime/src/System.Runtime.WindowsRuntime.csproj

index 4923089..107a833 100644 (file)
@@ -82,6 +82,9 @@
     <Compile Include="$(CommonPath)\CoreLib\System\Environment.WinRT.cs">
       <Link>Common\CoreLib\System\Environment.WinRT.cs</Link>
     </Compile>
+    <Compile Include="$(CommonPath)\CoreLib\System\WinRTFolderPaths.cs">
+      <Link>Common\CoreLib\System\WinRTFolderPaths.cs</Link>
+    </Compile>
   </ItemGroup>
   <ItemGroup Condition="'$(TargetsWindows)' == 'true' and '$(TargetGroup)' != 'uapaot' and '$(TargetGroup)' != 'uap'">
     <Compile Include="$(CommonPath)\CoreLib\System\Environment.Win32.cs">
index 9bffd6a..439e805 100644 (file)
@@ -9,6 +9,7 @@
     <NoWarn>$(NoWarn);1698;0436</NoWarn>
     <ProjectGuid>{844A2A0B-4169-49C3-B367-AFDC4894E487}</ProjectGuid>
     <Configurations>netcoreapp-Windows_NT-Debug;netcoreapp-Windows_NT-Release;netstandard-Debug;netstandard-Release;netstandard1.0-Debug;netstandard1.0-Release;netstandard1.2-Debug;netstandard1.2-Release;uap-Windows_NT-Debug;uap-Windows_NT-Release;uapaot-Windows_NT-Debug;uapaot-Windows_NT-Release</Configurations>
+    <DefineConstants>$(DefineConstants);SYSTEM_RUNTIME_WINDOWSRUNTIME_ASSEMBLY</DefineConstants>
   </PropertyGroup>
   <PropertyGroup Condition="'$(TargetGroup)'=='netcoreapp' or '$(TargetGroup)'=='uap'">
     <DefineConstants>$(DefineConstants);netstandard;FEATURE_APPX</DefineConstants>
@@ -82,6 +83,9 @@
     <Compile Include="System\WindowsRuntimeSystemExtensions.CoreRT.cs" />
   </ItemGroup>
   <ItemGroup Condition="'$(TargetsNETCoreApp)'=='true' or '$(TargetsUAP)'=='true'">
+    <Compile Include="$(CommonPath)\CoreLib\System\WinRTFolderPaths.cs">
+      <Link>Common\System\WinRTFolderPaths.cs</Link>
+    </Compile>
     <Compile Include="$(CommonPath)\CoreLib\Interop\Windows\Kernel32\Interop.ResolveLocaleName.cs">
       <Link>Common\Interop\Windows\kernel32\Interop.ResolveLocaleName.cs</Link>
     </Compile>