main
verproj 33 lines 1.79 KB
Raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3
4 <Project Sdk="SomeVer/0.1.1">
5 <PropertyGroup>
6 <TargetFramework>netstandard2.0</TargetFramework>
7
8 <!-- Disable central package version management since this project will write the central package version management file -->
9 <ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
10
11 <!-- Explicitly set the restore sources because this project may run before the build\artifacts folder has been created -->
12 <RestoreSources>https://api.nuget.org/v3/index.json</RestoreSources>
13 <RestoreIgnoreFailedSources>true</RestoreIgnoreFailedSources>
14
15 <!-- SomeVer configuration -->
16 <SomeVerAutoIncrement>major</SomeVerAutoIncrement>
17 <SomeVerDefaultPreReleaseIdentifiers>build</SomeVerDefaultPreReleaseIdentifiers>
18 <SomeVerIncludeDefaultPreReleaseIdentifiersWithPrereleases>true</SomeVerIncludeDefaultPreReleaseIdentifiersWithPrereleases>
19 <SomeVerTagPrefix>v</SomeVerTagPrefix>
20
21 <!-- Pretend that the SomeVer information was imported because we'll actually be creating it here -->
22 <SomeVerInfoImported>true</SomeVerInfoImported>
23 </PropertyGroup>
24
25 <ItemGroup>
26 <VersionTemplate Include="global.json.pp" OutputPath="$(GlobalJsonFile)" />
27 <VersionTemplate Include="Directory.Packages.props.pp" OutputPath="$(CentralPackageVersionsPath)" />
28 <VersionTemplate Include="SomeVerInfo.cs.pp" OutputPath="$(SomeVerInfoCsFile)" />
29 <VersionTemplate Include="SomeVerInfo.rc.pp" OutputPath="$(SomeVerInfoRcFile)" />
30 <VersionTemplate Include="SomeVerInfo.props.pp" OutputPath="$(SomeVerInfoPropsFile)" />
31 </ItemGroup>
32
33 </Project>