Skip to content

Commit 7d955f9

Browse files
authored
Re-add netframework targeting for Tools.proj PackageRef compat (#15273)
1 parent 07517ca commit 7d955f9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>$(NetToolCurrent)</TargetFramework>
4+
<!-- We include both netframework and netcore in the target frameworks because Arcade's Tools.proj
5+
'targets' via net472. -->
6+
<TargetFrameworks>$(NetToolCurrent);$(NetFrameworkToolCurrent)</TargetFrameworks>
57
<OutputType>Exe</OutputType>
68
<Nullable>enable</Nullable>
79
<IsPackable>true</IsPackable>
810
<Description>The MacOsPkg tool is used for unpacking and packing MacOS .pkg files and nested .app bundles.</Description>
911
<PackageTags>Arcade Build Tool MacOS Pkg</PackageTags>
1012
<DevelopmentDependency>false</DevelopmentDependency>
13+
</PropertyGroup>
14+
15+
<PropertyGroup Condition="'$(TargetFramework)' == '$(NetToolCurrent)'">
1116
<PackAsTool>true</PackAsTool>
1217
<ToolCommandName>dotnet-macos-pkg</ToolCommandName>
1318
</PropertyGroup>
14-
1519
</Project>

0 commit comments

Comments
 (0)