Skip to content

Commit

Permalink
添加版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed Oct 23, 2021
1 parent 94a9bd8 commit 55b6be8
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions ColoryrBuild/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace ColoryrBuild
/// </summary>
public partial class App : Application
{
public const string Version = "1.1.0";
/// <summary>
/// 运行路径
/// </summary>
Expand Down
2 changes: 2 additions & 0 deletions ColoryrBuild/ColoryrBuild.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<UseWPF>true</UseWPF>
<ApplicationIcon>ColoryrWork.ico</ApplicationIcon>
<MinimumPlatformVersion>7.0</MinimumPlatformVersion>
<AssemblyVersion>1.1.0</AssemblyVersion>
<FileVersion>1.1.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
3 changes: 1 addition & 2 deletions ColoryrServer/ASP/ASPConfig.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Net.Security;
using ColoryrServer.FileSystem;
using ColoryrServer.FileSystem;
using Lib.Build;

namespace ColoryrServer.ASP
Expand Down
2 changes: 1 addition & 1 deletion ColoryrServer/ASP/HTTP/UrlRote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ namespace ASP.HTTP
{
public class UrlRote
{

}
}
2 changes: 1 addition & 1 deletion ColoryrServer/ASP/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
using Lib.Build;
using Lib.Build.Object;
using Lib.Server;
using Microsoft.AspNetCore.Connections;
using Microsoft.Extensions.Primitives;
using Newtonsoft.Json.Linq;
using System.Collections.Concurrent;
using System.Collections.Specialized;
using System.Security.Cryptography.X509Certificates;
using Microsoft.AspNetCore.Connections;
using System.Text;
using HttpRequest = Microsoft.AspNetCore.Http.HttpRequest;
using HttpResponse = Microsoft.AspNetCore.Http.HttpResponse;
Expand Down
2 changes: 2 additions & 0 deletions ColoryrServer/Core/ColoryrServer.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<StartupObject></StartupObject>
<BaseOutputPath>..\..\build_out\Core</BaseOutputPath>
<DebugType>embedded</DebugType>
<AssemblyVersion>1.1.0</AssemblyVersion>
<FileVersion>1.1.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand Down
1 change: 0 additions & 1 deletion ColoryrServer/Core/Robot/RobotUtils.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using ColoryrServer.SDK;
using Newtonsoft.Json;
using System.Collections.Generic;

namespace ColoryrServer.Robot
Expand Down
2 changes: 1 addition & 1 deletion ColoryrServer/Core/SDK/RobotSDK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public enum EventType
/// <param name="oid">管理者QQ号</param>
/// <param name="type">事件类型</param>
/// <param name="robot">机器人</param>
public RobotEvent(EventType etype, long qq, long id, long fid, string name, string oname, long oid, RobotSDK robot) : base (MessageType.group, qq, id, fid, null, null, robot)
public RobotEvent(EventType etype, long qq, long id, long fid, string name, string oname, long oid, RobotSDK robot) : base(MessageType.group, qq, id, fid, null, null, robot)
{
this.oname = oname;
this.oid = oid;
Expand Down
2 changes: 2 additions & 0 deletions ColoryrServer/Core/ServerMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ namespace ColoryrServer
{
public class ServerMain
{
public const string Version = "1.1.0";
/// <summary>
/// 配置文件
/// </summary>
Expand Down Expand Up @@ -77,6 +78,7 @@ public static void Start()
{
try
{
Console.WriteLine($"ColoryrServer版本:{Version}");
//初始化运行路径
RunLocal = AppDomain.CurrentDomain.BaseDirectory + "ColoryrServer/";
if (!Directory.Exists(RunLocal))
Expand Down

0 comments on commit 55b6be8

Please sign in to comment.