@@ -9,7 +9,7 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
99Copyright (c) .NET Foundation. All rights reserved.
1010***********************************************************************************************
1111-->
12- <Project InitialTargets =" _SetPropertiesFromCapabilities;_SetBuildOutputFrameworkSpecific " TreatAsLocalProperty =" PackFolder" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
12+ <Project InitialTargets =" _SetPropertiesFromCapabilities;_SetPackFrameworkSpecific " TreatAsLocalProperty =" PackFolder" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
1313 <UsingTask TaskName =" NuGetizer.Tasks.AssignPackagePath" AssemblyFile =" NuGetizer.Tasks.dll" />
1414 <UsingTask TaskName =" NuGetizer.Tasks.WriteItemsToFile" AssemblyFile =" NuGetizer.Tasks.dll" />
1515
@@ -66,7 +66,7 @@ Copyright (c) .NET Foundation. All rights reserved.
6666 <PackageFile >
6767 <PackageId Condition =" '$(IsPackable)' == 'true'" >$(PackageId)</PackageId >
6868 <Platform Condition =" '%(PackageFile.Platform)' == ''" >$(Platform)</Platform >
69- <DefaultTargetFramework Condition =" '%(PackageFile.DefaultTargetFramework)' == '' and ('$(IsPackagingProject)' != 'true' or '$(BuildOutputFrameworkSpecific )' == 'true')" >$(PackTargetFramework)</DefaultTargetFramework >
69+ <DefaultTargetFramework Condition =" '%(PackageFile.DefaultTargetFramework)' == '' and ('$(IsPackagingProject)' != 'true' or '$(PackFrameworkSpecific )' == 'true')" >$(PackTargetFramework)</DefaultTargetFramework >
7070 </PackageFile >
7171 </ItemGroup >
7272
@@ -128,7 +128,7 @@ Copyright (c) .NET Foundation. All rights reserved.
128128 <PackFolder >Metadata</PackFolder >
129129 <PackageId >$(PackageId)</PackageId >
130130 <Platform >$(Platform)</Platform >
131- <DefaultTargetFramework Condition =" '$(IsPackagingProject)' != 'true' or '$(BuildOutputFrameworkSpecific )' == 'true'" >$(PackTargetFramework)</DefaultTargetFramework >
131+ <DefaultTargetFramework Condition =" '$(IsPackagingProject)' != 'true' or '$(PackFrameworkSpecific )' == 'true'" >$(PackTargetFramework)</DefaultTargetFramework >
132132 </PackageFile >
133133 </ItemGroup >
134134 </Target >
@@ -179,7 +179,7 @@ Copyright (c) .NET Foundation. All rights reserved.
179179 '%(_ReferencedPackageContent.PackFolder)' == 'Metadata'" >
180180 <!-- For consistency, annotate like the rest -->
181181 <PackageId Condition =" '$(IsPackable)' == 'true'" >$(PackageId)</PackageId >
182- <DefaultTargetFramework Condition =" '$(IsPackagingProject)' != 'true' or '$(BuildOutputFrameworkSpecific )' == 'true'" >$(PackTargetFramework)</DefaultTargetFramework >
182+ <DefaultTargetFramework Condition =" '$(IsPackagingProject)' != 'true' or '$(PackFrameworkSpecific )' == 'true'" >$(PackTargetFramework)</DefaultTargetFramework >
183183 <PackFolder >Dependency</PackFolder >
184184 </_ReferencedPackageDependency >
185185 <!-- Remove the referenced package actual contents if it provides a manifest, since it will be a dependency in that case. -->
@@ -198,7 +198,7 @@ Copyright (c) .NET Foundation. All rights reserved.
198198
199199 <!-- We don't retarget referenced content for packaging projects that aren't framework specific, and
200200 never retarget content that already has a PackageId. -->
201- <ItemGroup Condition =" '$(IsPackagingProject)' != 'true' or '$(BuildOutputFrameworkSpecific )' == 'true'" >
201+ <ItemGroup Condition =" '$(IsPackagingProject)' != 'true' or '$(PackFrameworkSpecific )' == 'true'" >
202202 <_ReferencedPackageContentWithOriginalValues Condition =" '%(_ReferencedPackageContentWithOriginalValues.PackageId)' == ''" >
203203 <!-- Assign current package id if appropriate -->
204204 <PackageId Condition =" '$(IsPackable)' == 'true'" >$(PackageId)</PackageId >
@@ -220,7 +220,7 @@ Copyright (c) .NET Foundation. All rights reserved.
220220 </ItemGroup >
221221
222222 <!-- Otherwise, assign target paths based on the original TFM -->
223- <ItemGroup Condition =" '$(IsPackagingProject)' == 'true' and '$(BuildOutputFrameworkSpecific )' != 'true'" >
223+ <ItemGroup Condition =" '$(IsPackagingProject)' == 'true' and '$(PackFrameworkSpecific )' != 'true'" >
224224 <_ReferencedPackageContentWithOriginalValues Condition =" '%(_ReferencedPackageContentWithOriginalValues.PackageId)' == ''" >
225225 <!-- Assign current package id if appropriate -->
226226 <PackageId Condition =" '$(IsPackable)' == 'true'" >$(PackageId)</PackageId >
@@ -277,8 +277,8 @@ Copyright (c) .NET Foundation. All rights reserved.
277277 <AdditionalProperties Condition =" '$(_PrivateAssets)' == 'all'" >IsPackable=false;%(_MSBuildProjectReferenceExistent.AdditionalProperties)</AdditionalProperties >
278278 <!-- If the project reference itself declares a PackFolder, use that instead of the calling project's -->
279279 <SetPackFolder Condition =" '%(PackFolder)' != ''" >PackFolder=%(PackFolder)</SetPackFolder >
280- <!-- Otherwise, set both PackFolder and BuildOutputFrameworkSpecific so it will match the caller's -->
281- <SetPackFolder Condition =" '%(PackFolder)' == '' and '$(_PrivateAssets)' == 'all' and '$(PackFolder)' != '' and '$(PackFolder)' != 'Ignore'" >PackFolder=$(PackFolder);BuildOutputFrameworkSpecific =$(BuildOutputFrameworkSpecific )</SetPackFolder >
280+ <!-- Otherwise, set both PackFolder and PackFrameworkSpecific so it will match the caller's -->
281+ <SetPackFolder Condition =" '%(PackFolder)' == '' and '$(_PrivateAssets)' == 'all' and '$(PackFolder)' != '' and '$(PackFolder)' != 'Ignore'" >PackFolder=$(PackFolder);PackFrameworkSpecific =$(PackFrameworkSpecific )</SetPackFolder >
282282 </_NuGetizedProjectReference >
283283 </ItemGroup >
284284
@@ -298,14 +298,14 @@ Copyright (c) .NET Foundation. All rights reserved.
298298 </PropertyGroup >
299299 </Target >
300300
301- <Target Name =" _SetBuildOutputFrameworkSpecific " Condition =" '$(BuildOutputFrameworkSpecific )' == ''" >
301+ <Target Name =" _SetPackFrameworkSpecific " Condition =" '$(PackFrameworkSpecific )' == ''" >
302302 <!-- Determine whether primary output is framework specific -->
303303 <ItemGroup >
304- <_BuildOutputFrameworkSpecific Include =" @(PackFolderKind -> '%(FrameworkSpecific)')" Condition =" '%(Identity)' == '$(PackFolder)'" />
304+ <_PackFrameworkSpecific Include =" @(PackFolderKind -> '%(FrameworkSpecific)')" Condition =" '%(Identity)' == '$(PackFolder)'" />
305305 </ItemGroup >
306306 <PropertyGroup >
307- <BuildOutputFrameworkSpecific >@(_BuildOutputFrameworkSpecific )</BuildOutputFrameworkSpecific >
308- <BuildOutputFrameworkSpecific Condition =" '$(BuildOutputFrameworkSpecific )' == ''" >false</BuildOutputFrameworkSpecific >
307+ <PackFrameworkSpecific >@(_PackFrameworkSpecific )</PackFrameworkSpecific >
308+ <PackFrameworkSpecific Condition =" '$(PackFrameworkSpecific )' == ''" >false</PackFrameworkSpecific >
309309 </PropertyGroup >
310310 </Target >
311311
0 commit comments