Build 3.1 site extension (#18568)
This commit is contained in:
parent
d05c9f465c
commit
ba74c35f0e
|
|
@ -21,7 +21,7 @@
|
||||||
<PackageBrandingVersion>$(VersionPrefix)</PackageBrandingVersion>
|
<PackageBrandingVersion>$(VersionPrefix)</PackageBrandingVersion>
|
||||||
<PackageBrandingVersion Condition=" '$(VersionSuffix)' != '' ">$(PackageBrandingVersion) $(BrandingVersionSuffix.Trim())</PackageBrandingVersion>
|
<PackageBrandingVersion Condition=" '$(VersionSuffix)' != '' ">$(PackageBrandingVersion) $(BrandingVersionSuffix.Trim())</PackageBrandingVersion>
|
||||||
|
|
||||||
<SiteExtensionSuffix>$(VersionPrefix)</SiteExtensionSuffix>
|
<SiteExtensionPackageVersion>$(VersionPrefix)</SiteExtensionPackageVersion>
|
||||||
<SiteExtensionPackageVersion Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix.Replace('.','-'))</SiteExtensionPackageVersion>
|
<SiteExtensionPackageVersion Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix.Replace('.','-'))</SiteExtensionPackageVersion>
|
||||||
|
|
||||||
<PackageVersion Condition=" '$(PackageVersion)' == '' ">$(Version)</PackageVersion>
|
<PackageVersion Condition=" '$(PackageVersion)' == '' ">$(Version)</PackageVersion>
|
||||||
|
|
|
||||||
|
|
@ -140,6 +140,7 @@
|
||||||
$(RepoRoot)src\Servers\**\*.csproj;
|
$(RepoRoot)src\Servers\**\*.csproj;
|
||||||
$(RepoRoot)src\Security\**\*.*proj;
|
$(RepoRoot)src\Security\**\*.*proj;
|
||||||
$(RepoRoot)src\SiteExtensions\Microsoft.Web.Xdt.Extensions\**\*.csproj;
|
$(RepoRoot)src\SiteExtensions\Microsoft.Web.Xdt.Extensions\**\*.csproj;
|
||||||
|
$(RepoRoot)src\SiteExtensions\LoggingAggregate\test\**\*.csproj;
|
||||||
$(RepoRoot)src\Shared\**\*.*proj;
|
$(RepoRoot)src\Shared\**\*.*proj;
|
||||||
$(RepoRoot)src\Tools\**\*.*proj;
|
$(RepoRoot)src\Tools\**\*.*proj;
|
||||||
$(RepoRoot)src\Middleware\**\*.csproj;
|
$(RepoRoot)src\Middleware\**\*.csproj;
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,9 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.2.1" Version="$(MicrosoftAspNetCoreAzureAppServicesSiteExtension21PackageVersion)" PrivateAssets="All" />
|
<Reference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.2.1" Version="$(MicrosoftAspNetCoreAzureAppServicesSiteExtension21PackageVersion)" PrivateAssets="All" />
|
||||||
<Reference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.2.2" Version="$(MicrosoftAspNetCoreAzureAppServicesSiteExtension22PackageVersion)" PrivateAssets="All" />
|
<Reference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.2.2" Version="$(MicrosoftAspNetCoreAzureAppServicesSiteExtension22PackageVersion)" PrivateAssets="All" />
|
||||||
|
<!-- When updating this add the previous SiteExtension(s) to the list above -->
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.3.1.x64" Version="$(PackageVersion)-$(_PreReleaseLabel)" PrivateAssets="All" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension.3.1.x86" Version="$(PackageVersion)-$(_PreReleaseLabel)" PrivateAssets="All" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ namespace Microsoft.AspNetCore.AzureAppServices.SiteExtension
|
||||||
var depsElement = envNode.FirstChild;
|
var depsElement = envNode.FirstChild;
|
||||||
Assert.Equal("add", depsElement.Name);
|
Assert.Equal("add", depsElement.Name);
|
||||||
Assert.Equal("DOTNET_ADDITIONAL_DEPS", depsElement.Attributes["name"].Value);
|
Assert.Equal("DOTNET_ADDITIONAL_DEPS", depsElement.Attributes["name"].Value);
|
||||||
Assert.Equal($@"{XdtExtensionPath}\additionalDeps\Microsoft.AspNetCore.AzureAppServices.HostingStartup\;" +
|
Assert.Equal($@"{XdtExtensionPath}\additionalDeps\;{XdtExtensionPath}\additionalDeps\Microsoft.AspNetCore.AzureAppServices.HostingStartup\;" +
|
||||||
@"%ProgramFiles%\dotnet\additionalDeps\Microsoft.AspNetCore.AzureAppServices.HostingStartup\",
|
@"%ProgramFiles%\dotnet\additionalDeps\Microsoft.AspNetCore.AzureAppServices.HostingStartup\",
|
||||||
depsElement.Attributes["value"].Value);
|
depsElement.Attributes["value"].Value);
|
||||||
|
|
||||||
|
|
@ -62,7 +62,7 @@ namespace Microsoft.AspNetCore.AzureAppServices.SiteExtension
|
||||||
Assert.Equal("add", depsElement.Name);
|
Assert.Equal("add", depsElement.Name);
|
||||||
Assert.Equal("DOTNET_ADDITIONAL_DEPS", depsElement.Attributes["name"].Value);
|
Assert.Equal("DOTNET_ADDITIONAL_DEPS", depsElement.Attributes["name"].Value);
|
||||||
Assert.Equal(@"ExistingValue1;"+
|
Assert.Equal(@"ExistingValue1;"+
|
||||||
$@"{XdtExtensionPath}\additionalDeps\Microsoft.AspNetCore.AzureAppServices.HostingStartup\;" +
|
$@"{XdtExtensionPath}\additionalDeps\;{XdtExtensionPath}\additionalDeps\Microsoft.AspNetCore.AzureAppServices.HostingStartup\;" +
|
||||||
@"%ProgramFiles%\dotnet\additionalDeps\Microsoft.AspNetCore.AzureAppServices.HostingStartup\",
|
@"%ProgramFiles%\dotnet\additionalDeps\Microsoft.AspNetCore.AzureAppServices.HostingStartup\",
|
||||||
depsElement.Attributes["value"].Value);
|
depsElement.Attributes["value"].Value);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,11 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<_TemplateFiles Include="$(MSBuildThisFileDirectory)\HostingStartup\*.cs*" />
|
<_TemplateFiles Include="$(MSBuildThisFileDirectory)\HostingStartup\*.cs*" />
|
||||||
|
<!--
|
||||||
|
Always use Major.Minor.0 so that if we have to produce a new SiteExtension during a patch build it will still work for non-patch runtimes.
|
||||||
|
i.e. 3.0.0 dotnet will search for 3.0.0 and below and wouldn't find a 3.0.1 folder path
|
||||||
|
Side effect, also removes the -ci or -servicing label.
|
||||||
|
-->
|
||||||
<_HostingStartupPackageReference
|
<_HostingStartupPackageReference
|
||||||
Include="%(HostingStartupPackageReference.Identity)"
|
Include="%(HostingStartupPackageReference.Identity)"
|
||||||
Source="%(HostingStartupPackageReference.Source)"
|
Source="%(HostingStartupPackageReference.Source)"
|
||||||
|
|
@ -50,7 +55,7 @@
|
||||||
Project="$(_DepsOutputDirectory)%(HostingStartupPackageReference.Identity)\HostingStartup.csproj"
|
Project="$(_DepsOutputDirectory)%(HostingStartupPackageReference.Identity)\HostingStartup.csproj"
|
||||||
DepsFile="$(_DepsOutputDirectory)%(HostingStartupPackageReference.Identity)\p\HostingStartup.deps.json"
|
DepsFile="$(_DepsOutputDirectory)%(HostingStartupPackageReference.Identity)\p\HostingStartup.deps.json"
|
||||||
TrimmedDepsFile="$(_DepsOutputDirectory)%(HostingStartupPackageReference.Identity)\%(HostingStartupPackageReference.Identity).deps.json"
|
TrimmedDepsFile="$(_DepsOutputDirectory)%(HostingStartupPackageReference.Identity)\%(HostingStartupPackageReference.Identity).deps.json"
|
||||||
PackagePath="$(_BasePackagePath)\shared\Microsoft.AspNetCore.App\$(MicrosoftAspNetCoreAppPackageVersion)\"
|
PackagePath="$(_BasePackagePath)\shared\Microsoft.AspNetCore.App\$(AspNetCoreMajorMinorVersion).0\"
|
||||||
/>
|
/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<MakeDir Directories="$(_DepsOutputDirectory)" />
|
<MakeDir Directories="$(_DepsOutputDirectory)" />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue