diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/OptimizationData.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/OptimizationData.targets
index cd36e931fb0..821aa742048 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/OptimizationData.targets
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/OptimizationData.targets
@@ -9,10 +9,6 @@
EnableNgenOptimizationLogDetails Set to true to enable NGEN method logging output
ApplyNgenOptimization Set to 'partial' or 'full' in a project to embed partial/full NGEN optimization data to the built binary.
- Obsolete (https://github.com/dotnet/arcade/issues/2092):
- EnablePartialNgenOptimization Set to true to enable Partial NGEN optimization data embedding.
- ApplyPartialNgenOptimization Set to true in a project to apply Partial NGEN optimization data to the built binary.
-
Items:
OptimizeAssembly Set of assemblies to apply Partial NGEN optimization data to.
-->
@@ -24,12 +20,9 @@
$(IntermediateOutputPath)$(TargetFileName).pcbm
-
- true
-
- $(EnablePartialNgenOptimization)
+ true
$(UsingToolVisualStudioIbcTraining)
- partial
+
<_IbcMergeXmlOutputDir>$(ArtifactsTmpDir)ibcxml
@@ -107,10 +100,11 @@
<_IbcFileByAssemblyName Include="@(_IbcFile->'%(AssemblyFileName)')"
IbcFiles="%(_IbcFile.Identity)"
PreviousAssemblyPath="%(_IbcFile.PreviousAssemblyDir)\%(_IbcFile.AssemblyFileName)"
- PreviousAssemblyCopyPath="$(ArtifactsTmpDir)OptimizedAssemblies\$([System.Guid]::NewGuid())"
+ UniqueId="$([System.Guid]::NewGuid())"
+ PreviousAssemblyCopyPath="$(ArtifactsTmpDir)OptimizedAssemblies\%(_IbcFileByAssemblyName.UniqueId)"
OptimizeAssemblyPath="%(_IbcFile.OptimizeAssemblyPath)"
TargetFramework="%(_IbcFile.TargetFramework)"
- XmlOutputPath="$(_IbcMergeXmlOutputDir)\%(_IbcFile.AssemblyFileName).$([System.Guid]::NewGuid()).temp.ibc.xml" />
+ XmlOutputPath="$(_IbcMergeXmlOutputDir)\%(_IbcFile.AssemblyFileName).%(_IbcFileByAssemblyName.UniqueId).temp.ibc.xml" />
%(_AssemblyWithRawIbcData.OptimizeAssemblyPath)
%(_AssemblyWithRawIbcData.XmlOutputPath)
%(_AssemblyWithRawIbcData.TargetFramework)
+
+
+ %(_AssemblyWithRawIbcData.OptimizeAssemblyPath);%(_AssemblyWithRawIbcData.PreviousAssemblyCopyPath)
+ $(ArtifactsLogNgenDir)%(_AssemblyWithRawIbcData.UniqueId)\
<_IbcMergeInvocation>
@@ -173,14 +171,24 @@
DestinationFiles="%(_IbcMergeInvocation.CopyFilesDestination)"
Condition="'%(_IbcMergeInvocation.CopyFilesSource)' != ''" />
-
+
+
+
+
+
+
+
+
-
- true
-
- $(EnablePartialNgenOptimization)
+ true