feat(GitVersion): 引入GitVersion自动管理版本号。

This commit is contained in:
Liang Su 2024-04-24 14:41:04 +08:00
parent cefe52b401
commit b0f9c31b5e
61 changed files with 1844 additions and 11 deletions

View File

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<GitVersionOutputFile Condition="'$(GitVersionOutputFile)' == ''">$([MSBuild]::EnsureTrailingSlash($(BaseIntermediateOutputPath)))gitversion.json</GitVersionOutputFile>
<Language Condition=" '$(Language)' == '' Or '$(DefaultLanguageSourceExtension)' == ''">C#</Language>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)/../</SolutionDir>
<GitVersionPath Condition="'$(GitVersionPath)' == '' And '$(GitVersionUseSolutionDir)' == 'true'">$(SolutionDir)</GitVersionPath>
<GitVersionPath Condition="'$(GitVersionPath)' == ''">$(MSBuildProjectDirectory)</GitVersionPath>
<GitVersion_NoFetchEnabled Condition="$(GitVersion_NoFetchEnabled) == ''">false</GitVersion_NoFetchEnabled>
<GitVersion_NoNormalizeEnabled Condition="$(GitVersion_NoNormalizeEnabled) == ''">false</GitVersion_NoNormalizeEnabled>
<GitVersion_NoCacheEnabled Condition="$(GitVersion_NoCacheEnabled) == ''">false</GitVersion_NoCacheEnabled>
<GitVersion_ToolArgments>$(GitVersion_CommandLineArguments) -output file -outputfile $(GitVersionOutputFile)</GitVersion_ToolArgments>
<GitVersion_ToolArgments Condition=" '$(GitVersion_NoFetchEnabled)' == 'true' ">$(GitVersion_ToolArgments) -nofetch</GitVersion_ToolArgments>
<GitVersion_ToolArgments Condition=" '$(GitVersion_NoNormalizeEnabled)' == 'true' ">$(GitVersion_ToolArgments) -nonormalize</GitVersion_ToolArgments>
<GitVersion_ToolArgments Condition=" '$(GitVersion_NoCacheEnabled)' == 'true' ">$(GitVersion_ToolArgments) -nocache</GitVersion_ToolArgments>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildRuntimeType)' == 'Full' Or '$(MSBuildRuntimeType)' == 'Mono'">
<GitVersionFileExe>&quot;$(SolutionDir)BuildTools/GitVersion/net48/gitversion.exe&quot;</GitVersionFileExe>
<GitVersionAssemblyFile>$(SolutionDir)BuildTools/GitVersion/net48/GitVersion.MsBuild.dll</GitVersionAssemblyFile>
</PropertyGroup>
<PropertyGroup>
<GitVersionFileExe Condition="'$(GitVersionFileExe)' == ''">dotnet --roll-forward Major &quot;$(MSBuildThisFileDirectory)netcoreapp3.1/gitversion.dll&quot;</GitVersionFileExe>
<GitVersionAssemblyFile Condition="'$(GitVersionAssemblyFile)' == ''">$(MSBuildThisFileDirectory)netcoreapp3.1/GitVersion.MsBuild.dll</GitVersionAssemblyFile>
</PropertyGroup>
<PropertyGroup>
<DisableGitVersionTask Condition=" '$(DisableGitVersionTask)' == '' ">false</DisableGitVersionTask>
<!-- Property that enables WriteVersionInfoToBuildLog -->
<WriteVersionInfoToBuildLog Condition=" '$(DisableGitVersionTask)' == 'true' ">false</WriteVersionInfoToBuildLog>
<WriteVersionInfoToBuildLog Condition=" '$(WriteVersionInfoToBuildLog)' == '' ">true</WriteVersionInfoToBuildLog>
<!-- Property that enables UpdateAssemblyInfo. -->
<UpdateAssemblyInfo Condition=" '$(DisableGitVersionTask)' == 'true' ">false</UpdateAssemblyInfo>
<UpdateAssemblyInfo Condition=" '$(UpdateAssemblyInfo)' == '' ">true</UpdateAssemblyInfo>
<GenerateAssemblyFileVersionAttribute Condition=" '$(UpdateAssemblyInfo)' == 'true' ">false</GenerateAssemblyFileVersionAttribute>
<GenerateAssemblyInformationalVersionAttribute Condition=" '$(UpdateAssemblyInfo)' == 'true' ">false</GenerateAssemblyInformationalVersionAttribute>
<GenerateAssemblyVersionAttribute Condition=" '$(UpdateAssemblyInfo)' == 'true' ">false</GenerateAssemblyVersionAttribute>
<!-- Property that enables GenerateGitVersionInformation -->
<GenerateGitVersionInformation Condition=" '$(DisableGitVersionTask)' == 'true' ">false</GenerateGitVersionInformation>
<!--
During XAML's "GenerateTemporaryTargetAssembly" a new project file is generated and compiled
which already contains the "GeneratedCodeFiles", i.e. GitVersionInformation.g.cs.
Then, when GenerateGitVersionInformation is called in this temp-build, the file is added another time, which results in an error at CSC.
Here we try to detect this situation and prevent GenerateGitVersionInformation from running.
(The global property "_TargetAssemblyProjectName" is injected by XAML's above-mentioned task)
-->
<GenerateGitVersionInformation Condition=" '$(GenerateGitVersionInformation)' == '' And '$(_TargetAssemblyProjectName)' != '' ">false</GenerateGitVersionInformation>
<GenerateGitVersionInformation Condition=" '$(GenerateGitVersionInformation)' == '' ">true</GenerateGitVersionInformation>
<!--
Compounding on the previous "GenerateTemporaryTargetAssembly" explanation, "UpdateAssemblyInfo" is
also called in this temp-build. This results in a warning since we already updated assembly info.
Prevent UpdateAssemblyInfo from running a second time.
-->
<UpdateAssemblyInfo Condition=" '$(UpdateAssemblyInfo)' == 'true' And '$(_TargetAssemblyProjectName)' != '' ">false</UpdateAssemblyInfo>
<!-- Property that enables GetVersion -->
<GetVersion Condition=" '$(DisableGitVersionTask)' == 'true' ">false</GetVersion>
<GetVersion Condition=" '$(GetVersion)' == '' ">true</GetVersion>
<GenerateGitVersionWixDefines Condition=" '$(DisableGitVersionTask)' == 'true' ">false</GenerateGitVersionWixDefines>
<GenerateGitVersionWixDefines Condition=" '$(GenerateGitVersionWixDefines)' == '' ">true</GenerateGitVersionWixDefines>
<!-- Property that enables setting of Version -->
<UpdateVersionProperties Condition=" '$(DisableGitVersionTask)' == 'true' ">false</UpdateVersionProperties>
<UpdateVersionProperties Condition=" '$(UpdateVersionProperties)' == '' ">true</UpdateVersionProperties>
<UseFullSemVerForNuGet Condition=" '$(UseFullSemVerForNuGet)' == '' ">true</UseFullSemVerForNuGet>
</PropertyGroup>
<PropertyGroup>
<GitVersionTargetsBefore>
BeforeCompile;
CoreCompile;
GetAssemblyVersion;
GenerateNuspec;
_GenerateRestoreProjectSpec;
_GetOutputItemsFromPack;
EnsureWixToolsetInstalled
</GitVersionTargetsBefore>
<!--
Ensure GetVersion runs prior to XAML's Markup Compiler in order to have the assembly version available.
Otherwise the generated resource URI's are ambiguous when multiple versions are loaded simultaneously (i.e. in plugins)
-->
<MarkupCompilePass1DependsOn>$(MarkupCompilePass1DependsOn);GetVersion;UpdateAssemblyInfo;GenerateGitVersionInformation</MarkupCompilePass1DependsOn>
<GetPackageVersionDependsOn>$(GetPackageVersionDependsOn);GetVersion</GetPackageVersionDependsOn>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,155 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask TaskName="GetVersion" AssemblyFile="$(GitVersionAssemblyFile)"/>
<UsingTask TaskName="GenerateGitVersionInformation" AssemblyFile="$(GitVersionAssemblyFile)"/>
<UsingTask TaskName="WriteVersionInfoToBuildLog" AssemblyFile="$(GitVersionAssemblyFile)"/>
<UsingTask TaskName="UpdateAssemblyInfo" AssemblyFile="$(GitVersionAssemblyFile)"/>
<Target Name="RunGitVersion" Condition="'$(DisableGitVersionTask)' == 'false'">
<Exec Command="$(GitVersionFileExe) &quot;$(MSBuildProjectDirectory)&quot; $(GitVersion_ToolArgments)" />
</Target>
<Target Name="WriteVersionInfoToBuildLog" DependsOnTargets="RunGitVersion" BeforeTargets="$(GitVersionTargetsBefore)" Condition="$(WriteVersionInfoToBuildLog) == 'true'">
<WriteVersionInfoToBuildLog SolutionDirectory="$(GitVersionPath)" VersionFile="$(GitVersionOutputFile)" />
</Target>
<Target Name="GetVersion" DependsOnTargets="RunGitVersion" BeforeTargets="$(GitVersionTargetsBefore)" Condition="'$(DisableGitVersionTask)' == 'false'">
<GetVersion SolutionDirectory="$(GitVersionPath)" VersionFile="$(GitVersionOutputFile)">
<Output TaskParameter="Major" PropertyName="GitVersion_Major" />
<Output TaskParameter="Minor" PropertyName="GitVersion_Minor" />
<Output TaskParameter="Patch" PropertyName="GitVersion_Patch" />
<Output TaskParameter="PreReleaseTag" PropertyName="GitVersion_PreReleaseTag" />
<Output TaskParameter="PreReleaseTagWithDash" PropertyName="GitVersion_PreReleaseTagWithDash" />
<Output TaskParameter="PreReleaseLabel" PropertyName="GitVersion_PreReleaseLabel" />
<Output TaskParameter="PreReleaseLabelWithDash" PropertyName="GitVersion_PreReleaseLabelWithDash" />
<Output TaskParameter="PreReleaseNumber" PropertyName="GitVersion_PreReleaseNumber" />
<Output TaskParameter="WeightedPreReleaseNumber" PropertyName="GitVersion_WeightedPreReleaseNumber" />
<Output TaskParameter="BuildMetaData" PropertyName="GitVersion_BuildMetaData" />
<Output TaskParameter="BuildMetaDataPadded" PropertyName="GitVersion_BuildMetaDataPadded" />
<Output TaskParameter="FullBuildMetaData" PropertyName="GitVersion_FullBuildMetaData" />
<Output TaskParameter="MajorMinorPatch" PropertyName="GitVersion_MajorMinorPatch" />
<Output TaskParameter="SemVer" PropertyName="GitVersion_SemVer" />
<Output TaskParameter="LegacySemVer" PropertyName="GitVersion_LegacySemVer" />
<Output TaskParameter="LegacySemVerPadded" PropertyName="GitVersion_LegacySemVerPadded" />
<Output TaskParameter="AssemblySemVer" PropertyName="GitVersion_AssemblySemVer" />
<Output TaskParameter="AssemblySemFileVer" PropertyName="GitVersion_AssemblySemFileVer" />
<Output TaskParameter="FullSemVer" PropertyName="GitVersion_FullSemVer" />
<Output TaskParameter="InformationalVersion" PropertyName="GitVersion_InformationalVersion" />
<Output TaskParameter="BranchName" PropertyName="GitVersion_BranchName" />
<Output TaskParameter="EscapedBranchName" PropertyName="GitVersion_EscapedBranchName" />
<Output TaskParameter="Sha" PropertyName="GitVersion_Sha" />
<Output TaskParameter="ShortSha" PropertyName="GitVersion_ShortSha" />
<Output TaskParameter="NuGetVersionV2" PropertyName="GitVersion_NuGetVersionV2" />
<Output TaskParameter="NuGetVersion" PropertyName="GitVersion_NuGetVersion" />
<Output TaskParameter="NuGetPreReleaseTagV2" PropertyName="GitVersion_NuGetPreReleaseTagV2" />
<Output TaskParameter="NuGetPreReleaseTag" PropertyName="GitVersion_NuGetPreReleaseTag" />
<Output TaskParameter="CommitDate" PropertyName="GitVersion_CommitDate" />
<Output TaskParameter="VersionSourceSha" PropertyName="GitVersion_VersionSourceSha" />
<Output TaskParameter="CommitsSinceVersionSource" PropertyName="GitVersion_CommitsSinceVersionSource" />
<Output TaskParameter="CommitsSinceVersionSourcePadded" PropertyName="GitVersion_CommitsSinceVersionSourcePadded" />
<Output TaskParameter="UncommittedChanges" PropertyName="GitVersion_UncommittedChanges" />
</GetVersion>
<PropertyGroup Condition=" '$(UpdateVersionProperties)' == 'true' ">
<Version>$(GitVersion_NuGetVersion)</Version>
<VersionPrefix>$(GitVersion_MajorMinorPatch)</VersionPrefix>
<VersionSuffix Condition=" '$(UseFullSemVerForNuGet)' == 'false' ">$(GitVersion_NuGetPreReleaseTag)</VersionSuffix>
<VersionSuffix Condition=" '$(UseFullSemVerForNuGet)' == 'true' ">$(GitVersion_PreReleaseTag)</VersionSuffix>
<PackageVersion Condition=" '$(UseFullSemVerForNuGet)' == 'false' ">$(GitVersion_NuGetVersion)</PackageVersion>
<PackageVersion Condition=" '$(UseFullSemVerForNuGet)' == 'true' ">$(GitVersion_FullSemVer)</PackageVersion>
<InformationalVersion Condition=" '$(InformationalVersion)' == '' ">$(GitVersion_InformationalVersion)</InformationalVersion>
<AssemblyVersion Condition=" '$(AssemblyVersion)' == '' ">$(GitVersion_AssemblySemVer)</AssemblyVersion>
<FileVersion Condition=" '$(FileVersion)' == '' ">$(GitVersion_AssemblySemFileVer)</FileVersion>
<RepositoryBranch Condition=" '$(RepositoryBranch)' == '' ">$(GitVersion_BranchName)</RepositoryBranch>
<RepositoryCommit Condition=" '$(RepositoryCommit)' == '' ">$(GitVersion_Sha)</RepositoryCommit>
</PropertyGroup>
<PropertyGroup Condition=" '$(WixTargetsImported)' == 'true' And '$(GenerateGitVersionWixDefines)' == 'true' ">
<DefineConstants Condition=" '$(GitVersion_Major)' != '' ">GitVersion_Major=$(GitVersion_Major);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_Minor)' != '' ">GitVersion_Minor=$(GitVersion_Minor);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_Patch)' != '' ">GitVersion_Patch=$(GitVersion_Patch);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_PreReleaseTag)' != '' ">GitVersion_PreReleaseTag=$(GitVersion_PreReleaseTag);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_PreReleaseTagWithDash)' != '' ">GitVersion_PreReleaseTagWithDash=$(GitVersion_PreReleaseTagWithDash);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_PreReleaseLabel)' != '' ">GitVersion_PreReleaseLabel=$(GitVersion_PreReleaseLabel);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_PreReleaseLabelWithDash)' != '' ">GitVersion_PreReleaseLabelWithDash=$(GitVersion_PreReleaseLabeWithDashl);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_PreReleaseNumber)' != '' ">GitVersion_PreReleaseNumber=$(GitVersion_PreReleaseNumber);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_WeightedPreReleaseNumber)' != '' ">GitVersion_WeightedPreReleaseNumber=$(GitVersion_WeightedPreReleaseNumber);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_BuildMetaData)' != '' ">GitVersion_BuildMetaData=$(GitVersion_BuildMetaData);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_BuildMetaDataPadded)' != '' ">GitVersion_BuildMetaDataPadded=$(GitVersion_BuildMetaDataPadded);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_FullBuildMetaData)' != '' ">GitVersion_FullBuildMetaData=$(GitVersion_FullBuildMetaData);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_MajorMinorPatch)' != '' ">GitVersion_MajorMinorPatch=$(GitVersion_MajorMinorPatch);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_SemVer)' != '' ">GitVersion_SemVer=$(GitVersion_SemVer);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_LegacySemVer)' != '' ">GitVersion_LegacySemVer=$(GitVersion_LegacySemVer);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_LegacySemVerPadded)' != '' ">GitVersion_LegacySemVerPadded=$(GitVersion_LegacySemVerPadded);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_AssemblySemVer)' != '' ">GitVersion_AssemblySemVer=$(GitVersion_AssemblySemVer);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_AssemblySemFileVer)' != '' ">GitVersion_AssemblySemFileVer=$(GitVersion_AssemblySemFileVer);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_FullSemVer)' != '' ">GitVersion_FullSemVer=$(GitVersion_FullSemVer);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_InformationalVersion)' != '' ">GitVersion_InformationalVersion=$(GitVersion_InformationalVersion);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_BranchName)' != '' ">GitVersion_BranchName=$(GitVersion_BranchName);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_EscapedBranchName)' != '' ">GitVersion_EscapedBranchName=$(GitVersion_EscapedBranchName);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_Sha)' != '' ">GitVersion_Sha=$(GitVersion_Sha);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_ShortSha)' != '' ">GitVersion_ShortSha=$(GitVersion_ShortSha);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_NuGetVersionV2)' != '' ">GitVersion_NuGetVersionV2=$(GitVersion_NuGetVersionV2);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_NuGetVersion)' != '' ">GitVersion_NuGetVersion=$(GitVersion_NuGetVersion);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_NuGetPreReleaseTagV2)' != '' ">GitVersion_NuGetPreReleaseTagV2=$(GitVersion_NuGetPreReleaseTagV2);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_NuGetPreReleaseTag)' != '' ">GitVersion_NuGetPreReleaseTag=$(GitVersion_NuGetPreReleaseTag);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_CommitDate)' != '' ">GitVersion_CommitDate=$(GitVersion_CommitDate);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_VersionSourceSha)' != '' ">GitVersion_VersionSourceSha=$(GitVersion_VersionSourceSha);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_CommitsSinceVersionSource)' != '' ">GitVersion_CommitsSinceVersionSource=$(GitVersion_CommitsSinceVersionSource);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_CommitsSinceVersionSourcePadded)' != '' ">GitVersion_CommitsSinceVersionSourcePadded=$(GitVersion_CommitsSinceVersionSourcePadded);$(DefineConstants)</DefineConstants>
<DefineConstants Condition=" '$(GitVersion_UncommittedChanges)' != '' ">GitVersion_UncommittedChanges=$(GitVersion_UncommittedChanges);$(DefineConstants)</DefineConstants>
</PropertyGroup>
<!-- <Message Importance="High" Text="$(GitVersion_FullSemVer)" /> -->
<!-- <Message Importance="High" Text="$(GitVersion_Sha)" /> -->
</Target>
<Target Name="GenerateGitVersionInformation" DependsOnTargets="RunGitVersion" BeforeTargets="$(GitVersionTargetsBefore)" Condition="$(GenerateGitVersionInformation) == 'true'">
<GenerateGitVersionInformation SolutionDirectory="$(GitVersionPath)" VersionFile="$(GitVersionOutputFile)"
ProjectFile="$(MSBuildProjectFullPath)"
IntermediateOutputPath="$(IntermediateOutputPath)"
Language="$(Language)">
<Output TaskParameter="GitVersionInformationFilePath" PropertyName="GitVersionInformationFilePath" />
</GenerateGitVersionInformation>
<!-- <Message Importance="High" Text="Info: $(GitVersionInformationFilePath)" /> -->
<ItemGroup Condition="'$(Language)' == 'F#'">
<CompileBefore Include="$(GitVersionInformationFilePath)" />
</ItemGroup>
<ItemGroup Condition="'$(Language)' != 'F#'">
<Compile Include="$(GitVersionInformationFilePath)" />
</ItemGroup>
<ItemGroup>
<FileWrites Include="$(GitVersionInformationFilePath)" />
<_GeneratedCodeFiles Include="$(GitVersionInformationFilePath)" />
</ItemGroup>
</Target>
<Target Name="UpdateAssemblyInfo" DependsOnTargets="RunGitVersion" BeforeTargets="$(GitVersionTargetsBefore)" Condition="$(UpdateAssemblyInfo) == 'true'">
<UpdateAssemblyInfo SolutionDirectory="$(GitVersionPath)" VersionFile="$(GitVersionOutputFile)"
ProjectFile="$(MSBuildProjectFullPath)"
IntermediateOutputPath="$(IntermediateOutputPath)"
Language="$(Language)"
CompileFiles ="@(Compile)">
<Output TaskParameter="AssemblyInfoTempFilePath" PropertyName="AssemblyInfoTempFilePath" />
</UpdateAssemblyInfo>
<!-- <Message Importance="High" Text="Assembly: $(AssemblyInfoTempFilePath)" /> -->
<ItemGroup Condition="'$(Language)' == 'F#'">
<CompileBefore Include="$(AssemblyInfoTempFilePath)" />
</ItemGroup>
<ItemGroup Condition="'$(Language)' != 'F#'">
<Compile Include="$(AssemblyInfoTempFilePath)" />
</ItemGroup>
<ItemGroup>
<FileWrites Include="$(AssemblyInfoTempFilePath)" />
<_GeneratedCodeFiles Include="$(AssemblyInfoTempFilePath)" />
</ItemGroup>
</Target>
</Project>

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,7 @@
<configuration>
<dllmap os="linux" cpu="x86-64" wordsize="64" dll="git2-b7bad55" target="lib/linux-x64/libgit2-b7bad55.so" />
<dllmap os="linux" cpu="arm" wordsize="32" dll="git2-b7bad55" target="lib/linux-arm/libgit2-b7bad55.so" />
<dllmap os="linux" cpu="armv8" wordsize="64" dll="git2-b7bad55" target="lib/linux-arm64/libgit2-b7bad55.so" />
<dllmap os="osx" cpu="x86-64" wordsize="64" dll="git2-b7bad55" target="lib/osx-x64/libgit2-b7bad55.dylib" />
<dllmap os="osx" cpu="armv8" wordsize="64" dll="git2-b7bad55" target="lib/osx-arm64/libgit2-b7bad55.dylib" />
</configuration>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.40115")]
[assembly: AssemblyFileVersion("1.2.0.40115")]
/*[assembly: AssemblyVersion("1.2.0.40115")]
[assembly: AssemblyFileVersion("1.2.0.40115")]*/

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.props" Condition="Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@ -295,4 +296,12 @@
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.props')" Text="$([System.String]::Format('$(ErrorText)', 'Properties\GitVersion.MsBuild.props'))" />
<Error Condition="!Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.targets')" Text="$([System.String]::Format('$(ErrorText)', 'Properties\GitVersion.MsBuild.targets'))" />
</Target>
<Import Project="$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.targets" Condition="Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.targets')" />
</Project>

