Welcome to mirror list, hosted at ThFree Co, Russian Federation.

WindowsInstallers.proj « Windows « Installers « src - github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e0c1a5068eef0b720de27244cc95d608a197c6ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<Project>

  <ItemGroup>
    <!-- Build the ANCM custom action -->
    <InstallerProject Include="AspNetCoreModule-Setup/CustomAction/aspnetcoreCA.vcxproj" AdditionalProperties="Platform=x64" />
    <InstallerProject Include="AspNetCoreModule-Setup/CustomAction/aspnetcoreCA.vcxproj" AdditionalProperties="Platform=x86" />

    <!-- Build the ANCM msis -->
    <InstallerProject Include="AspNetCoreModule-Setup/ANCMIISExpressV1/AncmIISExpressV1.wixproj" AdditionalProperties="Platform=x64" />
    <InstallerProject Include="AspNetCoreModule-Setup/ANCMIISExpressV1/AncmIISExpressV1.wixproj" AdditionalProperties="Platform=x86" />
    <InstallerProject Include="AspNetCoreModule-Setup/ANCMV1/ANCMV1.wixproj" AdditionalProperties="Platform=x64" />
    <InstallerProject Include="AspNetCoreModule-Setup/ANCMV1/ANCMV1.wixproj" AdditionalProperties="Platform=x86" />

    <!-- Build the SharedFramework bundles-->
    <InstallerProject Include="SharedFrameworkBundle/SharedFrameworkBundle.wixproj" AdditionalProperties="Platform=x64" />
    <InstallerProject Include="SharedFrameworkBundle/SharedFrameworkBundle.wixproj" AdditionalProperties="Platform=x86" />

    <InstallerProject Include="*/*.wixproj" Exclude="@(InstallerProject);ancm/**/*" />

  </ItemGroup>

  <Target Name="Build" DependsOnTargets="UnzipSharedFx">
    <MSBuild Projects="@(InstallerProject)" Targets="Build" />
  </Target>

  <Target Name="Clean">
    <MSBuild Projects="@(InstallerProject)" Targets="Clean" />
  </Target>

  <Target Name="Restore">
    <MSBuild Projects="AspNetCoreModule-Setup/ANCMPackageResolver/ANCMPackageResolver.csproj" Targets="Restore" />
    <MSBuild Projects="@(InstallerProject)" Targets="Restore" />
  </Target>

  <Target Name="UnzipSharedFx">
    <Message Text="Unzipping x64 SharedFx to $(SharedFrameworkHarvestRootPath)x64" Importance="High" />

    <ItemGroup>
      <x64Archive Include="$(SharedFxDepsRoot)aspnetcore-runtime-internal-*-win-x64.zip" />
      <x86Archive Include="$(SharedFxDepsRoot)aspnetcore-runtime-internal-*-win-x86.zip" />
    </ItemGroup>

    <!-- We don't import version files here, so unzip whatever internal archives are in the .deps folder -->
    <Unzip
      SourceFiles="@(x64Archive)"
      DestinationFolder="$(SharedFrameworkHarvestRootPath)x64"
      Condition="!Exists('$(SharedFrameworkHarvestRootPath)x64/shared/')"
    />

    <Message Text="Unzipping x86 SharedFx to $(SharedFrameworkHarvestRootPath)x86" Importance="High" />

    <Unzip
      SourceFiles="@(x86Archive)"
      DestinationFolder="$(SharedFrameworkHarvestRootPath)x86"
      Condition="!Exists('$(SharedFrameworkHarvestRootPath)x86/shared/')"
    />
  </Target>

</Project>