<NativeBinary Include="$(BinDir)mscorrc.debug.dll" />
<NativeBinary Include="$(BinDir)mscorrc.dll" />
<NativeBinary Include="$(BinDir)sos.dll" />
- <NativeBinary Include="$(UniversalCRTSDKDir)Redist\ucrt\DLLs\$(BuildArch)\*.dll" Condition="'$(BuildType)'=='Release' AND '$(BuildArch)' != 'arm64'" />
+ <NativeBinary Include="$(BinDir)Redist\ucrt\DLLs\$(BuildArch)\*.dll" Condition="'$(BuildType)'=='Release' AND '$(BuildArch)' != 'arm64'" />
<CrossGenBinary Include="$(BinDir)System.Private.CoreLib.dll" />
<ArchitectureSpecificLibFile Include="$(BinDir)SOS.NETCore.dll" />
<ArchitectureSpecificToolFile Include="$(BinDir)crossgen.exe" />
DestinationFolder="$(BinDir)PDB" />
</Target>
+ <ItemGroup>
+ <UcrtFilesToCopy Include="$(UniversalCRTSDKDir)Redist\ucrt\DLLs\$(BuildArch)\*.dll" />
+ </ItemGroup>
+ <!-- Copy the UCRT files from the windows kit directory to the local directory.
+ The api-*xstate.dll binary needs to be signed. -->
+ <Target Name="CopyUcrtFiles" AfterTargets="Build">
+ <Copy Condition="'$(BuildType)'=='Release' AND '$(BuildArch)' != 'arm64'"
+ SourceFiles="@(UcrtFilesToCopy)"
+ DestinationFolder="$(BinDir)Redist\ucrt\DLLs\$(BuildArch)" />
+ </Target>
+
<PropertyGroup>
<RunEnforcePGO Condition="$(__EnforcePgo) == '1'">true</RunEnforcePGO>
<RunEnforcePGO Condition="$(__BuildArch) == 'arm' OR $(__BuildArch) == 'arm64'">false</RunEnforcePGO>
<WindowsNativeLocation Include="$(BinDir)*.dll" />
<WindowsNativeLocation Include="$(BinDir)*.exe" />
</ItemGroup>
+
+ <ItemGroup Condition="'$(BuildArch)' == 'x86'">
+ <!-- Sign api-ms-win-core-xstate-l2-1-0 binary as it is only catalog signed in the current SDK. -->
+ <WindowsNativeLocation Include="$(BinDir)Redist\ucrt\DLLs\$(BuildArch)\api-ms-win-core-xstate-l2-1-0.dll" />
+ </ItemGroup>
+
<!-- sign the cross targeted files as well -->
<ItemGroup Condition="'$(CrossTargetComponentFolder)' != ''">
<WindowsNativeLocation Include="$(BinDir)$(CrossTargetComponentFolder)/*.dll" />