mirror of
https://github.com/nsnail/dot.git
synced 2025-08-03 10:27:59 +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();
|
||||
app.Configure(config => {
|
||||
config.SetApplicationName(AssemblyInfo.ASSEMBLY_PRODUCT);
|
||||
config.SetApplicationVersion(AssemblyInfo.ASSEMBLY_VERSION);
|
||||
|
||||
config.AddCommand<Main>(nameof(Git).ToLower(CultureInfo.InvariantCulture));
|
||||
#if NET7_0_WINDOWS
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) {
|
||||
|
@ -1,10 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AssemblyTitle>功能全面的实用工具 - 程序员的瑞士军刀</AssemblyTitle>
|
||||
<Copyright>Copyright (c) 2022 nsnail</Copyright>
|
||||
<EnableWindowsTargeting>true</EnableWindowsTargeting>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<OutputType>Exe</OutputType>
|
||||
<Product>dot</Product>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<RepositoryUrl>https://github.com/nsnail/dot.git</RepositoryUrl>
|
||||
<RootNamespace>Dot</RootNamespace>
|
||||
<TargetFrameworks>net7.0-windows;net7.0</TargetFrameworks>
|
||||
<UseWindowsForms Condition="'$(TargetFramework)' == 'net7.0-windows'">true</UseWindowsForms>
|
||||
@ -13,10 +17,14 @@
|
||||
<DefineConstants>$(DefineConstants);NET7_0_WINDOWS</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<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.NS" Version="0.45.1-preview.0.48" />
|
||||
<PackageReference Condition="'$(TargetFramework)' == 'net7.0-windows'" Include="TextCopy" Version="6.2.0" />
|
||||
<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.NS" Version="0.45.1-preview.0.48"/>
|
||||
<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>
|
||||
<EmbeddedResource Update="Lang\Str.resx">
|
||||
@ -24,6 +32,6 @@
|
||||
<LastGenOutput>Str.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<Import Project="../CodeQuality.props" />
|
||||
<Import Project="../GenerateResx.targets" />
|
||||
<Import Project="../CodeQuality.props"/>
|
||||
<Import Project="../GenerateResx.targets"/>
|
||||
</Project>
|
Reference in New Issue
Block a user