EfemDual_Setup.csproj 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <PropertyGroup>
  4. <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  5. <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
  6. <ProductVersion>8.0.30703</ProductVersion>
  7. <SchemaVersion>2.0</SchemaVersion>
  8. <ProjectGuid>{C87B8E5D-96D2-4DFF-B78F-4BF2E80C48A7}</ProjectGuid>
  9. <OutputType>WinExe</OutputType>
  10. <AppDesignerFolder>Properties</AppDesignerFolder>
  11. <RootNamespace>EfemDual_Setup</RootNamespace>
  12. <AssemblyName>EfemDual_Setup</AssemblyName>
  13. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  14. <TargetFrameworkProfile>Client</TargetFrameworkProfile>
  15. <FileAlignment>512</FileAlignment>
  16. </PropertyGroup>
  17. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
  18. <PlatformTarget>x86</PlatformTarget>
  19. <DebugSymbols>true</DebugSymbols>
  20. <DebugType>full</DebugType>
  21. <Optimize>false</Optimize>
  22. <OutputPath>bin\Debug\</OutputPath>
  23. <DefineConstants>DEBUG;TRACE</DefineConstants>
  24. <ErrorReport>prompt</ErrorReport>
  25. <WarningLevel>4</WarningLevel>
  26. </PropertyGroup>
  27. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
  28. <PlatformTarget>x86</PlatformTarget>
  29. <DebugType>pdbonly</DebugType>
  30. <Optimize>true</Optimize>
  31. <OutputPath>bin\Release\</OutputPath>
  32. <DefineConstants>TRACE</DefineConstants>
  33. <ErrorReport>prompt</ErrorReport>
  34. <WarningLevel>4</WarningLevel>
  35. </PropertyGroup>
  36. <PropertyGroup>
  37. <StartupObject />
  38. </PropertyGroup>
  39. <PropertyGroup>
  40. <ApplicationIcon>Setup.ico</ApplicationIcon>
  41. </PropertyGroup>
  42. <ItemGroup>
  43. <Reference Include="System" />
  44. <Reference Include="System.Core" />
  45. <Reference Include="System.Windows.Forms" />
  46. <Reference Include="System.Xml.Linq" />
  47. <Reference Include="System.Data.DataSetExtensions" />
  48. <Reference Include="Microsoft.CSharp" />
  49. <Reference Include="System.Data" />
  50. <Reference Include="System.Xml" />
  51. </ItemGroup>
  52. <ItemGroup>
  53. <Compile Include="Program.cs" />
  54. <Compile Include="Properties\AssemblyInfo.cs" />
  55. </ItemGroup>
  56. <ItemGroup>
  57. <Content Include="Format1.txt" />
  58. <Content Include="Format2.txt" />
  59. <Content Include="Setup.ico" />
  60. <Content Include="VerInfo.exe" />
  61. <Content Include="WinRAR.exe" />
  62. </ItemGroup>
  63. <ItemGroup>
  64. <None Include="Default.SFX" />
  65. </ItemGroup>
  66. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  67. <PropertyGroup>
  68. <PreBuildEvent>cd "$(ProjectDir)..\Packages\"
  69. del "EfemDualSetupPackages.exe"
  70. del "EfemDual_Setup*.exe"
  71. "$(ProjectDir)WinRAR.exe" a -z"$(ProjectDir)Format1.txt" -sfx -iicon"$(ProjectDir)setup.ico" -s "$(ProjectDir)..\Packages\EfemDualSetupPackages" "EfemDualRT" "EfemDualUI"
  72. </PreBuildEvent>
  73. </PropertyGroup>
  74. <PropertyGroup>
  75. <PostBuildEvent>echo 复制文件到安装目录,"$(ProjectDir)..\EfemDualSetup\Packages\"
  76. copy "$(TargetPath)" "$(ProjectDir)..\Packages\EfemDual_Setup_Temp.exe" /y
  77. cd "$(ProjectDir)..\Packages\"
  78. "$(ProjectDir)WinRAR.exe" a -z"$(ProjectDir)Format2.txt" -sfx -iicon"$(ProjectDir)setup.ico" -s "$(ProjectDir)..\Packages\EfemDual_Setup" "EfemDual_Setup_Temp.exe" "EfemDualSetupPackages.exe"
  79. REM 修改安装包文件名(加入版本信息)
  80. "$(ProjectDir)VerInfo.exe" "$(ProjectDir)..\Packages\EfemDualRT\EfemDualRT.exe" "$(ProjectDir)..\Packages\EfemDual_Setup.exe"
  81. REM 删除安装包制作的临时文件
  82. REM cd "$(ProjectDir)..\Packages\"
  83. REM rd "$(ProjectDir)..\Packages\EfemDualRT\" /s /q
  84. REM rd "$(ProjectDir)..\Packages\EfemDualUI\" /s /q
  85. del "$(ProjectDir)..\Packages\EfemDual_Setup_Temp.exe"
  86. del "$(ProjectDir)..\Packages\EfemDualSetupPackages.exe"
  87. </PostBuildEvent>
  88. </PropertyGroup>
  89. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  90. Other similar extension points exist, see Microsoft.Common.targets.
  91. <Target Name="BeforeBuild">
  92. </Target>
  93. <Target Name="AfterBuild">
  94. </Target>
  95. -->
  96. </Project>