mirror of
https://github.com/nsnail/dot.git
synced 2025-08-03 20:45:36 +08:00
minver
This commit is contained in:
@ -1,28 +0,0 @@
|
|||||||
using System.Reflection;
|
|
||||||
using Dot;
|
|
||||||
|
|
||||||
[assembly: AssemblyCompany(AssemblyInfo.ASSEMBLY_COMPANY)]
|
|
||||||
[assembly: AssemblyCopyright(AssemblyInfo.ASSEMBLY_COPYRIGHT)]
|
|
||||||
[assembly: AssemblyFileVersion(AssemblyInfo.ASSEMBLY_FILE_VERSION)]
|
|
||||||
[assembly: AssemblyInformationalVersion(AssemblyInfo.ASSEMBLY_INFORMATIONAL_VERSION)]
|
|
||||||
[assembly: AssemblyProduct(AssemblyInfo.ASSEMBLY_PRODUCT)]
|
|
||||||
[assembly: AssemblyTitle(AssemblyInfo.ASSEMBLY_TITLE)]
|
|
||||||
[assembly: AssemblyVersion(AssemblyInfo.ASSEMBLY_VERSION)]
|
|
||||||
[assembly: AssemblyMetadata("RepositoryUrl", AssemblyInfo.ASSEMBLY_METADATA_REPOSITORY_URL)]
|
|
||||||
[assembly: AssemblyMetadata("RepositoryType", AssemblyInfo.ASSEMBLY_METADATA_REPOSITORY_TYPE)]
|
|
||||||
|
|
||||||
namespace Dot;
|
|
||||||
|
|
||||||
internal static class AssemblyInfo
|
|
||||||
{
|
|
||||||
public const string ASSEMBLY_COMPANY = "nsnail";
|
|
||||||
public const string ASSEMBLY_COPYRIGHT = $"Copyright (c) 2022 {ASSEMBLY_COMPANY}";
|
|
||||||
public const string ASSEMBLY_FILE_VERSION = _VERSION;
|
|
||||||
public const string ASSEMBLY_INFORMATIONAL_VERSION = _VERSION;
|
|
||||||
public const string ASSEMBLY_METADATA_REPOSITORY_TYPE = "git";
|
|
||||||
public const string ASSEMBLY_METADATA_REPOSITORY_URL = "https://github.com/nsnail/dot.git";
|
|
||||||
public const string ASSEMBLY_PRODUCT = "dot";
|
|
||||||
public const string ASSEMBLY_TITLE = "功能全面的实用工具 - 程序员的瑞士军刀";
|
|
||||||
public const string ASSEMBLY_VERSION = _VERSION;
|
|
||||||
private const string _VERSION = "1.1.7.1";
|
|
||||||
}
|
|
@ -14,9 +14,6 @@ internal static class Program
|
|||||||
|
|
||||||
var app = new CommandApp();
|
var app = new CommandApp();
|
||||||
app.Configure(config => {
|
app.Configure(config => {
|
||||||
config.SetApplicationName(AssemblyInfo.ASSEMBLY_PRODUCT);
|
|
||||||
config.SetApplicationVersion(AssemblyInfo.ASSEMBLY_VERSION);
|
|
||||||
|
|
||||||
config.AddCommand<Main>(nameof(Git).ToLower(CultureInfo.InvariantCulture));
|
config.AddCommand<Main>(nameof(Git).ToLower(CultureInfo.InvariantCulture));
|
||||||
#if NET7_0_WINDOWS
|
#if NET7_0_WINDOWS
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) {
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) {
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
|
<AssemblyTitle>功能全面的实用工具 - 程序员的瑞士军刀</AssemblyTitle>
|
||||||
|
<Copyright>Copyright (c) 2022 nsnail</Copyright>
|
||||||
<EnableWindowsTargeting>true</EnableWindowsTargeting>
|
<EnableWindowsTargeting>true</EnableWindowsTargeting>
|
||||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
|
<Product>dot</Product>
|
||||||
|
<RepositoryType>git</RepositoryType>
|
||||||
|
<RepositoryUrl>https://github.com/nsnail/dot.git</RepositoryUrl>
|
||||||
<RootNamespace>Dot</RootNamespace>
|
<RootNamespace>Dot</RootNamespace>
|
||||||
<TargetFrameworks>net7.0-windows;net7.0</TargetFrameworks>
|
<TargetFrameworks>net7.0-windows;net7.0</TargetFrameworks>
|
||||||
<UseWindowsForms Condition="'$(TargetFramework)' == 'net7.0-windows'">true</UseWindowsForms>
|
<UseWindowsForms Condition="'$(TargetFramework)' == 'net7.0-windows'">true</UseWindowsForms>
|
||||||
@ -13,10 +17,14 @@
|
|||||||
<DefineConstants>$(DefineConstants);NET7_0_WINDOWS</DefineConstants>
|
<DefineConstants>$(DefineConstants);NET7_0_WINDOWS</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="NSExt" Version="1.0.11-alpha.0.1" />
|
<PackageReference Include="NSExt" Version="1.0.11-alpha.0.1"/>
|
||||||
<PackageReference Include="Spectre.Console.Cli.NS" Version="0.45.1-preview.0.48" />
|
<PackageReference Include="Spectre.Console.Cli.NS" Version="0.45.1-preview.0.48"/>
|
||||||
<PackageReference Include="Spectre.Console.NS" Version="0.45.1-preview.0.48" />
|
<PackageReference Include="Spectre.Console.NS" Version="0.45.1-preview.0.48"/>
|
||||||
<PackageReference Condition="'$(TargetFramework)' == 'net7.0-windows'" Include="TextCopy" Version="6.2.0" />
|
<PackageReference Condition="'$(TargetFramework)' == 'net7.0-windows'" Include="TextCopy" Version="6.2.1"/>
|
||||||
|
<PackageReference Include="MinVer" Version="4.3.0-beta.1">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Update="Lang\Str.resx">
|
<EmbeddedResource Update="Lang\Str.resx">
|
||||||
@ -24,6 +32,6 @@
|
|||||||
<LastGenOutput>Str.Designer.cs</LastGenOutput>
|
<LastGenOutput>Str.Designer.cs</LastGenOutput>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="../CodeQuality.props" />
|
<Import Project="../CodeQuality.props"/>
|
||||||
<Import Project="../GenerateResx.targets" />
|
<Import Project="../GenerateResx.targets"/>
|
||||||
</Project>
|
</Project>
|
Reference in New Issue
Block a user