Sic03/SicSetup/Sic_Setup/Sic_Setup.csproj

128 lines
5.0 KiB
XML
Raw Normal View History

2022-07-26 09:41:07 +08:00
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{C842F167-DB8E-4827-ACDD-74215AF5100A}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Sic_Setup</RootNamespace>
<AssemblyName>Sic_Setup</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Setup.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Format1.txt" />
<Content Include="Format2.txt" />
<Content Include="Setup.ico" />
<Content Include="VerInfo.exe" />
<Content Include="WinRAR.exe" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="Default.SFX" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>cd "$(ProjectDir)..\Packages\"
del "Sic03SetupPackages.exe"
del "Sic03_Setup*.exe"
"$(ProjectDir)WinRAR.exe" a -z"$(ProjectDir)Format1.txt" -sfx -iicon"$(ProjectDir)setup.ico" -s "$(ProjectDir)..\Packages\Sic03SetupPackages" "SicRT" "SicUI"
</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>echo 复制文件到安装目录,"$(ProjectDir)..\Sic03Setup\Packages\"
copy "$(TargetPath)" "$(ProjectDir)..\Packages\Sic03_Setup_Temp.exe" /y
cd "$(ProjectDir)..\Packages\"
"$(ProjectDir)WinRAR.exe" a -z"$(ProjectDir)Format2.txt" -sfx -iicon"$(ProjectDir)setup.ico" -s "$(ProjectDir)..\Packages\Sic03_Setup" "Sic03_Setup_Temp.exe" "Sic03SetupPackages.exe"
REM 修改安装包文件名(加入版本信息)
"$(ProjectDir)VerInfo.exe" "$(ProjectDir)..\Packages\SicRT\SicRT.exe" "$(ProjectDir)..\Packages\Sic03_Setup.exe"
REM 删除安装包制作的临时文件
REM cd "$(ProjectDir)..\Packages\"
REM rd "$(ProjectDir)..\Packages\SicRT\" /s /q
REM rd "$(ProjectDir)..\Packages\SicUI\" /s /q
del "$(ProjectDir)..\Packages\Sic03_Setup_Temp.exe"
del "$(ProjectDir)..\Packages\Sic03SetupPackages.exe"</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>