Skip to content

Commit

Permalink
chore: 将版本号设为 ConstantString
Browse files Browse the repository at this point in the history
  • Loading branch information
nopdan committed Jan 26, 2024
1 parent 1ce810b commit a2f8efe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/IME WL Converter Win/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("3.1.0.0")]
[assembly: AssemblyFileVersion("3.1.0.0")]
[assembly: AssemblyVersion(Studyzy.IMEWLConverter.ConstantString.VERSION)]
[assembly: AssemblyFileVersion(Studyzy.IMEWLConverter.ConstantString.VERSION)]
2 changes: 1 addition & 1 deletion src/ImeWlConverterCmd/ImeWlConverterCmd.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<Version>2.8.0</Version>
<Version>1.0.0</Version>
<Trimming>full</Trimming>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/ImeWlConverterCmd/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static void Main(string[] args)
}
private static void Help(List<ComboBoxShowAttribute> cbxImportItems)
{
Console.WriteLine("当前版本:V" + Assembly.GetExecutingAssembly().GetName().Version.ToString());
Console.WriteLine("当前版本:V" + ConstantString.VERSION);
Console.WriteLine("-i:输入的词库类型 词库路径1 词库路径2 词库路径3 -o:输出的词库类型 输出词库路径 -c:编码文件路径");
Console.WriteLine("输入和输出的词库类型如下:");
var defaultBColor = Console.BackgroundColor;
Expand Down
2 changes: 2 additions & 0 deletions src/ImeWlConverterCore/ConstantString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ namespace Studyzy.IMEWLConverter
/// </summary>
public class ConstantString
{
public const string VERSION = "3.1.0.0";

public const string BAIDU_SHOUJI = "百度手机或Mac版百度拼音";
public const string BAIDU_SHOUJI_ENG = "百度手机英文";
public const string BAIDU_BDICT = "百度分类词库bdict";
Expand Down

0 comments on commit a2f8efe

Please sign in to comment.