From 31a636e735a0addc56e4f4527f500b7aa0874eb5 Mon Sep 17 00:00:00 2001 From: chr <chr@mailcom> Date: 星期五, 03 一月 2025 11:21:46 +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..2351bde 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 "D:\Workspace\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 +echo f| xcopy "$(TargetDir)Settings\UpdaterSetting.xml" "$(TargetDir)AutoUpdater\Settings\UpdaterSetting.xml" /E /Y + +</PostBuildEvent> + </PropertyGroup> </Project> \ No newline at end of file -- Gitblit v1.9.1