View File

@ -0,0 +1,35 @@
{
"Major": 1,
"Minor": 3,
"Patch": 1,
"PreReleaseTag": "2704-dynamic-pid-limit.100",
"PreReleaseTagWithDash": "-2704-dynamic-pid-limit.100",
"PreReleaseLabel": "2704-dynamic-pid-limit",
"PreReleaseLabelWithDash": "-2704-dynamic-pid-limit",
"PreReleaseNumber": 100,
"WeightedPreReleaseNumber": 30100,
"BuildMetaData": null,
"BuildMetaDataPadded": "",
"FullBuildMetaData": "Branch.feature-2704-dynamic-pid-limit.Sha.cefe52b4016d2e7a71a8c9cacf468bcac4ca617f",
"MajorMinorPatch": "1.3.1",
"SemVer": "1.3.1-2704-dynamic-pid-limit.100",
"LegacySemVer": "1.3.1-2704-dynamic-pid-100",
"LegacySemVerPadded": "1.3.1-2704-dynamic-pid0100",
"AssemblySemVer": "1.3.1.100",
"AssemblySemFileVer": "1.3.1.100",
"FullSemVer": "1.3.1-2704-dynamic-pid-limit.100",
"InformationalVersion": "1.3.1-2704-dynamic-pid-limit.100+Branch.feature-2704-dynamic-pid-limit.Sha.cefe52b4016d2e7a71a8c9cacf468bcac4ca617f",
"BranchName": "feature/2704-dynamic-pid-limit",
"EscapedBranchName": "feature-2704-dynamic-pid-limit",
"Sha": "cefe52b4016d2e7a71a8c9cacf468bcac4ca617f",
"ShortSha": "cefe52b",
"NuGetVersionV2": "1.3.1-2704-dynamic-pid0100",
"NuGetVersion": "1.3.1-2704-dynamic-pid0100",
"NuGetPreReleaseTagV2": "2704-dynamic-pid0100",
"NuGetPreReleaseTag": "2704-dynamic-pid0100",
"VersionSourceSha": "3a5efd98314952ace38bc7ce5715f92c76e60398",
"CommitsSinceVersionSource": 100,
"CommitsSinceVersionSourcePadded": "0100",
"UncommittedChanges": 61,
"CommitDate": "2024-04-24"
}

