123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414 |
- <Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <OutputType>WinExe</OutputType>
- <TargetFrameworks>net47;</TargetFrameworks>
- <Nullable>disable</Nullable>
- <UseWPF>true</UseWPF>
- <UseWindowsForms>true</UseWindowsForms>
- <BulidIndex>0</BulidIndex>
- <VersionSuffix>$([System.DateTime]::Now.ToString(yyyy)).$([System.DateTime]::Now.ToString(MM)).$([System.DateTime]::Now.ToString(dd)).$(BulidIndex)</VersionSuffix>
- <AssemblyVersion Condition=" '$(VersionSuffix)' == '' ">0.0.0.1</AssemblyVersion>
- <AssemblyVersion Condition=" '$(VersionSuffix)' != '' ">$(VersionSuffix)</AssemblyVersion>
- <Version Condition=" '$(VersionSuffix)' == '' ">0.0.1.0</Version>
- <Version Condition=" '$(VersionSuffix)' != '' ">$(VersionSuffix)</Version>
- <AssemblyName>SCADA_DAQ3.0</AssemblyName>
- <Title>测试</Title>
- <Product>SCADA_DAQ</Product>
- <Company>SCADA_DAQ</Company>
- <Authors>SCADA_DAQ</Authors>
- <GenerateDocumentationFile>True</GenerateDocumentationFile>
- <PackageIcon>logo.ico</PackageIcon>
- <RepositoryUrl>https://gitee.com/cd200607139/scada_-daq3.0.git</RepositoryUrl>
- <ApplicationIcon>Icon\logo.ico</ApplicationIcon>
- </PropertyGroup>
- <ItemGroup>
- <Compile Remove="Properties\**" />
- <EmbeddedResource Remove="Properties\**" />
- <None Remove="Properties\**" />
- <Page Remove="Properties\**" />
- </ItemGroup>
- <ItemGroup>
- <Compile Remove="Machines\RpcClientService.cs" />
- </ItemGroup>
- <ItemGroup Condition="'$(TargetFramework)' == 'net6.0-windows7.0'">
- <PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
- <PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
- </ItemGroup>
- <ItemGroup>
- <None Remove="LocalApp.zip" />
- <None Remove="QwPlatform.zip" />
- </ItemGroup>
- <!--<ItemGroup Condition="'$(TargetFramework)' == 'net46'">
- <Reference Include="System.ComponentModel.DataAnnotations" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Opc.Ua.Core">
- <HintPath>..\Lib\$(TargetFramework)\Opc.Ua.Core.dll</HintPath>
- </Reference>
- <Reference Include="Opc.Ua.Client">
- <HintPath>..\Lib\$(TargetFramework)\Opc.Ua.Client.dll</HintPath>
- </Reference>
- </ItemGroup>-->
- <ItemGroup>
- <ProjectReference Include="..\SCADA_DAQ.DAL\SCADA_DAQ.DAL.csproj" />
- <ProjectReference Include="..\SCADA_DAQ.Language\SCADA_DAQ.Language.csproj" />
- </ItemGroup>
- <ItemGroup>
- <Reference Include="ControlzEx">
- <HintPath>..\Lib\ControlzEx.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="ICSharpCode.SharpZipLib">
- <HintPath>..\Lib\ICSharpCode.SharpZipLib.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="LibreHardwareMonitorLib">
- <HintPath>..\Lib\LibreHardwareMonitorLib.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="log4net">
- <HintPath>..\Lib\log4net.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="MahApps.Metro">
- <HintPath>..\Lib\MahApps.Metro.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="MahApps.Metro.IconPacks.Codicons">
- <HintPath>..\Lib\MahApps.Metro.IconPacks.Codicons.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="MahApps.Metro.IconPacks.Core">
- <HintPath>..\Lib\MahApps.Metro.IconPacks.Core.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="MahApps.Metro.IconPacks.Material">
- <HintPath>..\Lib\MahApps.Metro.IconPacks.Material.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="MahApps.Metro.IconPacks.RemixIcon">
- <HintPath>..\Lib\MahApps.Metro.IconPacks.RemixIcon.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="Microsoft.DwayneNeed">
- <HintPath>..\Lib\Microsoft.DwayneNeed.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Microsoft.DwayneNeed.Win32">
- <HintPath>..\Lib\Microsoft.DwayneNeed.Win32.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Microsoft.Expression.Interactions">
- <HintPath>..\Lib\Microsoft.Expression.Interactions.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Microsoft.Xaml.Behaviors">
- <HintPath>..\Lib\Microsoft.Xaml.Behaviors.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Mono.Security">
- <HintPath>..\Lib\Mono.Security.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="MySql.Data">
- <HintPath>..\Lib\MySql.Data.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Newtonsoft.Json">
- <HintPath>..\Lib\Newtonsoft.Json.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Npgsql">
- <HintPath>..\Lib\Npgsql.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="NPOI">
- <HintPath>..\Lib\NPOI.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="NPOI.OOXML">
- <HintPath>..\Lib\NPOI.OOXML.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="NPOI.OpenXml4Net">
- <HintPath>..\Lib\NPOI.OpenXml4Net.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="NPOI.OpenXmlFormats">
- <HintPath>..\Lib\NPOI.OpenXmlFormats.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Opc.Ua.Client">
- <HintPath>..\Lib\Opc.Ua.Client.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Opc.Ua.Configuration">
- <HintPath>..\Lib\Opc.Ua.Configuration.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Opc.Ua.Core">
- <HintPath>..\Lib\Opc.Ua.Core.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Opc.Ua.Server">
- <HintPath>..\Lib\Opc.Ua.Server.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Oracle.ManagedDataAccess">
- <HintPath>..\Lib\Oracle.ManagedDataAccess.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="QRCoder">
- <HintPath>..\Lib\QRCoder.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Quartz">
- <HintPath>..\Lib\Quartz.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="SCADA">
- <HintPath>..\Lib\SCADA.dll</HintPath>
- </Reference>
- <Reference Include="SCADA.CNC.FANUC">
- <HintPath>..\Lib\SCADA.CNC.FANUC.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="SCADA.CommonCtrl">
- <HintPath>..\Lib\SCADA.CommonCtrl.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="SCADA.CommonLib">
- <HintPath>..\Lib\SCADA.CommonLib.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="SCADA_DAQ.Plugin.Core">
- <HintPath>..\Lib\SCADA_DAQ.Plugin.Core.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="SCADA_DAQ.Plugin.CoreUI">
- <HintPath>..\Lib\SCADA_DAQ.Plugin.CoreUI.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="SCADA_DAQ.Plugin.Machine">
- <HintPath>..\Lib\SCADA_DAQ.Plugin.Machine.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="SCADA_DAQ.Plugin.MachineUI">
- <HintPath>..\Lib\SCADA_DAQ.Plugin.MachineUI.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="SCADA_DAQ.Plugin.RESTful">
- <HintPath>..\Lib\SCADA_DAQ.Plugin.RESTful.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="System.ComponentModel.DataAnnotations" />
- <Reference Include="System.Data.SQLite">
- <HintPath>..\Lib\System.Data.SQLite.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="System.Threading.Thread">
- <HintPath>..\Lib\System.Threading.Thread.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="System.ValueTuple">
- <HintPath>..\Lib\System.ValueTuple.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="System.Windows.Interactivity">
- <HintPath>..\Lib\System.Windows.Interactivity.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Xceed.Wpf.Toolkit">
- <HintPath>..\Lib\Xceed.Wpf.Toolkit.dll</HintPath>
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Update="LocalResource.Designer.cs">
- <DesignTime>True</DesignTime>
- <AutoGen>True</AutoGen>
- <DependentUpon>LocalResource.resx</DependentUpon>
- </Compile>
- <Compile Update="Machines\TagConstDefine.cs">
- <DesignTime>True</DesignTime>
- <AutoGen>True</AutoGen>
- <DependentUpon>TagConstDefine.tt</DependentUpon>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Update="LocalResource.resx">
- <Generator>ResXFileCodeGenerator</Generator>
- <LastGenOutput>LocalResource.Designer.cs</LastGenOutput>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <None Update="Machines\TagConstDefine.tt">
- <LastGenOutput>TagConstDefine.cs</LastGenOutput>
- <Generator>TextTemplatingFileGenerator</Generator>
- </None>
- <None Update="Tools\EICPDesk.exe">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </None>
- <None Update="Tools\screenshot.exe">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </None>
- <None Update="Tools\StartVPN.bat">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </None>
- <None Update="Tools\VPN05_1.pbk">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </None>
- <None Update="x64\SQLite.Interop.dll">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </None>
- <None Update="x86\SQLite.Interop.dll">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </None>
- </ItemGroup>
- <ItemGroup>
- <Folder Include="Customer\Dashboard\" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
- </ItemGroup>
- <Target Name="PostBuild" AfterTargets="PostBuildEvent">
- <Exec Command="goto label
:label
set ProjectId="00"
set TargetPath="D:\项目代码管理\发布管理\Updates\%25ProjectId%25$(TargetName)"
set SrcPath="$(TargetDir)"
set LibPath="$(SolutionDir)lib"
@echo %25LibPath%25
if not exist "%25TargetPath%25" md "%25TargetPath%25"
if not exist "%25TargetPath%25\Publish\" md "%25TargetPath%25\Publish\"
if not exist "%25TargetPath%25\Publish\SystemLibs\" md "%25TargetPath%25\Publish\SystemLibs\"
xcopy "%25SrcPath%25$(TargetName).pdb" "%25TargetPath%25\Publish\" /Y

