|
24 | 24 | </PropertyGroup>
|
25 | 25 |
|
26 | 26 | <ItemGroup>
|
| 27 | + <!-- |
| 28 | + Bundle in most down-level versions of the runtime-specific site extension packages. When updating |
| 29 | + $(DefaultNetCoreTargetFramework), add previous SiteExtension packages to the list below. Remove |
| 30 | + entries when packages aren't needed in the bundle anymore. |
| 31 | + --> |
27 | 32 | <Reference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.2.1" PrivateAssets="All" />
|
28 |
| - <Reference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.2.2" PrivateAssets="All" /> |
29 | 33 | <Reference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.3.1.x64" PrivateAssets="All" />
|
30 | 34 | <Reference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.3.1.x86" PrivateAssets="All" />
|
31 |
| - <!-- When updating this add the previous SiteExtension(s) to the list above --> |
32 |
| - <PackageReference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.5.0.x86" Version="$(PackageVersion)" PrivateAssets="All" /> |
33 |
| - <PackageReference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.5.0.x64" Version="$(PackageVersion)" PrivateAssets="All" /> |
| 35 | + <!-- |
| 36 | + Coming soon... |
| 37 | + <Reference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.5.0.x64" PrivateAssets="All" /> |
| 38 | + <Reference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.5.0.x86" PrivateAssets="All" /> |
| 39 | + --> |
| 40 | + <!-- |
| 41 | + Bundle the just-built LB.csproj package content into this one the easy way. See |
| 42 | + UpdateLatestPackageReferences for the hard way. |
| 43 | + --> |
| 44 | + <PackageReference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.$(AspNetCoreMajorMinorVersion).x64" |
| 45 | + Condition=" '$(IsShipping)' == 'false' " |
| 46 | + PrivateAssets="All" |
| 47 | + Version="$(PackageVersion)" /> |
| 48 | + <PackageReference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.$(AspNetCoreMajorMinorVersion).x86" |
| 49 | + Condition=" '$(IsShipping)' == 'false' " |
| 50 | + PrivateAssets="All" |
| 51 | + Version="$(PackageVersion)" /> |
34 | 52 | </ItemGroup>
|
35 | 53 |
|
36 | 54 | <ItemGroup>
|
|
43 | 61 | <Reference Include="Microsoft.Web.Xdt.Extensions" PrivateAssets="All" />
|
44 | 62 | </ItemGroup>
|
45 | 63 |
|
46 |
| - <Target Name="AddContent" BeforeTargets="_GetPackageFiles"> |
47 |
| - <!-- Cannot assume this project and LB.csproj have the same package version. --> |
| 64 | + <!-- |
| 65 | + Cannot assume this project and LB.csproj have the same package version because this creates a shipping |
| 66 | + package in non-preview builds and LB.csproj never creates a shipping package. |
| 67 | + --> |
| 68 | + <Target Name="UpdateLatestPackageReferences" |
| 69 | + BeforeTargets="CollectPackageReferences;ResolveAssemblyReferencesDesignTime;ResolveAssemblyReferences" |
| 70 | + Condition=" '$(IsShipping)' == 'true' "> |
48 | 71 | <!-- This target is defined in eng/targets/Packaging.targets and included in every C# and F# project. -->
|
49 | 72 | <MSBuild Projects="$(RepoRoot)src\SiteExtensions\LoggingBranch\LB.csproj"
|
50 | 73 | Targets="_GetPackageVersionInfo"
|
|
53 | 76 | </MSBuild>
|
54 | 77 |
|
55 | 78 | <ItemGroup>
|
56 |
| - <PackageReference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.3.1.x86" |
57 |
| - Version="%(_ResolvedPackageVersionInfo.PackageVersion)" |
58 |
| - PrivateAssets="All" /> |
59 |
| - <PackageReference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.3.1.x64" |
60 |
| - Version="%(_ResolvedPackageVersionInfo.PackageVersion)" |
61 |
| - PrivateAssets="All" /> |
| 79 | + <PackageReference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.$(AspNetCoreMajorMinorVersion).x64" |
| 80 | + PrivateAssets="All" |
| 81 | + Version="%(_ResolvedPackageVersionInfo.PackageVersion)" /> |
| 82 | + <PackageReference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.$(AspNetCoreMajorMinorVersion).x86" |
| 83 | + PrivateAssets="All" |
| 84 | + Version="%(_ResolvedPackageVersionInfo.PackageVersion)" /> |
62 | 85 | </ItemGroup>
|
| 86 | + </Target> |
63 | 87 |
|
| 88 | + <Target Name="AddContent" BeforeTargets="_GetPackageFiles"> |
64 | 89 | <ItemGroup>
|
65 |
| - <!-- LB.csproj package content is bundled into this one. --> |
66 |
| - <!-- The x64 & x86 SiteExtension packages have identical deps.json files - we only include the x64 files to avoid build warnings --> |
| 90 | + <!-- |
| 91 | + The x64 & x86 SiteExtension packages have identical deps.json files. We include only the x64 files to |
| 92 | + avoid build warnings. |
| 93 | + --> |
67 | 94 | <ContentFilesToPack
|
68 | 95 | Include="$(NugetPackageRoot)\%(PackageReference.Identity)\%(PackageReference.Version)\content\**\*.*"
|
69 | 96 | Exclude="$(NugetPackageRoot)\Microsoft.AspNetCore.AzureAppServices.SiteExtension.*.x86\**\Microsoft.AspNetCore.AzureAppServices.HostingStartup.deps.json"/>
|
|
0 commit comments