|
35 | 35 | <Compile Include="ANCM.wxs" />
|
36 | 36 | <Compile Include="Bundle.wxs" />
|
37 | 37 | <Compile Include="DotNetCore.wxs" />
|
| 38 | + <Compile Include="SharedFramework.wxs" /> |
38 | 39 | <EmbeddedResource Include="thm.wxl" />
|
39 | 40 | </ItemGroup>
|
40 | 41 |
|
|
53 | 54 | <Private>True</Private>
|
54 | 55 | <DoNotHarvest>true</DoNotHarvest>
|
55 | 56 | </ProjectReference>
|
56 |
| - <ProjectReference Include="..\SharedFrameworkLib\SharedFrameworkLib.wixproj"> |
57 |
| - <SetPlatform>Platform=x86</SetPlatform> |
58 |
| - <Name>SharedFrameworkLib_x86</Name> |
59 |
| - <Project>{5244BC49-2568-4701-80A6-EAB8950AB5FA}</Project> |
| 57 | + <ProjectReference Include="..\SharedFrameworkBundle\SharedFrameworkBundle.wixproj"> |
60 | 58 | <Private>True</Private>
|
61 |
| - <DoNotHarvest>true</DoNotHarvest> |
62 |
| - </ProjectReference> |
63 |
| - <ProjectReference Include="..\SharedFrameworkLib\SharedFrameworkLib.wixproj"> |
64 |
| - <SetPlatform>Platform=x64</SetPlatform> |
65 |
| - <Name>SharedFrameworkLib_x64</Name> |
66 |
| - <Project>{5244BC49-2568-4701-80A6-EAB8950AB5FA}</Project> |
67 |
| - <Private>True</Private> |
68 |
| - <DoNotHarvest>true</DoNotHarvest> |
| 59 | + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> |
69 | 60 | </ProjectReference>
|
70 | 61 | </ItemGroup>
|
71 | 62 |
|
|
77 | 68 | <PackageFileName>dotnet-hosting-$(PackageVersion)-win$(TargetExt)</PackageFileName>
|
78 | 69 |
|
79 | 70 | <BundleNameShort>Microsoft .NET $(PackageBrandingVersion)</BundleNameShort>
|
| 71 | + <SharedFxPackageVersion>$(PackageVersion)</SharedFxPackageVersion> |
| 72 | + <SharedFxMsiVersion>$(PackageVersion)</SharedFxMsiVersion> |
| 73 | + <SharedFxMsiVersion |
| 74 | + Condition="! $(PackageVersion.Contains('$(_PreReleaseLabel)'))">$(PackageVersion)-$(_PreReleaseLabel)$(_BuildNumberLabels)</SharedFxMsiVersion> |
80 | 75 | </PropertyGroup>
|
81 | 76 |
|
82 | 77 | <PropertyGroup>
|
|
93 | 88 | <BundleRegName>$(BundleNameFull)</BundleRegName>
|
94 | 89 | </PropertyGroup>
|
95 | 90 |
|
| 91 | + <ItemGroup> |
| 92 | + <SharedFxInstallers Include="$(InstallersOutputPath)$(RuntimeInstallerBaseName)-$(SharedFxPackageVersion)-win-x64.exe"> |
| 93 | + <TargetPlatform>x64</TargetPlatform> |
| 94 | + <BundleNameProperty>SharedFxRedistInstallerx64</BundleNameProperty> |
| 95 | + <Version>$(SharedFxPackageVersion)</Version> |
| 96 | + </SharedFxInstallers> |
| 97 | + <SharedFxInstallers Include="$(InstallersOutputPath)$(RuntimeInstallerBaseName)-$(SharedFxPackageVersion)-win-x86.exe"> |
| 98 | + <TargetPlatform>x86</TargetPlatform> |
| 99 | + <BundleNameProperty>SharedFxRedistInstallerx86</BundleNameProperty> |
| 100 | + <Version>$(SharedFxPackageVersion)</Version> |
| 101 | + </SharedFxInstallers> |
| 102 | + </ItemGroup> |
| 103 | + |
96 | 104 | <PropertyGroup>
|
97 | 105 | <DefineConstants>$(DefineConstants);BundleName=$(BundleName)</DefineConstants>
|
98 | 106 | <DefineConstants>$(DefineConstants);BundleNameFull=$(BundleNameFull)</DefineConstants>
|
|
104 | 112 | <DefineConstants>$(DefineConstants);BundleRegFamily=$(BundleRegFamily)</DefineConstants>
|
105 | 113 | <DefineConstants>$(DefineConstants);BundleRegName=$(BundleRegName)</DefineConstants>
|
106 | 114 | </PropertyGroup>
|
| 115 | + |
| 116 | + <Target Name="ExtractPropertiesFromSharedFxMsi" DependsOnTargets="FetchDependencies" AfterTargets="ResolveProjectReferences"> |
| 117 | + <!-- Create properties that holds the executable name. These are passed to the bundles so we can reference them as variables |
| 118 | + from inside the ExePackage authoring. --> |
| 119 | + <CreateProperty Value="%(SharedFxInstallers.Filename)%(Extension)"> |
| 120 | + <Output TaskParameter="Value" PropertyName="%(SharedFxInstallers.BundleNameProperty)"/> |
| 121 | + </CreateProperty> |
| 122 | + |
| 123 | + <ItemGroup> |
| 124 | + <SharedFxPayload Include="$(InstallersOutputPath)$(RuntimeInstallerBaseName)-$(SharedFxMsiVersion)-win-x64.msi"> |
| 125 | + <ProductVersionProperty>SharedFxInstallerProductVersionx64</ProductVersionProperty> |
| 126 | + <ProductCodeProperty>SharedFxInstallerProductCodex64</ProductCodeProperty> |
| 127 | + </SharedFxPayload> |
| 128 | + <SharedFxPayload Include="$(InstallersOutputPath)$(RuntimeInstallerBaseName)-$(SharedFxMsiVersion)-win-x86.msi"> |
| 129 | + <ProductVersionProperty>SharedFxInstallerProductVersionx86</ProductVersionProperty> |
| 130 | + <ProductCodeProperty>SharedFxInstallerProductCodex86</ProductCodeProperty> |
| 131 | + </SharedFxPayload> |
| 132 | + </ItemGroup> |
| 133 | + |
| 134 | + <!-- Read MSI properties --> |
| 135 | + <GetMsiProperty InstallPackage="%(SharedFxPayload.Identity)" Property="ProductVersion"> |
| 136 | + <Output TaskParameter="Value" PropertyName="%(ProductVersionProperty)" /> |
| 137 | + </GetMsiProperty> |
| 138 | + <GetMsiProperty InstallPackage="%(SharedFxPayload.Identity)" Property="ProductCode"> |
| 139 | + <Output TaskParameter="Value" PropertyName="%(ProductCodeProperty)" /> |
| 140 | + </GetMsiProperty> |
| 141 | + |
| 142 | + <PropertyGroup> |
| 143 | + <DefineConstants>$(DefineConstants);SharedFxRedistInstallerx64=$(SharedFxRedistInstallerx64)</DefineConstants> |
| 144 | + <DefineConstants>$(DefineConstants);SharedFxInstallerProductVersionx64=$(SharedFxInstallerProductVersionx64)</DefineConstants> |
| 145 | + <DefineConstants>$(DefineConstants);SharedFxInstallerProductCodex64=$(SharedFxInstallerProductCodex64)</DefineConstants> |
| 146 | + <DefineConstants>$(DefineConstants);SharedFxRedistInstallerx86=$(SharedFxRedistInstallerx86)</DefineConstants> |
| 147 | + <DefineConstants>$(DefineConstants);SharedFxInstallerProductVersionx86=$(SharedFxInstallerProductVersionx86)</DefineConstants> |
| 148 | + <DefineConstants>$(DefineConstants);SharedFxInstallerProductCodex86=$(SharedFxInstallerProductCodex86)</DefineConstants> |
| 149 | + </PropertyGroup> |
| 150 | + </Target> |
107 | 151 | </Project>
|
0 commit comments