View File

@ -50,6 +50,6 @@ using System.Windows;
//
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
/*
[assembly: AssemblyVersion("1.3.1.40409")]
[assembly: AssemblyInformationalVersion("自动通用版有EFEM")]
[assembly: AssemblyInformationalVersion("自动通用版有EFEM")]*/

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.props" Condition="Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@ -257,4 +258,13 @@
<PreBuildEvent>
</PreBuildEvent>
</PropertyGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.props')" Text="$([System.String]::Format('$(ErrorText)', 'Properties\GitVersion.MsBuild.props'))" />
<Error Condition="!Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.targets')" Text="$([System.String]::Format('$(ErrorText)', 'Properties\GitVersion.MsBuild.targets'))" />
</Target>
<Import Project="$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.targets" Condition="Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.targets')" />
</Project>

35
SicRT/gitversion.json Normal file
View File

@ -0,0 +1,35 @@
{
"Major": 1,
"Minor": 3,
"Patch": 1,
"PreReleaseTag": "2704-dynamic-pid-limit.100",
"PreReleaseTagWithDash": "-2704-dynamic-pid-limit.100",
"PreReleaseLabel": "2704-dynamic-pid-limit",
"PreReleaseLabelWithDash": "-2704-dynamic-pid-limit",
"PreReleaseNumber": 100,
"WeightedPreReleaseNumber": 30100,
"BuildMetaData": null,
"BuildMetaDataPadded": "",
"FullBuildMetaData": "Branch.feature-2704-dynamic-pid-limit.Sha.cefe52b4016d2e7a71a8c9cacf468bcac4ca617f",
"MajorMinorPatch": "1.3.1",
"SemVer": "1.3.1-2704-dynamic-pid-limit.100",
"LegacySemVer": "1.3.1-2704-dynamic-pid-100",
"LegacySemVerPadded": "1.3.1-2704-dynamic-pid0100",
"AssemblySemVer": "1.3.1.100",
"AssemblySemFileVer": "1.3.1.100",
"FullSemVer": "1.3.1-2704-dynamic-pid-limit.100",
"InformationalVersion": "1.3.1-2704-dynamic-pid-limit.100+Branch.feature-2704-dynamic-pid-limit.Sha.cefe52b4016d2e7a71a8c9cacf468bcac4ca617f",
"BranchName": "feature/2704-dynamic-pid-limit",
"EscapedBranchName": "feature-2704-dynamic-pid-limit",
"Sha": "cefe52b4016d2e7a71a8c9cacf468bcac4ca617f",
"ShortSha": "cefe52b",
"NuGetVersionV2": "1.3.1-2704-dynamic-pid0100",
"NuGetVersion": "1.3.1-2704-dynamic-pid0100",
"NuGetPreReleaseTagV2": "2704-dynamic-pid0100",
"NuGetPreReleaseTag": "2704-dynamic-pid0100",
"VersionSourceSha": "3a5efd98314952ace38bc7ce5715f92c76e60398",
"CommitsSinceVersionSource": 100,
"CommitsSinceVersionSourcePadded": "0100",
"UncommittedChanges": 61,
"CommitDate": "2024-04-24"
}

