|
31 | 31 | <Import Project="$(ToolsDir)BuildVersion.targets" Condition="Exists('$(ToolsDir)BuildVersion.targets')" />
|
32 | 32 | <Import Project="$(ToolsDir)versioning.targets" Condition="Exists('$(ToolsDir)versioning.targets')" />
|
33 | 33 |
|
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 |
| - |
81 | 34 | </Project>
|
0 commit comments