From 12acdf14fcddae8d16e00b7b981559da67ce60ea Mon Sep 17 00:00:00 2001
From: Chr <haoran.cheng@skonda.com.cn>
Date: 星期五, 23 八月 2024 08:53:20 +0800
Subject: [PATCH] 完善消息通知程序;
---
PdmAlert/PdmAlert.csproj | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/PdmAlert/PdmAlert.csproj b/PdmAlert/PdmAlert.csproj
index 9a18d0d..924b67b 100644
--- a/PdmAlert/PdmAlert.csproj
+++ b/PdmAlert/PdmAlert.csproj
@@ -57,9 +57,15 @@
<PropertyGroup>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
+ <PropertyGroup>
+ <ApplicationIcon>Icon.ico</ApplicationIcon>
+ </PropertyGroup>
<ItemGroup>
<Reference Include="DevComponents.DotNetBar2">
<HintPath>..\lib\DevComponents.DotNetBar2.dll</HintPath>
+ </Reference>
+ <Reference Include="log4net">
+ <HintPath>lib\log4net.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>lib\Newtonsoft.Json.dll</HintPath>
@@ -78,6 +84,9 @@
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
+ <Reference Include="websocket-sharp">
+ <HintPath>lib\websocket-sharp.dll</HintPath>
+ </Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
@@ -87,6 +96,7 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
+ <Compile Include="ToolSetting.cs" />
<Compile Include="Util.cs" />
<Page Include="LoginWindow.xaml">
<SubType>Designer</SubType>
@@ -132,6 +142,9 @@
</EmbeddedResource>
<None Include="app.manifest" />
<Resource Include="Icon\iconfont.ttf" />
+ <None Include="log4net.config">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </None>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
@@ -141,9 +154,43 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
+ <Resource Include="Icon.ico" />
<Content Include="Icon\Icon.ico">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
+ <Content Include="ReleaseSettings\ToolSetting.xml">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ReleaseSettings\UpdaterSetting.xml">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Settings\UpdaterSetting.xml">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Settings\ToolSetting.xml">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\CommonUpdater\VersionControl\VersionControl.csproj">
+ <Project>{edc73c56-d0c5-4ac9-b296-3253915ef933}</Project>
+ <Name>VersionControl</Name>
+ </ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PostBuildEvent>xcopy "C:\Main\Workspace\VisualStudio\CommonUpdater\AutoUpdater\bin\x64\$(ConfigurationName)\" "$(TargetDir)AutoUpdater\" /S /Y
+
+IF "$(ConfigurationName)"=="Release" GOTO PRE
+GOTO END
+
+:PRE
+rd /Q/S "$(TargetDir)Settings" && ren "$(TargetDir)ReleaseSettings" "Settings"
+GOTO END
+
+:END
+xcopy "$(TargetDir)Settings\UpdaterSetting.xml" "$(TargetDir)AutoUpdater\Settings\UpdaterSetting.xml" /Y
+
+</PostBuildEvent>
+ </PropertyGroup>
</Project>
\ No newline at end of file
--
Gitblit v1.9.1