@@ -42,41 +42,6 @@ Copyright (c) .NET Foundation. All rights reserved.
4242 <DotnetCliToolTargetFramework >netcoreapp2.2</DotnetCliToolTargetFramework >
4343 </PropertyGroup >
4444
45- <UsingTask TaskName =" AddPackageType" AssemblyFile =" $(MicrosoftNETBuildTasksAssembly)" />
46-
47- <Target Name =" SetDotnetToolPackageType"
48- Condition =" '$(PackAsTool)' == 'true' "
49- BeforeTargets =" GenerateNuspec" >
50-
51- <PropertyGroup >
52- <_ToolPackageType Condition =" '$(RuntimeIdentifier)' != '' And '$(ToolPackageRuntimeIdentifiers)' != ''" >DotnetToolRidPackage</_ToolPackageType >
53- <_ToolPackageType Condition =" '$(_ToolPackageType)' == ''" >DotnetTool</_ToolPackageType >
54- </PropertyGroup >
55-
56-
57- <!--
58- PackageType is semicolon-delimited, case-insensitive, with an optional version.
59-
60- DotnetTool should be added to the set of package types if the PackAsTool property is set to true.
61-
62- Examples:
63- PackageType = '' -> 'DotnetTool'
64- PackageType = 'MyCustomType' -> 'DotnetTool;MyCustomType'
65- PackageType = 'MyCustomType, 1.0' -> 'DotnetTool;MyCustomType, 1.0'
66- PackageType = 'dotnettool' -> 'dotnettool'
67- PackageType = 'DotnetTool, 1.0.0.0' -> 'DotnetTool, 1.0.0.0'
68- PackageType = 'DotnetTool , 1.0.0.0' -> 'DotnetTool , 1.0.0.0'
69- PackageType = 'MyDotnetTool' -> 'DotnetTool;MyDotnetTool'
70-
71- _PaddedPackageType is used to ensure that the PackageType is semicolon delimited and can be easily checked for an existing DotnetTool package type.
72- -->
73-
74- <AddPackageType CurrentPackageType =" $(PackageType)" PackageTypeToAdd =" $(_ToolPackageType)" >
75- <Output TaskParameter =" UpdatedPackageType" PropertyName =" PackageType" />
76- </AddPackageType >
77-
78- </Target >
79-
8045 <PropertyGroup Condition =" '$(EnablePreviewFeatures)' == 'true' And '$(IsNetCoreAppTargetingLatestTFM)' == 'true'" >
8146 <LangVersion >Preview</LangVersion >
8247 </PropertyGroup >
0 commit comments