From df475857ef6214c184d9ed831a393a1afc73277c Mon Sep 17 00:00:00 2001 From: chr <chr@chr.com> Date: 星期二, 27 八月 2024 13:05:29 +0800 Subject: [PATCH] 优化; --- PdmAlert/PdmAlert.csproj | 61 ++++++++++++++++++++++++++++++ 1 files changed, 60 insertions(+), 1 deletions(-) diff --git a/PdmAlert/PdmAlert.csproj b/PdmAlert/PdmAlert.csproj index 74f7194..924b67b 100644 --- a/PdmAlert/PdmAlert.csproj +++ b/PdmAlert/PdmAlert.csproj @@ -54,13 +54,26 @@ <ErrorReport>prompt</ErrorReport> <Prefer32Bit>true</Prefer32Bit> </PropertyGroup> + <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> + </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Drawing" /> + <Reference Include="System.Web" /> <Reference Include="System.Windows.Forms" /> <Reference Include="System.Xml" /> <Reference Include="Microsoft.CSharp" /> @@ -71,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" /> @@ -80,6 +96,8 @@ <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </ApplicationDefinition> + <Compile Include="ToolSetting.cs" /> + <Compile Include="Util.cs" /> <Page Include="LoginWindow.xaml"> <SubType>Designer</SubType> <Generator>MSBuild:Compile</Generator> @@ -93,6 +111,9 @@ <SubType>Code</SubType> </Compile> <Compile Include="DockApp.cs" /> + <Compile Include="Encryptor.cs" /> + <Compile Include="Entity\MsgData.cs" /> + <Compile Include="LoginUser.cs" /> <Compile Include="LoginWindow.xaml.cs"> <DependentUpon>LoginWindow.xaml</DependentUpon> </Compile> @@ -119,6 +140,11 @@ <Generator>ResXFileCodeGenerator</Generator> <LastGenOutput>Resources.Designer.cs</LastGenOutput> </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> @@ -127,11 +153,44 @@ <ItemGroup> <None Include="App.config" /> </ItemGroup> - <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