diff --git a/src/AssemblyInfo.cs b/src/AssemblyInfo.cs deleted file mode 100644 index ed3e225..0000000 --- a/src/AssemblyInfo.cs +++ /dev/null @@ -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"; -} \ No newline at end of file diff --git a/src/Program.cs b/src/Program.cs index 9c6b2e2..520d7f9 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -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
(nameof(Git).ToLower(CultureInfo.InvariantCulture)); #if NET7_0_WINDOWS if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { diff --git a/src/dot.csproj b/src/dot.csproj index f35e02d..cb7bfcf 100644 --- a/src/dot.csproj +++ b/src/dot.csproj @@ -1,10 +1,14 @@ true + 功能全面的实用工具 - 程序员的瑞士军刀 + Copyright (c) 2022 nsnail true - false true Exe + dot + git + https://github.com/nsnail/dot.git Dot net7.0-windows;net7.0 true @@ -13,10 +17,14 @@ $(DefineConstants);NET7_0_WINDOWS - - - - + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + @@ -24,6 +32,6 @@ Str.Designer.cs - - + + \ No newline at end of file