-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
107 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//////////////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// RelaxVersioner - Git tag/branch based, full-automatic version information inserter. | ||
// Copyright (c) Kouji Matsui (@kozy_kekyo, @[email protected]) | ||
// | ||
// Licensed under Apache-v2: https://opensource.org/licenses/Apache-2.0 | ||
// | ||
//////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
#if BOOTSTRAP | ||
using System.Reflection; | ||
|
||
[assembly: AssemblyVersion("0.0.1")] | ||
[assembly: AssemblyFileVersion("2023.10.1.0")] | ||
[assembly: AssemblyInformationalVersion("0.0.1-bootstrap")] | ||
|
||
namespace RelaxVersioner | ||
{ | ||
internal static class ThisAssembly | ||
{ | ||
public const string @AssemblyVersion = @"0.0.1"; | ||
public const string @AssemblyFileVersion = @"2023.10.1.0"; | ||
public const string @AssemblyInformationalVersion = @"0.0.1-bootstrap"; | ||
public static class AssemblyMetadata | ||
{ | ||
public const string @CommitId = @"bootstrap"; | ||
public const string @TargetFrameworkMoniker = @"bootstrap"; | ||
} | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//////////////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// RelaxVersioner - Git tag/branch based, full-automatic version information inserter. | ||
// Copyright (c) Kouji Matsui (@kozy_kekyo, @[email protected]) | ||
// | ||
// Licensed under Apache-v2: https://opensource.org/licenses/Apache-2.0 | ||
// | ||
//////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
#if BOOTSTRAP | ||
using System.Reflection; | ||
|
||
[assembly: AssemblyVersion("0.0.1")] | ||
[assembly: AssemblyFileVersion("2023.10.1.0")] | ||
[assembly: AssemblyInformationalVersion("0.0.1-bootstrap")] | ||
|
||
namespace RelaxVersioner | ||
{ | ||
internal static class ThisAssembly | ||
{ | ||
public const string @AssemblyVersion = @"0.0.1"; | ||
public const string @AssemblyFileVersion = @"2023.10.1.0"; | ||
public const string @AssemblyInformationalVersion = @"0.0.1-bootstrap"; | ||
public static class AssemblyMetadata | ||
{ | ||
public const string @CommitId = @"bootstrap"; | ||
public const string @TargetFrameworkMoniker = @"bootstrap"; | ||
} | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<RepositoryUrl>https://github.com/kekyo/CenterCLR.RelaxVersioner.git</RepositoryUrl> | ||
|
||
<RootNamespace>RelaxVersioner</RootNamespace> | ||
<Product>RelaxVersioner</Product> | ||
<Trademark>RelaxVersioner</Trademark> | ||
|
@@ -22,7 +22,7 @@ | |
<Authors>Kouji Matsui (@kozy_kekyo, @[email protected])</Authors> | ||
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression> | ||
<AllowedOutputExtensionsInPackageBuildOutputFolder>.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> | ||
<NoWarn>$(NoWarn);NU1605;NU1701;NU1803</NoWarn> | ||
<NoWarn>$(NoWarn);NU1605;NU1701;NU1803;NU1902;NU1903;NETSDK1057;NETSDK1209</NoWarn> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
|
@@ -40,6 +40,12 @@ | |
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(BOOTSTRAP)' == 'True'"> | ||
<DefineConstants>$(DefineConstants);BOOTSTRAP</DefineConstants> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<RV_BOOTSTRAP>True</RV_BOOTSTRAP> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="'$(Configuration)' == 'Release'"> | ||
<SourceRoot Include="$(MSBuildThisFileDirectory)/"/> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@echo off | ||
|
||
rem RelaxVersioner - Git tag/branch based, full-automatic version information inserter. | ||
rem Copyright (c) Kouji Matsui (@kozy_kekyo, @[email protected]) | ||
rem | ||
rem Licensed under Apache-v2: https://opensource.org/licenses/Apache-2.0 | ||
|
||
rem This script is used by the RelaxVersioner to get over when .NET releases a new major version. | ||
rem For example .NET 8.0 release, the RelaxVersioner that uses itself will fail to build | ||
rem because it must support the `net8.0` TFM, which was not included in earlier versions. | ||
rem This script will generate a RelaxVersioner with a temporary version embedded | ||
rem and a private package so that it can build itself with the new .NET version. | ||
|
||
rem `PackageVersion` should be set appropriately. | ||
|
||
echo. | ||
echo "===========================================================" | ||
echo "Build RelaxVersioner (Bootstrap)" | ||
echo. | ||
|
||
dotnet build -p:Configuration=Release -p:Platform="Any CPU" -p:BOOTSTRAP=True -p:PackageVersion=3.2.10 CenterCLR.RelaxVersioner.sln | ||
dotnet pack -p:Configuration=Release -p:Platform="Any CPU" -p:BOOTSTRAP=True -p:PackageVersion=3.2.10 -o artifacts CenterCLR.RelaxVersioner.sln |