View File

@ -51,5 +51,6 @@ using System.Windows;
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.7.0.2")]
/*[assembly: AssemblyVersion("1.7.0.2")]
[assembly: AssemblyFileVersion("1.7.0.2")]
*/

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.props" Condition="Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@ -182,4 +183,12 @@
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.props')" Text="$([System.String]::Format('$(ErrorText)', 'Properties\GitVersion.MsBuild.props'))" />
<Error Condition="!Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.targets')" Text="$([System.String]::Format('$(ErrorText)', 'Properties\GitVersion.MsBuild.targets'))" />
</Target>
<Import Project="$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.targets" Condition="Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.targets')" />
</Project>

View File

@ -0,0 +1,35 @@
{
"Major": 1,
"Minor": 3,
"Patch": 1,
"PreReleaseTag": "2704-dynamic-pid-limit.100",
"PreReleaseTagWithDash": "-2704-dynamic-pid-limit.100",
"PreReleaseLabel": "2704-dynamic-pid-limit",
"PreReleaseLabelWithDash": "-2704-dynamic-pid-limit",
"PreReleaseNumber": 100,
"WeightedPreReleaseNumber": 30100,
"BuildMetaData": null,
"BuildMetaDataPadded": "",
"FullBuildMetaData": "Branch.feature-2704-dynamic-pid-limit.Sha.cefe52b4016d2e7a71a8c9cacf468bcac4ca617f",
"MajorMinorPatch": "1.3.1",
"SemVer": "1.3.1-2704-dynamic-pid-limit.100",
"LegacySemVer": "1.3.1-2704-dynamic-pid-100",
"LegacySemVerPadded": "1.3.1-2704-dynamic-pid0100",
"AssemblySemVer": "1.3.1.100",
"AssemblySemFileVer": "1.3.1.100",
"FullSemVer": "1.3.1-2704-dynamic-pid-limit.100",
"InformationalVersion": "1.3.1-2704-dynamic-pid-limit.100+Branch.feature-2704-dynamic-pid-limit.Sha.cefe52b4016d2e7a71a8c9cacf468bcac4ca617f",
"BranchName": "feature/2704-dynamic-pid-limit",
"EscapedBranchName": "feature-2704-dynamic-pid-limit",
"Sha": "cefe52b4016d2e7a71a8c9cacf468bcac4ca617f",
"ShortSha": "cefe52b",
"NuGetVersionV2": "1.3.1-2704-dynamic-pid0100",
"NuGetVersion": "1.3.1-2704-dynamic-pid0100",
"NuGetPreReleaseTagV2": "2704-dynamic-pid0100",
"NuGetPreReleaseTag": "2704-dynamic-pid0100",
"VersionSourceSha": "3a5efd98314952ace38bc7ce5715f92c76e60398",
"CommitsSinceVersionSource": 100,
"CommitsSinceVersionSourcePadded": "0100",
"UncommittedChanges": 61,
"CommitDate": "2024-04-24"
}

