Skip to content

Commit f0d6d0e

Browse files
cdmihaijeffkl
authored andcommitted
Stop building legacy nuget packages (#1466)
The new way to build the packages is via the script: build\NuGetPackages\CreateNuGetPackages.proj Closes #1099
1 parent 0de5319 commit f0d6d0e

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

src/dirs.proj

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -31,51 +31,4 @@
3131
<Import Project="$(ToolsDir)BuildVersion.targets" Condition="Exists('$(ToolsDir)BuildVersion.targets')" />
3232
<Import Project="$(ToolsDir)versioning.targets" Condition="Exists('$(ToolsDir)versioning.targets')" />
3333

34-
<PropertyGroup>
35-
<SkipVersionGeneration>true</SkipVersionGeneration>
36-
<BaseVersion>0.1.0-preview</BaseVersion>
37-
<BuildNumberMajor>$(RevisionNumber)</BuildNumberMajor>
38-
<BuildNumberMinor>$([System.DateTime]::Now.ToString(`yMMdd`))</BuildNumberMinor>
39-
40-
<!-- The version for msbuild nuget packages. Used by packages.targets:AddNuGetPackageVersionMetadataToNuspecs -->
41-
<PackageVersion>$(BaseVersion)-$(BuildNumberMajor)-$(BuildNumberMinor)</PackageVersion>
42-
43-
<!-- Turn off the automated package generation in packages.targets:AddNuGetPackageVersionMetadataToNuspecs and use the above PackageVersion-->
44-
<DoNotGeneratePackageVersion>true</DoNotGeneratePackageVersion>
45-
</PropertyGroup>
46-
47-
<ItemGroup>
48-
<!-- Used by packages.targets:BuildPackages to inject properties into the nuspec-->
49-
<NuspecProperties Include="version=$(PackageVersion)"/>
50-
<NuspecProperties Include="targetmsbuildtoolsversion=$(TargetMSBuildToolsVersion)"/>
51-
</ItemGroup>
52-
53-
<Import Project="$(ToolsDir)packages.targets" Condition="Exists('$(ToolsDir)packages.targets') and '$(ImportGetNuGetPackageVersions)' != 'false'" />
54-
55-
<PropertyGroup Condition="Exists('$(ToolsDir)packages.targets') and '$(ImportGetNuGetPackageVersions)' != 'false'">
56-
<TraversalBuildDependsOn>
57-
$(TraversalBuildDependsOn);
58-
BuildPackages;
59-
</TraversalBuildDependsOn>
60-
</PropertyGroup>
61-
62-
<!-- Workaround to remove items from PackagesNuSpecFiles (defined in packages.targets). This ItemGroup
63-
is defined with a wildcard Include and no way to override. -->
64-
<Target Name="RemovePackages" BeforeTargets="BuildPackages">
65-
<ItemGroup Condition="$(NetCoreBuild) == 'true'">
66-
<!-- Remove packages that don't support netstandard1.3 (NetCore) -->
67-
<PackagesNuSpecFiles Remove="$(SourceDir)nuget\Microsoft.Build.Conversion.Core.nuspec" />
68-
<PackagesNuSpecFiles Remove="$(SourceDir)nuget\Microsoft.Build.Engine.nuspec" />
69-
</ItemGroup>
70-
<ItemGroup Condition="$(FullFrameworkBuild) == 'true'">
71-
<!-- Remove packages that don't support net45 (FullFramework) -->
72-
<PackagesNuSpecFiles Remove="$(SourceDir)nuget\Microsoft.Build.Framework.nuspec" />
73-
<PackagesNuSpecFiles Remove="$(SourceDir)nuget\Microsoft.Build.nuspec" />
74-
<PackagesNuSpecFiles Remove="$(SourceDir)nuget\Microsoft.Build.Targets.nuspec" />
75-
<PackagesNuSpecFiles Remove="$(SourceDir)nuget\Microsoft.Build.Tasks.Core.nuspec" />
76-
<PackagesNuSpecFiles Remove="$(SourceDir)nuget\Microsoft.Build.Utilities.Core.nuspec" />
77-
<PackagesNuSpecFiles Remove="$(SourceDir)nuget\MSBuild.nuspec" />
78-
</ItemGroup>
79-
</Target>
80-
8134
</Project>

0 commit comments

Comments
 (0)