You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix _AssemblyInTargetingPack value during servicing (#95278)
* Fix _AssemblyInTargetingPack value during servicing
The _AssemblyInTargetingPack property in packaging.targets depends on
`IsNETCoreAppSrc` or `IsNetCoreAppRef` which aren't defined until
src/libraries/Directory.Build.targets is imported.
As packaging.targets is imported first, there's a property sequencing
issue.
The fix is to move the ´_AssemblyInTargetingPack` logic out of
packaging.targets as that's code that is specific to targeting pack
libraries which reside under src/libraries.
This fixes the issue that appeared in the release/8.0 branch for main.
* Update Directory.Build.targets
* Update Directory.Build.targets
<_AssemblyInTargetingPackCondition="('$(IsNETCoreAppSrc)' == 'true' or '$(IsNetCoreAppRef)' == 'true' or '$(_IsAspNetCoreApp)' == 'true' or '$(_IsWindowsDesktopApp)' == 'true') and '$(TargetFrameworkIdentifier)' != '.NETFramework'">true</_AssemblyInTargetingPack>
68
-
<!-- The assembly version gets updated when the assembly isn't part of a targeting pack. -->
<_AssemblyInTargetingPackCondition="('$(IsNETCoreAppSrc)' == 'true' or '$(IsNetCoreAppRef)' == 'true' or '$(_IsAspNetCoreApp)' == 'true' or '$(_IsWindowsDesktopApp)' == 'true') and '$(TargetFrameworkIdentifier)' != '.NETFramework'">true</_AssemblyInTargetingPack>
0 commit comments