if not exist "%25SrcPath%25\SystemLibs" md "%25SrcPath%25\SystemLibs"
del /f /q "%25SrcPath%25\SystemLibs\*.dll"
xcopy "%25SrcPath%25*System.*.dll" "%25SrcPath%25\SystemLibs" /Y
del /f /q "%25SrcPath%25*System.*.dll"
xcopy "%25SrcPath%25*Microsoft.*.dll" "%25SrcPath%25\SystemLibs" /Y
@rem del /f /q "%25SrcPath%25*.dll"
del /f /q "%25SrcPath%25\plugin\" 
xcopy "%25LibPath%25\*.dll" "%25SrcPath%25\plugin\" /Y
xcopy "%25LibPath%25\*.pdb" "%25SrcPath%25\plugin\" /Y

del /f /q "%25TargetPath%25\Publish\SystemLibs\Data\*.*"
del /f /q "%25TargetPath%25\Publish\SystemLibs\*.*"
del /f /q "%25TargetPath%25\Publish\plugin\*.*"
del /f /q "%25TargetPath%25\Publish\*.*"
xcopy "%25SrcPath%25SystemLibs\*.dll" "%25TargetPath%25\Publish\SystemLibs\" /Y
xcopy "%25SrcPath%25plugin\*.dll" "%25TargetPath%25\Publish\plugin\" /Y