View File

@ -54,5 +54,5 @@ using System.Windows;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.3.1.40409")]
[assembly: AssemblyInformationalVersion("自动通用版有EFEM")]
/*[assembly: AssemblyVersion("1.3.1.40409")]
[assembly: AssemblyInformationalVersion("自动通用版有EFEM")]*/

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.props" Condition="Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@ -929,4 +930,13 @@ if exist "$(ProjectDir)..\SicSetup\Packages\SicUI\PresetGroups" rd "$(ProjectDir
<Target Name="AfterBuild">
</Target>
-->
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.props')" Text="$([System.String]::Format('$(ErrorText)', 'Properties\GitVersion.MsBuild.props'))" />
<Error Condition="!Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.targets')" Text="$([System.String]::Format('$(ErrorText)', 'Properties\GitVersion.MsBuild.targets'))" />
</Target>
<Import Project="$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.targets" Condition="Exists('$(SolutionDir)BuildTools\GitVersion\GitVersion.MsBuild.targets')" />
</Project>

35
SicUI/gitversion.json Normal file
View File

@ -0,0 +1,35 @@
{
"Major": 1,
"Minor": 3,
"Patch": 1,
"PreReleaseTag": "2704-dynamic-pid-limit.100",
"PreReleaseTagWithDash": "-2704-dynamic-pid-limit.100",
"PreReleaseLabel": "2704-dynamic-pid-limit",
"PreReleaseLabelWithDash": "-2704-dynamic-pid-limit",
"PreReleaseNumber": 100,
"WeightedPreReleaseNumber": 30100,
"BuildMetaData": null,
"BuildMetaDataPadded": "",
"FullBuildMetaData": "Branch.feature-2704-dynamic-pid-limit.Sha.cefe52b4016d2e7a71a8c9cacf468bcac4ca617f",
"MajorMinorPatch": "1.3.1",
"SemVer": "1.3.1-2704-dynamic-pid-limit.100",
"LegacySemVer": "1.3.1-2704-dynamic-pid-100",
"LegacySemVerPadded": "1.3.1-2704-dynamic-pid0100",
"AssemblySemVer": "1.3.1.100",
"AssemblySemFileVer": "1.3.1.100",
"FullSemVer": "1.3.1-2704-dynamic-pid-limit.100",
"InformationalVersion": "1.3.1-2704-dynamic-pid-limit.100+Branch.feature-2704-dynamic-pid-limit.Sha.cefe52b4016d2e7a71a8c9cacf468bcac4ca617f",
"BranchName": "feature/2704-dynamic-pid-limit",
"EscapedBranchName": "feature-2704-dynamic-pid-limit",
"Sha": "cefe52b4016d2e7a71a8c9cacf468bcac4ca617f",
"ShortSha": "cefe52b",
"NuGetVersionV2": "1.3.1-2704-dynamic-pid0100",
"NuGetVersion": "1.3.1-2704-dynamic-pid0100",
"NuGetPreReleaseTagV2": "2704-dynamic-pid0100",
"NuGetPreReleaseTag": "2704-dynamic-pid0100",
"VersionSourceSha": "3a5efd98314952ace38bc7ce5715f92c76e60398",
"CommitsSinceVersionSource": 100,
"CommitsSinceVersionSourcePadded": "0100",
"UncommittedChanges": 61,
"CommitDate": "2024-04-24"
}

11
gitversion.yml Normal file
View File

@ -0,0 +1,11 @@
assembly-versioning-scheme: MajorMinorPatchTag
assembly-file-versioning-scheme: MajorMinorPatchTag
mode: ContinuousDeployment
continuous-delivery-fallback-tag: ''
commit-message-incrementing: Enabled
branches:
feature:
regex: ^features?[/-]
mode: ContinuousDeployment
tag: useBranchName
increment: Patch