Build SiteExtensions (#11409)
This commit is contained in:
parent
1552e9f842
commit
94f84c4776
|
|
@ -84,15 +84,12 @@ jobs:
|
||||||
displayName: Build x86
|
displayName: Build x86
|
||||||
|
|
||||||
# This is in a separate build step with -forceCoreMsbuild to workaround MAX_PATH limitations - https://github.com/Microsoft/msbuild/issues/53
|
# This is in a separate build step with -forceCoreMsbuild to workaround MAX_PATH limitations - https://github.com/Microsoft/msbuild/issues/53
|
||||||
# TODO: need to figure out how to make site extensions build with Arcade. See https://github.com/aspnet/AspNetCore/issues/11186
|
- script: .\src\SiteExtensions\build.cmd
|
||||||
# - script: ./build.cmd
|
-ci
|
||||||
# -ci
|
-pack
|
||||||
# -pack
|
-noBuildDeps
|
||||||
# -forceCoreMsbuild
|
$(_BuildArgs)
|
||||||
# -noBuildDeps
|
displayName: Build SiteExtension
|
||||||
# /p:BuildSiteExtensions=true
|
|
||||||
# $(_BuildArgs)
|
|
||||||
# displayName: Build SiteExtension
|
|
||||||
|
|
||||||
# This runs code-signing on all packages, zips, and jar files as defined in build/CodeSign.targets. If https://github.com/dotnet/arcade/issues/1957 is resolved,
|
# This runs code-signing on all packages, zips, and jar files as defined in build/CodeSign.targets. If https://github.com/dotnet/arcade/issues/1957 is resolved,
|
||||||
# consider running code-signing inline with the other previous steps.
|
# consider running code-signing inline with the other previous steps.
|
||||||
|
|
|
||||||
|
|
@ -90,12 +90,6 @@
|
||||||
Include="$(RepoRoot)src\Installers\Rpm\**\*.*proj" />
|
Include="$(RepoRoot)src\Installers\Rpm\**\*.*proj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition=" '$(BuildSiteExtensions)' == 'true' ">
|
|
||||||
<ProjectToBuild Include="$(RepoRoot)src\SiteExtensions\Runtime\Microsoft.AspNetCore.Runtime.SiteExtension.pkgproj" />
|
|
||||||
<ProjectToBuild Include="$(RepoRoot)src\SiteExtensions\LoggingBranch\LoggingBranch.csproj" />
|
|
||||||
<ProjectToBuild Include="$(RepoRoot)src\SiteExtensions\LoggingAggregate\src\Microsoft.AspNetCore.AzureAppServices.SiteExtension\Microsoft.AspNetCore.AzureAppServices.SiteExtension.csproj" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<NativeProjects Condition=" '$(TargetOsName)' == 'win' AND ('$(TargetArchitecture)' == 'x86' OR '$(TargetArchitecture)' == 'x64') "
|
<NativeProjects Condition=" '$(TargetOsName)' == 'win' AND ('$(TargetArchitecture)' == 'x86' OR '$(TargetArchitecture)' == 'x64') "
|
||||||
Include="$(RepoRoot)src\**\*.vcxproj" Exclude="@(ProjectToExclude)">
|
Include="$(RepoRoot)src\**\*.vcxproj" Exclude="@(ProjectToExclude)">
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
@ECHO OFF
|
||||||
|
SET RepoRoot=%~dp0..\..
|
||||||
|
|
||||||
|
ECHO Building Microsoft.AspNetCore.Runtime.SiteExtension
|
||||||
|
CALL %RepoRoot%\build.cmd -arch x64 -projects %~dp0Runtime\Microsoft.AspNetCore.Runtime.SiteExtension.pkgproj /bl:artifacts/log/SiteExtensions-Runtime-x64.binlog %*
|
||||||
|
CALL %RepoRoot%\build.cmd -arch x86 -projects %~dp0Runtime\Microsoft.AspNetCore.Runtime.SiteExtension.pkgproj /bl:artifacts/log/SiteExtensions-Runtime-x86.binlog %*
|
||||||
|
|
||||||
|
IF %ERRORLEVEL% NEQ 0 (
|
||||||
|
EXIT /b %ErrorLevel%
|
||||||
|
)
|
||||||
|
|
||||||
|
ECHO Building LoggingBranch
|
||||||
|
CALL %RepoRoot%\build.cmd -forceCoreMsbuild -arch x64 -projects %~dp0LoggingBranch\LB.csproj /bl:artifacts/log/SiteExtensions-LoggingBranch-x64.binlog %*
|
||||||
|
CALL %RepoRoot%\build.cmd -forceCoreMsbuild -arch x86 -projects %~dp0LoggingBranch\LB.csproj /bl:artifacts/log/SiteExtensions-LoggingBranch-x86.binlog %*
|
||||||
|
|
||||||
|
IF %ERRORLEVEL% NEQ 0 (
|
||||||
|
EXIT /b %ErrorLevel%
|
||||||
|
)
|
||||||
|
|
||||||
|
ECHO Building Microsoft.AspNetCore.AzureAppServices.SiteExtension
|
||||||
|
CALL %RepoRoot%\build.cmd -forceCoreMsbuild -projects %~dp0LoggingAggregate\src\Microsoft.AspNetCore.AzureAppServices.SiteExtension\Microsoft.AspNetCore.AzureAppServices.SiteExtension.csproj /bl:artifacts/log/SiteExtensions-LoggingAggregate.binlog %*
|
||||||
|
|
||||||
|
IF %ERRORLEVEL% NEQ 0 (
|
||||||
|
EXIT /b %ErrorLevel%
|
||||||
|
)
|
||||||
|
|
||||||
|
ECHO SiteExtensions successly built!
|
||||||
Loading…
Reference in New Issue