xcopy "%25SrcPath%25*.dll" "%25TargetPath%25\Publish\" /Y
xcopy "%25SrcPath%25*\screenshot.exe" "%25TargetPath%25\Publish\" /Y
xcopy "%25SrcPath%25$(TargetFileName)" "%25TargetPath%25\Publish\" /Y
xcopy "%25SrcPath%25\$(TargetFileName)" "%25TargetPath%25\" /Y
xcopy "$(ProjectDir)\SCADA_DAQ.UpdateService.exe" "%25TargetPath%25\" /Y
xcopy "%25SrcPath%25\$(TargetFileName).config" "%25TargetPath%25\Publish\" /Y
xcopy "%25SrcPath%25\x86\*.*" "%25TargetPath%25\Publish\x86\" /Y
xcopy "%25SrcPath%25\x64\*.*" "%25TargetPath%25\Publish\x64\" /Y
if exist "%25SrcPath%25\HCNetSDKCom" xcopy "%25SrcPath%25\HCNetSDKCom\*.*" "%25TargetPath%25\Publish\HCNetSDKCom\" /Y
if exist "%25SrcPath%25\EmguSDK" xcopy "%25SrcPath%25\EmguSDK\*.*" "%25TargetPath%25\Publish\\EmguSDK\" /Y
if exist "$(ProjectDir)Content.zip" xcopy "$(ProjectDir)Content.zip" "%25TargetPath%25\Publish\" /Y
if exist "$(ProjectDir)Icon\logo.ico" echo F | xcopy "$(ProjectDir)Icon\logo.ico" "%25TargetPath%25\Publish\Content\Img\favicon.ico" /Y
if exist "$(ProjectDir)Icon\logo.ico" echo F | xcopy "$(ProjectDir)Icon\logo.ico" "$(OutDir)\Content\Img\favicon.ico" /Y
xcopy "$(ProjectDir)Icon\*.*" "%25TargetPath%25\Publish\Content\Img\" /Y
if exist "$(ProjectDir)Tools" echo F | xcopy "$(ProjectDir)Tools\*.*" "%25TargetPath%25\Publish\Tools\" /Y

xcopy "%25SrcPath%25\plugin\SCADA.CommonLib.dll" %25SrcPath%25 /Y
xcopy "%25SrcPath%25\plugin\SCADA.CommonCtrl.dll" %25SrcPath%25 /Y
xcopy "%25SrcPath%25\plugin\SCADA.dll" %25SrcPath%25 /Y
xcopy "%25SrcPath%25\plugin\Opc.Ua.*.dll" %25SrcPath%25 /Y
del /f /q "%25SrcPath%25\plugin\SCADA.CommonLib.dll"
del /f /q "%25SrcPath%25\plugin\SCADA.CommonCtrl.dll" 
del /f /q "%25SrcPath%25\plugin\SCADA.dll"
del /f /q "%25SrcPath%25\plugin\Opc.Ua.*.dll" 
" />
- </Target>
- <ItemGroup>
- <Reference Update="PresentationCore">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="PresentationFramework">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="System">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="System.Core">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="System.Data">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="System.Drawing">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="System.IO.Compression.FileSystem">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="System.Numerics">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="System.Runtime.Serialization">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="System.Windows.Controls.Ribbon">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="System.Windows.Forms">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="System.Xaml">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="System.Xml">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="System.Xml.Linq">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="UIAutomationClient">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="UIAutomationClientSideProviders">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="UIAutomationProvider">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="UIAutomationTypes">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="WindowsBase">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Reference Update="WindowsFormsIntegration">
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- </Project>
|