diff --git a/eng/packaging.targets b/eng/packaging.targets index 67405cb51aeff..8534904e05d2d 100644 --- a/eng/packaging.targets +++ b/eng/packaging.targets @@ -62,11 +62,6 @@ $(MajorVersion).$(MinorVersion).$(ServicingVersion) $(Version)-$(VersionSuffix) - <_IsWindowsDesktopApp Condition="$(WindowsDesktopCoreAppLibrary.Contains('$(AssemblyName);'))">true - <_IsAspNetCoreApp Condition="$(AspNetCoreAppLibrary.Contains('$(AssemblyName);'))">true - <_AssemblyInTargetingPack Condition="('$(IsNETCoreAppSrc)' == 'true' or '$(IsNetCoreAppRef)' == 'true' or '$(_IsAspNetCoreApp)' == 'true' or '$(_IsWindowsDesktopApp)' == 'true') and '$(TargetFrameworkIdentifier)' != '.NETFramework'">true - - $(MajorVersion).$(MinorVersion).0.$(ServicingVersion) diff --git a/src/libraries/Directory.Build.targets b/src/libraries/Directory.Build.targets index 5c7d860d432ac..b219e7cf41a91 100644 --- a/src/libraries/Directory.Build.targets +++ b/src/libraries/Directory.Build.targets @@ -70,6 +70,16 @@ '$(GeneratePlatformNotSupportedAssemblyMessage)' == ''">true + + + <_IsWindowsDesktopApp Condition="$(WindowsDesktopCoreAppLibrary.Contains('$(AssemblyName);'))">true + <_IsAspNetCoreApp Condition="$(AspNetCoreAppLibrary.Contains('$(AssemblyName);'))">true + <_AssemblyInTargetingPack Condition="('$(IsNETCoreAppSrc)' == 'true' or '$(IsNetCoreAppRef)' == 'true' or '$(_IsAspNetCoreApp)' == 'true' or '$(_IsWindowsDesktopApp)' == 'true') and '$(TargetFrameworkIdentifier)' != '.NETFramework'">true + $(MajorVersion).$(MinorVersion).0.$(ServicingVersion) + +