[master] Update dependencies from dotnet/arcade dotnet/aspnetcore-tooling (#21630)
* Update dependencies from https://github.com/dotnet/arcade build 20200511.9 - Microsoft.DotNet.Arcade.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 - Microsoft.DotNet.GenAPI: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 - Microsoft.DotNet.Helix.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 * Update dependencies from https://github.com/dotnet/aspnetcore-tooling build 20200514.6 Microsoft.AspNetCore.Mvc.Razor.Extensions , Microsoft.AspNetCore.Razor.Language , Microsoft.CodeAnalysis.Razor , Microsoft.NET.Sdk.Razor From Version 5.0.0-preview.5.20261.4 -> To Version 5.0.0-preview.6.20264.6 * Pre-emptively take -nobl change * Disable binlogs in CI * Fix build.sh to know about -nobl * Align build.ps1|sh with latest Arcade parameters - do not enable binary logs by default in CI builds - leave `-binaryLog` and `-excludeCIBinaryLog` handling to eng/common/tools.ps1|sh - was unnecessary since `-bl /bl:{some name}` worked fine, ignoring OOMs nit: document `-excludeCIBinarylog` a bit more * Do not pass unknown options into CodeCheck.ps1 * Pass `-ci -nobl` into remaining CI build jobs * Switch default TFM to `net5.0` * Update missing project templates tfms * Add more `-ci -nobl` - needed because _all_ builds in the pipeline are implicitly CI builds - default-build.yml adds `-ci` when script wasn't explicit * Default templates to net5.0 * PR feedback * Update TFMs in explicit .nuspec files * Update TFMs in test projects * Update TFMs in test C# code * Update TFMs in infrastructure files * Future-proof a check for `net5.0` or later - avoid comparisons involving `$(TargetFramework)` in .targets files - fine to compare it with `''` or `$(DefaultNetCoreTargetFramework)` * !fixup! Undo a couple of earlier fixes - remove a duplicate `$()` setting - correct the one remaining versioned `#if` define - did not make it `#if NETCOREAPP` because benchmarks test numerous .NET Core TFMs * Disable binary logs in CodeCheck.ps1 * Specify `-ci -nobl` just once when using `parameters.buildArgs` * Restore `$binaryLog` default logic Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com> Co-authored-by: Will Godbe <wigodbe@microsoft.com> Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
This commit is contained in:
parent
b02cce809a
commit
d5849f3534
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
jobName: Windows_Build
|
jobName: Windows_Build
|
||||||
jobDisplayName: "Build only : Windows"
|
jobDisplayName: "Build only : Windows"
|
||||||
agentOs: Windows
|
agentOs: Windows
|
||||||
buildArgs: -ci -all -pack
|
buildArgs: -all -pack
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: artifacts/
|
- path: artifacts/
|
||||||
includeForks: true
|
includeForks: true
|
||||||
|
|
|
||||||
|
|
@ -129,10 +129,10 @@ stages:
|
||||||
# The sign settings have been configured to
|
# The sign settings have been configured to
|
||||||
- script: ./build.cmd
|
- script: ./build.cmd
|
||||||
-ci
|
-ci
|
||||||
|
-nobl
|
||||||
-arch x64
|
-arch x64
|
||||||
-pack
|
-pack
|
||||||
-all
|
-all
|
||||||
/bl:artifacts/log/build.x64.binlog
|
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
$(_InternalRuntimeDownloadArgs)
|
$(_InternalRuntimeDownloadArgs)
|
||||||
displayName: Build x64
|
displayName: Build x64
|
||||||
|
|
@ -141,12 +141,12 @@ stages:
|
||||||
# This is going to actually build x86 native assets.
|
# This is going to actually build x86 native assets.
|
||||||
- script: ./build.cmd
|
- script: ./build.cmd
|
||||||
-ci
|
-ci
|
||||||
|
-nobl
|
||||||
-arch x86
|
-arch x86
|
||||||
-pack
|
-pack
|
||||||
-all
|
-all
|
||||||
-noBuildJava
|
-noBuildJava
|
||||||
/p:OnlyPackPlatformSpecificPackages=true
|
/p:OnlyPackPlatformSpecificPackages=true
|
||||||
/bl:artifacts/log/build.x86.binlog
|
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
$(_InternalRuntimeDownloadArgs)
|
$(_InternalRuntimeDownloadArgs)
|
||||||
displayName: Build x86
|
displayName: Build x86
|
||||||
|
|
@ -154,6 +154,7 @@ stages:
|
||||||
# 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
|
||||||
- script: .\src\SiteExtensions\build.cmd
|
- script: .\src\SiteExtensions\build.cmd
|
||||||
-ci
|
-ci
|
||||||
|
-nobl
|
||||||
-pack
|
-pack
|
||||||
-noBuildDeps
|
-noBuildDeps
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
|
|
@ -166,10 +167,10 @@ stages:
|
||||||
# Sign check is disabled because it is run in a separate step below, after installers are built.
|
# Sign check is disabled because it is run in a separate step below, after installers are built.
|
||||||
- script: ./build.cmd
|
- script: ./build.cmd
|
||||||
-ci
|
-ci
|
||||||
|
-nobl
|
||||||
-noBuild
|
-noBuild
|
||||||
-noRestore
|
-noRestore
|
||||||
-sign
|
-sign
|
||||||
/bl:artifacts/log/build.codesign.binlog
|
|
||||||
/p:DotNetSignType=$(_SignType)
|
/p:DotNetSignType=$(_SignType)
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
displayName: Code sign packages
|
displayName: Code sign packages
|
||||||
|
|
@ -177,9 +178,9 @@ stages:
|
||||||
# Windows installers bundle both x86 and x64 assets
|
# Windows installers bundle both x86 and x64 assets
|
||||||
- script: ./build.cmd
|
- script: ./build.cmd
|
||||||
-ci
|
-ci
|
||||||
|
-nobl
|
||||||
-sign
|
-sign
|
||||||
-buildInstallers
|
-buildInstallers
|
||||||
/bl:artifacts/log/installers.msbuild.binlog
|
|
||||||
/p:DotNetSignType=$(_SignType)
|
/p:DotNetSignType=$(_SignType)
|
||||||
/p:AssetManifestFileName=aspnetcore-win-x64-x86.xml
|
/p:AssetManifestFileName=aspnetcore-win-x64-x86.xml
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
|
|
@ -219,7 +220,6 @@ stages:
|
||||||
-pack
|
-pack
|
||||||
-noBuildNodeJS
|
-noBuildNodeJS
|
||||||
-noBuildJava
|
-noBuildJava
|
||||||
/bl:artifacts/log/build.win-arm.binlog
|
|
||||||
/p:DotNetSignType=$(_SignType)
|
/p:DotNetSignType=$(_SignType)
|
||||||
/p:OnlyPackPlatformSpecificPackages=true
|
/p:OnlyPackPlatformSpecificPackages=true
|
||||||
/p:AssetManifestFileName=aspnetcore-win-arm.xml
|
/p:AssetManifestFileName=aspnetcore-win-arm.xml
|
||||||
|
|
@ -249,7 +249,6 @@ stages:
|
||||||
-pack
|
-pack
|
||||||
-noBuildNodeJS
|
-noBuildNodeJS
|
||||||
-noBuildJava
|
-noBuildJava
|
||||||
/bl:artifacts/log/build.win-arm64.binlog
|
|
||||||
/p:DotNetSignType=$(_SignType)
|
/p:DotNetSignType=$(_SignType)
|
||||||
/p:OnlyPackPlatformSpecificPackages=true
|
/p:OnlyPackPlatformSpecificPackages=true
|
||||||
/p:AssetManifestFileName=aspnetcore-win-arm64.xml
|
/p:AssetManifestFileName=aspnetcore-win-arm64.xml
|
||||||
|
|
@ -280,7 +279,6 @@ stages:
|
||||||
--no-build-nodejs
|
--no-build-nodejs
|
||||||
--no-build-java
|
--no-build-java
|
||||||
-p:OnlyPackPlatformSpecificPackages=true
|
-p:OnlyPackPlatformSpecificPackages=true
|
||||||
-bl:artifacts/log/build.macos.binlog
|
|
||||||
-p:AssetManifestFileName=aspnetcore-MacOS_x64.xml
|
-p:AssetManifestFileName=aspnetcore-MacOS_x64.xml
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
$(_PublishArgs)
|
$(_PublishArgs)
|
||||||
|
|
@ -308,13 +306,13 @@ stages:
|
||||||
steps:
|
steps:
|
||||||
- script: ./build.sh
|
- script: ./build.sh
|
||||||
--ci
|
--ci
|
||||||
|
--nobl
|
||||||
--arch x64
|
--arch x64
|
||||||
--pack
|
--pack
|
||||||
--all
|
--all
|
||||||
--no-build-nodejs
|
--no-build-nodejs
|
||||||
--no-build-java
|
--no-build-java
|
||||||
-p:OnlyPackPlatformSpecificPackages=true
|
-p:OnlyPackPlatformSpecificPackages=true
|
||||||
-bl:artifacts/log/build.linux-x64.binlog
|
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
$(_InternalRuntimeDownloadArgs)
|
$(_InternalRuntimeDownloadArgs)
|
||||||
displayName: Run build.sh
|
displayName: Run build.sh
|
||||||
|
|
@ -322,6 +320,7 @@ stages:
|
||||||
git clean -xfd src/**/obj/
|
git clean -xfd src/**/obj/
|
||||||
./dockerbuild.sh bionic \
|
./dockerbuild.sh bionic \
|
||||||
--ci \
|
--ci \
|
||||||
|
--nobl \
|
||||||
--arch x64 \
|
--arch x64 \
|
||||||
--build-installers \
|
--build-installers \
|
||||||
--no-build-deps \
|
--no-build-deps \
|
||||||
|
|
@ -329,7 +328,6 @@ stages:
|
||||||
-p:OnlyPackPlatformSpecificPackages=true \
|
-p:OnlyPackPlatformSpecificPackages=true \
|
||||||
-p:BuildRuntimeArchive=false \
|
-p:BuildRuntimeArchive=false \
|
||||||
-p:LinuxInstallerType=deb \
|
-p:LinuxInstallerType=deb \
|
||||||
-bl:artifacts/log/build.deb.binlog \
|
|
||||||
$(_BuildArgs) \
|
$(_BuildArgs) \
|
||||||
$(_InternalRuntimeDownloadArgs)
|
$(_InternalRuntimeDownloadArgs)
|
||||||
displayName: Build Debian installers
|
displayName: Build Debian installers
|
||||||
|
|
@ -337,6 +335,7 @@ stages:
|
||||||
git clean -xfd src/**/obj/
|
git clean -xfd src/**/obj/
|
||||||
./dockerbuild.sh rhel \
|
./dockerbuild.sh rhel \
|
||||||
--ci \
|
--ci \
|
||||||
|
--nobl \
|
||||||
--arch x64 \
|
--arch x64 \
|
||||||
--build-installers \
|
--build-installers \
|
||||||
--no-build-deps \
|
--no-build-deps \
|
||||||
|
|
@ -344,7 +343,6 @@ stages:
|
||||||
-p:OnlyPackPlatformSpecificPackages=true \
|
-p:OnlyPackPlatformSpecificPackages=true \
|
||||||
-p:BuildRuntimeArchive=false \
|
-p:BuildRuntimeArchive=false \
|
||||||
-p:LinuxInstallerType=rpm \
|
-p:LinuxInstallerType=rpm \
|
||||||
-bl:artifacts/log/build.rpm.binlog \
|
|
||||||
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml \
|
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml \
|
||||||
$(_BuildArgs) \
|
$(_BuildArgs) \
|
||||||
$(_PublishArgs) \
|
$(_PublishArgs) \
|
||||||
|
|
@ -376,7 +374,6 @@ stages:
|
||||||
--no-build-nodejs
|
--no-build-nodejs
|
||||||
--no-build-java
|
--no-build-java
|
||||||
-p:OnlyPackPlatformSpecificPackages=true
|
-p:OnlyPackPlatformSpecificPackages=true
|
||||||
-bl:artifacts/log/build.linux-arm.binlog
|
|
||||||
-p:AssetManifestFileName=aspnetcore-Linux_arm.xml
|
-p:AssetManifestFileName=aspnetcore-Linux_arm.xml
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
$(_PublishArgs)
|
$(_PublishArgs)
|
||||||
|
|
@ -407,7 +404,6 @@ stages:
|
||||||
--no-build-nodejs
|
--no-build-nodejs
|
||||||
--no-build-java
|
--no-build-java
|
||||||
-p:OnlyPackPlatformSpecificPackages=true
|
-p:OnlyPackPlatformSpecificPackages=true
|
||||||
-bl:artifacts/log/build.arm64.binlog
|
|
||||||
-p:AssetManifestFileName=aspnetcore-Linux_arm64.xml
|
-p:AssetManifestFileName=aspnetcore-Linux_arm64.xml
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
$(_PublishArgs)
|
$(_PublishArgs)
|
||||||
|
|
@ -433,7 +429,6 @@ stages:
|
||||||
agentOs: Linux
|
agentOs: Linux
|
||||||
buildScript: ./dockerbuild.sh alpine
|
buildScript: ./dockerbuild.sh alpine
|
||||||
buildArgs:
|
buildArgs:
|
||||||
--ci
|
|
||||||
--arch x64
|
--arch x64
|
||||||
--os-name linux-musl
|
--os-name linux-musl
|
||||||
--pack
|
--pack
|
||||||
|
|
@ -441,7 +436,6 @@ stages:
|
||||||
--no-build-nodejs
|
--no-build-nodejs
|
||||||
--no-build-java
|
--no-build-java
|
||||||
-p:OnlyPackPlatformSpecificPackages=true
|
-p:OnlyPackPlatformSpecificPackages=true
|
||||||
-bl:artifacts/log/build.musl.binlog
|
|
||||||
-p:AssetManifestFileName=aspnetcore-Linux_musl_x64.xml
|
-p:AssetManifestFileName=aspnetcore-Linux_musl_x64.xml
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
$(_PublishArgs)
|
$(_PublishArgs)
|
||||||
|
|
@ -468,7 +462,6 @@ stages:
|
||||||
useHostedUbuntu: false
|
useHostedUbuntu: false
|
||||||
buildScript: ./dockerbuild.sh ubuntu-alpine37
|
buildScript: ./dockerbuild.sh ubuntu-alpine37
|
||||||
buildArgs:
|
buildArgs:
|
||||||
--ci
|
|
||||||
--arch arm64
|
--arch arm64
|
||||||
--os-name linux-musl
|
--os-name linux-musl
|
||||||
--pack
|
--pack
|
||||||
|
|
@ -476,7 +469,6 @@ stages:
|
||||||
--no-build-nodejs
|
--no-build-nodejs
|
||||||
--no-build-java
|
--no-build-java
|
||||||
-p:OnlyPackPlatformSpecificPackages=true
|
-p:OnlyPackPlatformSpecificPackages=true
|
||||||
-bl:artifacts/log/build.musl.binlog
|
|
||||||
-p:AssetManifestFileName=aspnetcore-Linux_musl_arm64.xml
|
-p:AssetManifestFileName=aspnetcore-Linux_musl_arm64.xml
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
$(_PublishArgs)
|
$(_PublishArgs)
|
||||||
|
|
@ -507,7 +499,7 @@ stages:
|
||||||
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
|
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
|
||||||
displayName: Setup IISExpress test certificates and schema
|
displayName: Setup IISExpress test certificates and schema
|
||||||
afterBuild:
|
afterBuild:
|
||||||
- powershell: "& ./build.ps1 -CI -NoBuild -Test /p:RunQuarantinedTests=true"
|
- powershell: "& ./build.ps1 -CI -nobl -NoBuild -Test /p:RunQuarantinedTests=true"
|
||||||
displayName: Run Quarantined Tests
|
displayName: Run Quarantined Tests
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
|
@ -538,11 +530,11 @@ stages:
|
||||||
agentOs: Windows
|
agentOs: Windows
|
||||||
isTestingJob: true
|
isTestingJob: true
|
||||||
steps:
|
steps:
|
||||||
- script: ./build.cmd -ci -all -pack $(_InternalRuntimeDownloadArgs)
|
- script: ./build.cmd -ci -nobl -all -pack $(_InternalRuntimeDownloadArgs)
|
||||||
displayName: Build Repo
|
displayName: Build Repo
|
||||||
- script: ./src/ProjectTemplates/build.cmd -ci -pack -NoRestore -NoBuilddeps "/p:RunTemplateTests=true /bl:artifacts/log/template.pack.binlog"
|
- script: ./src/ProjectTemplates/build.cmd -ci -nobl -pack -NoRestore -NoBuilddeps "/p:RunTemplateTests=true"
|
||||||
displayName: Pack Templates
|
displayName: Pack Templates
|
||||||
- script: ./src/ProjectTemplates/build.cmd -ci -test -NoRestore -NoBuild -NoBuilddeps "/p:RunTemplateTests=true /bl:artifacts/log/template.test.binlog"
|
- script: ./src/ProjectTemplates/build.cmd -ci -nobl -test -NoRestore -NoBuild -NoBuilddeps "/p:RunTemplateTests=true"
|
||||||
displayName: Test Templates
|
displayName: Test Templates
|
||||||
artifacts:
|
artifacts:
|
||||||
- name: Windows_Test_Templates_Dumps
|
- name: Windows_Test_Templates_Dumps
|
||||||
|
|
@ -570,11 +562,11 @@ stages:
|
||||||
- bash: "./eng/scripts/install-nginx-mac.sh"
|
- bash: "./eng/scripts/install-nginx-mac.sh"
|
||||||
displayName: Installing Nginx
|
displayName: Installing Nginx
|
||||||
afterBuild:
|
afterBuild:
|
||||||
- bash: ./build.sh --ci --pack --no-build --no-restore --no-build-deps "/bl:artifacts/log/packages.pack.binlog"
|
- bash: ./build.sh --ci --nobl --pack --no-build --no-restore --no-build-deps
|
||||||
displayName: Pack Packages (for Template tests)
|
displayName: Pack Packages (for Template tests)
|
||||||
- bash: ./src/ProjectTemplates/build.sh --ci --pack --no-restore --no-build-deps "/bl:artifacts/log/template.pack.binlog"
|
- bash: ./src/ProjectTemplates/build.sh --ci --nobl --pack --no-restore --no-build-deps
|
||||||
displayName: Pack Templates (for Template tests)
|
displayName: Pack Templates (for Template tests)
|
||||||
- bash: ./build.sh --no-build --ci --test -p:RunQuarantinedTests=true
|
- bash: ./build.sh --no-build --ci --nobl --test -p:RunQuarantinedTests=true
|
||||||
displayName: Run Quarantined Tests
|
displayName: Run Quarantined Tests
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
|
@ -608,11 +600,11 @@ stages:
|
||||||
- bash: "echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p"
|
- bash: "echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p"
|
||||||
displayName: Increase inotify limit
|
displayName: Increase inotify limit
|
||||||
afterBuild:
|
afterBuild:
|
||||||
- bash: ./build.sh --ci --pack --no-build --no-restore --no-build-deps "/bl:artifacts/log/packages.pack.binlog"
|
- bash: ./build.sh --ci --nobl --pack --no-build --no-restore --no-build-deps
|
||||||
displayName: Pack Packages (for Template tests)
|
displayName: Pack Packages (for Template tests)
|
||||||
- bash: ./src/ProjectTemplates/build.sh --ci --pack --no-restore --no-build-deps "/bl:artifacts/log/template.pack.binlog"
|
- bash: ./src/ProjectTemplates/build.sh --ci --nobl --pack --no-restore --no-build-deps
|
||||||
displayName: Pack Templates (for Template tests)
|
displayName: Pack Templates (for Template tests)
|
||||||
- bash: ./build.sh --no-build --ci --test -p:RunQuarantinedTests=true
|
- bash: ./build.sh --no-build --ci --nobl --test -p:RunQuarantinedTests=true
|
||||||
displayName: Run Quarantined Tests
|
displayName: Run Quarantined Tests
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
|
@ -641,11 +633,11 @@ stages:
|
||||||
timeoutInMinutes: 180
|
timeoutInMinutes: 180
|
||||||
steps:
|
steps:
|
||||||
# Build the shared framework
|
# Build the shared framework
|
||||||
- script: ./build.cmd -ci -all -pack -arch x64 /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log /bl:artifacts/log/helix.build.x64.binlog
|
- script: ./build.cmd -ci -nobl -all -pack -arch x64 /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
|
||||||
displayName: Build shared fx
|
displayName: Build shared fx
|
||||||
- script: .\restore.cmd -ci /p:BuildInteropProjects=true
|
- script: .\restore.cmd -ci -nobl /p:BuildInteropProjects=true
|
||||||
displayName: Restore interop projects
|
displayName: Restore interop projects
|
||||||
- script: .\build.cmd -ci -NoRestore -test -all -projects eng\helix\helix.proj /p:IsRequiredCheck=true /p:IsHelixJob=true /p:BuildInteropProjects=true /p:RunTemplateTests=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log -bl
|
- script: .\build.cmd -ci -nobl -NoRestore -test -all -projects eng\helix\helix.proj /p:IsRequiredCheck=true /p:IsHelixJob=true /p:BuildInteropProjects=true /p:RunTemplateTests=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
|
||||||
displayName: Run build.cmd helix target
|
displayName: Run build.cmd helix target
|
||||||
env:
|
env:
|
||||||
HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues
|
HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues
|
||||||
|
|
@ -665,11 +657,11 @@ stages:
|
||||||
timeoutInMinutes: 180
|
timeoutInMinutes: 180
|
||||||
steps:
|
steps:
|
||||||
# Build the shared framework
|
# Build the shared framework
|
||||||
- script: ./build.cmd -ci -all -pack -arch x64 /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log /bl:artifacts/log/helix.daily.build.x64.binlog
|
- script: ./build.cmd -ci -nobl -all -pack -arch x64 /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
|
||||||
displayName: Build shared fx
|
displayName: Build shared fx
|
||||||
- script: .\restore.cmd -ci /p:BuildInteropProjects=true
|
- script: .\restore.cmd -ci -nobl /p:BuildInteropProjects=true
|
||||||
displayName: Restore interop projects
|
displayName: Restore interop projects
|
||||||
- script: .\build.cmd -ci -NoRestore -test -all -projects eng\helix\helix.proj /p:IsHelixJob=true /p:IsHelixDaily=true /p:BuildInteropProjects=true /p:RunTemplateTests=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log -bl
|
- script: .\build.cmd -ci -nobl -NoRestore -test -all -projects eng\helix\helix.proj /p:IsHelixJob=true /p:IsHelixDaily=true /p:BuildInteropProjects=true /p:RunTemplateTests=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
|
||||||
displayName: Run build.cmd helix target
|
displayName: Run build.cmd helix target
|
||||||
env:
|
env:
|
||||||
HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues
|
HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues
|
||||||
|
|
@ -690,9 +682,9 @@ stages:
|
||||||
timeoutInMinutes: 180
|
timeoutInMinutes: 180
|
||||||
steps:
|
steps:
|
||||||
# Build the shared framework
|
# Build the shared framework
|
||||||
- script: ./restore.sh -ci
|
- script: ./restore.sh -ci -nobl
|
||||||
displayName: Restore
|
displayName: Restore
|
||||||
- script: ./build.sh -ci --arch arm64 -test --no-build-nodejs --all -projects $(Build.SourcesDirectory)/eng/helix/helix.proj /p:IsHelixJob=true /p:IsHelixDaily=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log -bl
|
- script: ./build.sh -ci --nobl --arch arm64 -test --no-build-nodejs --all -projects $(Build.SourcesDirectory)/eng/helix/helix.proj /p:IsHelixJob=true /p:IsHelixDaily=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
|
||||||
displayName: Run build.sh helix arm64 target
|
displayName: Run build.sh helix arm64 target
|
||||||
env:
|
env:
|
||||||
HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues
|
HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues
|
||||||
|
|
@ -729,7 +721,7 @@ stages:
|
||||||
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
|
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
|
||||||
env:
|
env:
|
||||||
Token: $(dn-bot-dnceng-artifact-feeds-rw)
|
Token: $(dn-bot-dnceng-artifact-feeds-rw)
|
||||||
- script: ./eng/scripts/ci-source-build.sh --ci --configuration Release /p:BuildManaged=true /p:BuildNodeJs=false
|
- script: ./eng/scripts/ci-source-build.sh --ci --nobl --configuration Release /p:BuildManaged=true /p:BuildNodeJs=false
|
||||||
displayName: Run ci-source-build.sh
|
displayName: Run ci-source-build.sh
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: Upload logs
|
displayName: Upload logs
|
||||||
|
|
|
||||||
|
|
@ -191,13 +191,13 @@ jobs:
|
||||||
- ${{ if eq(parameters.steps, '')}}:
|
- ${{ if eq(parameters.steps, '')}}:
|
||||||
- ${{ if eq(parameters.buildScript, '') }}:
|
- ${{ if eq(parameters.buildScript, '') }}:
|
||||||
- ${{ if eq(parameters.agentOs, 'Windows') }}:
|
- ${{ if eq(parameters.agentOs, 'Windows') }}:
|
||||||
- script: .\$(BuildDirectory)\build.cmd -ci /p:DotNetSignType=$(_SignType) -Configuration $(BuildConfiguration) $(BuildScriptArgs)
|
- script: .\$(BuildDirectory)\build.cmd -ci -nobl -Configuration $(BuildConfiguration) $(BuildScriptArgs) /p:DotNetSignType=$(_SignType)
|
||||||
displayName: Run build.cmd
|
displayName: Run build.cmd
|
||||||
- ${{ if ne(parameters.agentOs, 'Windows') }}:
|
- ${{ if ne(parameters.agentOs, 'Windows') }}:
|
||||||
- script: ./$(BuildDirectory)/build.sh -ci -configuration $(BuildConfiguration) $(BuildScriptArgs)
|
- script: ./$(BuildDirectory)/build.sh --ci --nobl --configuration $(BuildConfiguration) $(BuildScriptArgs)
|
||||||
displayName: Run build.sh
|
displayName: Run build.sh
|
||||||
- ${{ if ne(parameters.buildScript, '') }}:
|
- ${{ if ne(parameters.buildScript, '') }}:
|
||||||
- script: $(BuildScript) -Configuration $(BuildConfiguration) $(BuildScriptArgs)
|
- script: $(BuildScript) -ci -nobl -Configuration $(BuildConfiguration) $(BuildScriptArgs)
|
||||||
displayName: run $(BuildScript)
|
displayName: run $(BuildScript)
|
||||||
|
|
||||||
- ${{ parameters.afterBuild }}
|
- ${{ parameters.afterBuild }}
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
|
|
||||||
<IncludeSymbols>true</IncludeSymbols>
|
<IncludeSymbols>true</IncludeSymbols>
|
||||||
|
|
||||||
<DefaultNetCoreTargetFramework>netcoreapp5.0</DefaultNetCoreTargetFramework>
|
<DefaultNetCoreTargetFramework>net5.0</DefaultNetCoreTargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!-- Warnings and errors -->
|
<!-- Warnings and errors -->
|
||||||
|
|
|
||||||
18
build.ps1
18
build.ps1
|
|
@ -71,6 +71,9 @@ You can also use -NoBuildInstallers to suppress this project type.
|
||||||
.PARAMETER BinaryLog
|
.PARAMETER BinaryLog
|
||||||
Enable the binary logger
|
Enable the binary logger
|
||||||
|
|
||||||
|
.PARAMETER ExcludeCIBinarylog
|
||||||
|
Don't output binary log by default in CI builds (short: -nobl).
|
||||||
|
|
||||||
.PARAMETER Verbosity
|
.PARAMETER Verbosity
|
||||||
MSBuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]
|
MSBuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]
|
||||||
|
|
||||||
|
|
@ -151,6 +154,8 @@ param(
|
||||||
# Diagnostics
|
# Diagnostics
|
||||||
[Alias('bl')]
|
[Alias('bl')]
|
||||||
[switch]$BinaryLog,
|
[switch]$BinaryLog,
|
||||||
|
[Alias('nobl')]
|
||||||
|
[switch]$ExcludeCIBinarylog,
|
||||||
[Alias('v')]
|
[Alias('v')]
|
||||||
[string]$Verbosity = 'minimal',
|
[string]$Verbosity = 'minimal',
|
||||||
[switch]$DumpProcesses, # Capture all running processes and dump them to a file.
|
[switch]$DumpProcesses, # Capture all running processes and dump them to a file.
|
||||||
|
|
@ -344,11 +349,10 @@ if ($ForceCoreMsbuild) {
|
||||||
$msbuildEngine = 'dotnet'
|
$msbuildEngine = 'dotnet'
|
||||||
}
|
}
|
||||||
|
|
||||||
# Workaround Arcade check which asserts BinaryLog is true on CI.
|
# Ensure passing neither -bl nor -nobl on CI avoids errors in tools.ps1. This is needed because both parameters are
|
||||||
# We always use binlogs on CI, but we customize the name of the log file
|
# $false by default i.e. they always exist. (We currently avoid binary logs but that is made visible in the YAML.)
|
||||||
$tmpBinaryLog = $BinaryLog
|
if ($CI -and -not $excludeCIBinarylog) {
|
||||||
if ($CI) {
|
$binaryLog = $true
|
||||||
$BinaryLog = $true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# tools.ps1 corrupts global state, so reset these values in case they carried over from a previous build
|
# tools.ps1 corrupts global state, so reset these values in case they carried over from a previous build
|
||||||
|
|
@ -360,10 +364,6 @@ Remove-Item variable:global:_MSBuildExe -ea Ignore
|
||||||
# Import Arcade
|
# Import Arcade
|
||||||
. "$PSScriptRoot/eng/common/tools.ps1"
|
. "$PSScriptRoot/eng/common/tools.ps1"
|
||||||
|
|
||||||
if ($tmpBinaryLog) {
|
|
||||||
$MSBuildArguments += "/bl:$LogDir/Build.binlog"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Capture MSBuild crash logs
|
# Capture MSBuild crash logs
|
||||||
$env:MSBUILDDEBUGPATH = $LogDir
|
$env:MSBUILDDEBUGPATH = $LogDir
|
||||||
|
|
||||||
|
|
|
||||||
21
build.sh
21
build.sh
|
|
@ -12,7 +12,8 @@ YELLOW="\033[0;33m"
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
target_os_name=''
|
target_os_name=''
|
||||||
ci=false
|
ci=false
|
||||||
use_default_binary_log=false
|
binary_log=false
|
||||||
|
exclude_ci_binary_log=false
|
||||||
verbosity='minimal'
|
verbosity='minimal'
|
||||||
run_restore=''
|
run_restore=''
|
||||||
run_build=true
|
run_build=true
|
||||||
|
|
@ -73,6 +74,7 @@ Options:
|
||||||
|
|
||||||
--ci Apply CI specific settings and environment variables.
|
--ci Apply CI specific settings and environment variables.
|
||||||
--binarylog|-bl Use a binary logger
|
--binarylog|-bl Use a binary logger
|
||||||
|
--excludeCIBinarylog Don't output binary log by default in CI builds (short: -nobl).
|
||||||
--verbosity|-v MSBuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]
|
--verbosity|-v MSBuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]
|
||||||
|
|
||||||
--dotnet-runtime-source-feed Additional feed that can be used when downloading .NET runtimes
|
--dotnet-runtime-source-feed Additional feed that can be used when downloading .NET runtimes
|
||||||
|
|
@ -202,7 +204,10 @@ while [[ $# -gt 0 ]]; do
|
||||||
ci=true
|
ci=true
|
||||||
;;
|
;;
|
||||||
-binarylog|-bl)
|
-binarylog|-bl)
|
||||||
use_default_binary_log=true
|
binary_log=true
|
||||||
|
;;
|
||||||
|
-excludeCIBinarylog|-nobl)
|
||||||
|
exclude_ci_binary_log=true
|
||||||
;;
|
;;
|
||||||
-dotnet-runtime-source-feed|-dotnetruntimesourcefeed)
|
-dotnet-runtime-source-feed|-dotnetruntimesourcefeed)
|
||||||
shift
|
shift
|
||||||
|
|
@ -309,10 +314,10 @@ export MSBUILDDISABLENODEREUSE=1
|
||||||
# Fixing this is tracked by https://github.com/dotnet/aspnetcore-internal/issues/601
|
# Fixing this is tracked by https://github.com/dotnet/aspnetcore-internal/issues/601
|
||||||
warn_as_error=false
|
warn_as_error=false
|
||||||
|
|
||||||
# Workaround Arcade check which asserts BinaryLog is true on CI.
|
# Ensure passing neither --bl nor --nobl on CI avoids errors in tools.sh. This is needed because we set both variables
|
||||||
# We always use binlogs on CI, but we customize the name of the log file
|
# to false by default i.e. they always exist. (We currently avoid binary logs but that is made visible in the YAML.)
|
||||||
if [ "$ci" = true ]; then
|
if [[ "$ci" == true && "$exclude_ci_binary_log" == false ]]; then
|
||||||
binary_log=true
|
binary_log=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# increase file descriptor limit on macOS
|
# increase file descriptor limit on macOS
|
||||||
|
|
@ -323,10 +328,6 @@ fi
|
||||||
# Import Arcade
|
# Import Arcade
|
||||||
. "$DIR/eng/common/tools.sh"
|
. "$DIR/eng/common/tools.sh"
|
||||||
|
|
||||||
if [ "$use_default_binary_log" = true ]; then
|
|
||||||
msbuild_args[${#msbuild_args[*]}]="-bl:\"$log_dir/Build.binlog\""
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Capture MSBuild crash logs
|
# Capture MSBuild crash logs
|
||||||
export MSBUILDDEBUGPATH="$log_dir"
|
export MSBUILDDEBUGPATH="$log_dir"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<RepoTasks.RemoveSharedFrameworkDependencies Condition="@(_BuildOutput->Count()) != 0"
|
<RepoTasks.RemoveSharedFrameworkDependencies Condition="@(_BuildOutput->Count()) != 0"
|
||||||
Files="@(_BuildOutput)"
|
Files="@(_BuildOutput)"
|
||||||
FrameworkOnlyPackages="@(AspNetCoreAppReference)"
|
FrameworkOnlyPackages="@(AspNetCoreAppReference)"
|
||||||
SharedFrameworkTargetFramework="netcoreapp$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion)" />
|
SharedFrameworkTargetFramework="net$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -13,21 +13,21 @@
|
||||||
<Uri>https://github.com/dotnet/blazor</Uri>
|
<Uri>https://github.com/dotnet/blazor</Uri>
|
||||||
<Sha>dd7fb4d3931d556458f62642c2edfc59f6295bfb</Sha>
|
<Sha>dd7fb4d3931d556458f62642c2edfc59f6295bfb</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.AspNetCore.Razor.Language" Version="5.0.0-preview.5.20261.4">
|
<Dependency Name="Microsoft.AspNetCore.Razor.Language" Version="5.0.0-preview.6.20264.6">
|
||||||
<Uri>https://github.com/dotnet/aspnetcore-tooling</Uri>
|
<Uri>https://github.com/dotnet/aspnetcore-tooling</Uri>
|
||||||
<Sha>27a14af36aba89c11c5b9964774fa555fde08a52</Sha>
|
<Sha>924ca9acf9c5a84e8fc08143c345ffe7968e9882</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.AspNetCore.Mvc.Razor.Extensions" Version="5.0.0-preview.5.20261.4">
|
<Dependency Name="Microsoft.AspNetCore.Mvc.Razor.Extensions" Version="5.0.0-preview.6.20264.6">
|
||||||
<Uri>https://github.com/dotnet/aspnetcore-tooling</Uri>
|
<Uri>https://github.com/dotnet/aspnetcore-tooling</Uri>
|
||||||
<Sha>27a14af36aba89c11c5b9964774fa555fde08a52</Sha>
|
<Sha>924ca9acf9c5a84e8fc08143c345ffe7968e9882</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.CodeAnalysis.Razor" Version="5.0.0-preview.5.20261.4">
|
<Dependency Name="Microsoft.CodeAnalysis.Razor" Version="5.0.0-preview.6.20264.6">
|
||||||
<Uri>https://github.com/dotnet/aspnetcore-tooling</Uri>
|
<Uri>https://github.com/dotnet/aspnetcore-tooling</Uri>
|
||||||
<Sha>27a14af36aba89c11c5b9964774fa555fde08a52</Sha>
|
<Sha>924ca9acf9c5a84e8fc08143c345ffe7968e9882</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.NET.Sdk.Razor" Version="5.0.0-preview.5.20261.4">
|
<Dependency Name="Microsoft.NET.Sdk.Razor" Version="5.0.0-preview.6.20264.6">
|
||||||
<Uri>https://github.com/dotnet/aspnetcore-tooling</Uri>
|
<Uri>https://github.com/dotnet/aspnetcore-tooling</Uri>
|
||||||
<Sha>27a14af36aba89c11c5b9964774fa555fde08a52</Sha>
|
<Sha>924ca9acf9c5a84e8fc08143c345ffe7968e9882</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="dotnet-ef" Version="5.0.0-preview.6.20264.1">
|
<Dependency Name="dotnet-ef" Version="5.0.0-preview.6.20264.1">
|
||||||
<Uri>https://github.com/dotnet/efcore</Uri>
|
<Uri>https://github.com/dotnet/efcore</Uri>
|
||||||
|
|
@ -300,17 +300,17 @@
|
||||||
<Uri>https://github.com/dotnet/runtime</Uri>
|
<Uri>https://github.com/dotnet/runtime</Uri>
|
||||||
<Sha>09ee4814cb669e4b703a458c63483fa75a47c58f</Sha>
|
<Sha>09ee4814cb669e4b703a458c63483fa75a47c58f</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.GenAPI" Version="5.0.0-beta.20228.4">
|
<Dependency Name="Microsoft.DotNet.GenAPI" Version="5.0.0-beta.20261.9">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>590a102630c7efc7ca6f652f7c6c47dee4c4086c</Sha>
|
<Sha>898e51ed5fdcc4871087ac5754ca9056e58e575d</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20228.4">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20261.9">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>590a102630c7efc7ca6f652f7c6c47dee4c4086c</Sha>
|
<Sha>898e51ed5fdcc4871087ac5754ca9056e58e575d</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="5.0.0-beta.20228.4">
|
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="5.0.0-beta.20261.9">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>590a102630c7efc7ca6f652f7c6c47dee4c4086c</Sha>
|
<Sha>898e51ed5fdcc4871087ac5754ca9056e58e575d</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="3.7.0-2.20259.1" CoherentParentDependency="Microsoft.AspNetCore.Razor.Language">
|
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="3.7.0-2.20259.1" CoherentParentDependency="Microsoft.AspNetCore.Razor.Language">
|
||||||
<Uri>https://github.com/dotnet/roslyn</Uri>
|
<Uri>https://github.com/dotnet/roslyn</Uri>
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
-->
|
-->
|
||||||
<PropertyGroup Label="Automated">
|
<PropertyGroup Label="Automated">
|
||||||
<!-- Packages from dotnet/arcade -->
|
<!-- Packages from dotnet/arcade -->
|
||||||
<MicrosoftDotNetGenAPIPackageVersion>5.0.0-beta.20228.4</MicrosoftDotNetGenAPIPackageVersion>
|
<MicrosoftDotNetGenAPIPackageVersion>5.0.0-beta.20261.9</MicrosoftDotNetGenAPIPackageVersion>
|
||||||
<!-- Packages from dotnet/roslyn -->
|
<!-- Packages from dotnet/roslyn -->
|
||||||
<MicrosoftNetCompilersToolsetPackageVersion>3.7.0-2.20259.1</MicrosoftNetCompilersToolsetPackageVersion>
|
<MicrosoftNetCompilersToolsetPackageVersion>3.7.0-2.20259.1</MicrosoftNetCompilersToolsetPackageVersion>
|
||||||
<!-- Packages from dotnet/runtime -->
|
<!-- Packages from dotnet/runtime -->
|
||||||
|
|
@ -137,10 +137,10 @@
|
||||||
<MicrosoftEntityFrameworkCoreToolsPackageVersion>5.0.0-preview.6.20264.1</MicrosoftEntityFrameworkCoreToolsPackageVersion>
|
<MicrosoftEntityFrameworkCoreToolsPackageVersion>5.0.0-preview.6.20264.1</MicrosoftEntityFrameworkCoreToolsPackageVersion>
|
||||||
<MicrosoftEntityFrameworkCorePackageVersion>5.0.0-preview.6.20264.1</MicrosoftEntityFrameworkCorePackageVersion>
|
<MicrosoftEntityFrameworkCorePackageVersion>5.0.0-preview.6.20264.1</MicrosoftEntityFrameworkCorePackageVersion>
|
||||||
<!-- Packages from dotnet/aspnetcore-tooling -->
|
<!-- Packages from dotnet/aspnetcore-tooling -->
|
||||||
<MicrosoftAspNetCoreMvcRazorExtensionsPackageVersion>5.0.0-preview.5.20261.4</MicrosoftAspNetCoreMvcRazorExtensionsPackageVersion>
|
<MicrosoftAspNetCoreMvcRazorExtensionsPackageVersion>5.0.0-preview.6.20264.6</MicrosoftAspNetCoreMvcRazorExtensionsPackageVersion>
|
||||||
<MicrosoftAspNetCoreRazorLanguagePackageVersion>5.0.0-preview.5.20261.4</MicrosoftAspNetCoreRazorLanguagePackageVersion>
|
<MicrosoftAspNetCoreRazorLanguagePackageVersion>5.0.0-preview.6.20264.6</MicrosoftAspNetCoreRazorLanguagePackageVersion>
|
||||||
<MicrosoftCodeAnalysisRazorPackageVersion>5.0.0-preview.5.20261.4</MicrosoftCodeAnalysisRazorPackageVersion>
|
<MicrosoftCodeAnalysisRazorPackageVersion>5.0.0-preview.6.20264.6</MicrosoftCodeAnalysisRazorPackageVersion>
|
||||||
<MicrosoftNETSdkRazorPackageVersion>5.0.0-preview.5.20261.4</MicrosoftNETSdkRazorPackageVersion>
|
<MicrosoftNETSdkRazorPackageVersion>5.0.0-preview.6.20264.6</MicrosoftNETSdkRazorPackageVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,17 +40,22 @@
|
||||||
<PackageReference Include="Internal.AspNetCore.BuildTasks" PrivateAssets="All" Version="$(InternalAspNetCoreBuildTasksPackageVersion)" IsImplicitlyDefined="true" />
|
<PackageReference Include="Internal.AspNetCore.BuildTasks" PrivateAssets="All" Version="$(InternalAspNetCoreBuildTasksPackageVersion)" IsImplicitlyDefined="true" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<KnownAppHostPackOrFrameworkReferenceTfm>$(DefaultNetCoreTargetFramework)</KnownAppHostPackOrFrameworkReferenceTfm>
|
||||||
|
<KnownAppHostPackOrFrameworkReferenceTfm Condition="'$(KnownAppHostPackOrFrameworkReferenceTfm)' == 'net5.0'">netcoreapp5.0</KnownAppHostPackOrFrameworkReferenceTfm>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<!-- Workaround when there is no vNext SDK available, copy known apphost/framework reference info from 3.0 -->
|
<!-- Workaround when there is no vNext SDK available, copy known apphost/framework reference info from 3.1 -->
|
||||||
<KnownAppHostPack
|
<KnownAppHostPack
|
||||||
Include="@(KnownAppHostPack->WithMetadataValue('TargetFramework', 'netcoreapp3.0'))"
|
Include="@(KnownAppHostPack->WithMetadataValue('TargetFramework', 'netcoreapp3.1'))"
|
||||||
TargetFramework="$(DefaultNetCoreTargetFramework)"
|
TargetFramework="$(KnownAppHostPackOrFrameworkReferenceTfm)"
|
||||||
Condition="@(KnownAppHostPack->Count()) != '0' AND !(@(KnownAppHostPack->AnyHaveMetadataValue('TargetFramework', '$(DefaultNetCoreTargetFramework)')))"
|
Condition="@(KnownAppHostPack->Count()) != '0' AND !(@(KnownAppHostPack->AnyHaveMetadataValue('TargetFramework', '$(KnownAppHostPackOrFrameworkReferenceTfm)')))"
|
||||||
/>
|
/>
|
||||||
<KnownFrameworkReference
|
<KnownFrameworkReference
|
||||||
Include="@(KnownFrameworkReference->WithMetadataValue('TargetFramework', 'netcoreapp3.0'))"
|
Include="@(KnownFrameworkReference->WithMetadataValue('TargetFramework', 'netcoreapp3.1'))"
|
||||||
TargetFramework="$(DefaultNetCoreTargetFramework)"
|
TargetFramework="$(KnownAppHostPackOrFrameworkReferenceTfm)"
|
||||||
Condition="@(KnownFrameworkReference->Count()) != '0' AND !(@(KnownFrameworkReference->AnyHaveMetadataValue('TargetFramework', '$(DefaultNetCoreTargetFramework)')))"
|
Condition="@(KnownFrameworkReference->Count()) != '0' AND !(@(KnownFrameworkReference->AnyHaveMetadataValue('TargetFramework', '$(KnownAppHostPackOrFrameworkReferenceTfm)')))"
|
||||||
/>
|
/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ Param(
|
||||||
[switch] $publish,
|
[switch] $publish,
|
||||||
[switch] $clean,
|
[switch] $clean,
|
||||||
[switch][Alias('bl')]$binaryLog,
|
[switch][Alias('bl')]$binaryLog,
|
||||||
|
[switch][Alias('nobl')]$excludeCIBinarylog,
|
||||||
[switch] $ci,
|
[switch] $ci,
|
||||||
[switch] $prepareMachine,
|
[switch] $prepareMachine,
|
||||||
[switch] $help,
|
[switch] $help,
|
||||||
|
|
@ -58,6 +59,7 @@ function Print-Usage() {
|
||||||
Write-Host "Advanced settings:"
|
Write-Host "Advanced settings:"
|
||||||
Write-Host " -projects <value> Semi-colon delimited list of sln/proj's to build. Globbing is supported (*.sln)"
|
Write-Host " -projects <value> Semi-colon delimited list of sln/proj's to build. Globbing is supported (*.sln)"
|
||||||
Write-Host " -ci Set when running on CI server"
|
Write-Host " -ci Set when running on CI server"
|
||||||
|
Write-Host " -excludeCIBinarylog Don't output binary log (short: -nobl)"
|
||||||
Write-Host " -prepareMachine Prepare machine for CI run, clean up processes after build"
|
Write-Host " -prepareMachine Prepare machine for CI run, clean up processes after build"
|
||||||
Write-Host " -warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
|
Write-Host " -warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
|
||||||
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
|
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
|
||||||
|
|
@ -134,7 +136,9 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($ci) {
|
if ($ci) {
|
||||||
$binaryLog = $true
|
if (-not $excludeCIBinarylog) {
|
||||||
|
$binaryLog = $true
|
||||||
|
}
|
||||||
$nodeReuse = $false
|
$nodeReuse = $false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ usage()
|
||||||
echo "Advanced settings:"
|
echo "Advanced settings:"
|
||||||
echo " --projects <value> Project or solution file(s) to build"
|
echo " --projects <value> Project or solution file(s) to build"
|
||||||
echo " --ci Set when running on CI server"
|
echo " --ci Set when running on CI server"
|
||||||
|
echo " --excludeCIBinarylog Don't output binary log (short: -nobl)"
|
||||||
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
|
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
|
||||||
echo " --nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
|
echo " --nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
|
||||||
echo " --warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
|
echo " --warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
|
||||||
|
|
@ -68,6 +69,7 @@ clean=false
|
||||||
warn_as_error=true
|
warn_as_error=true
|
||||||
node_reuse=true
|
node_reuse=true
|
||||||
binary_log=false
|
binary_log=false
|
||||||
|
exclude_ci_binary_log=false
|
||||||
pipelines_log=false
|
pipelines_log=false
|
||||||
|
|
||||||
projects=''
|
projects=''
|
||||||
|
|
@ -98,6 +100,9 @@ while [[ $# > 0 ]]; do
|
||||||
-binarylog|-bl)
|
-binarylog|-bl)
|
||||||
binary_log=true
|
binary_log=true
|
||||||
;;
|
;;
|
||||||
|
-excludeCIBinarylog|-nobl)
|
||||||
|
exclude_ci_binary_log=true
|
||||||
|
;;
|
||||||
-pipelineslog|-pl)
|
-pipelineslog|-pl)
|
||||||
pipelines_log=true
|
pipelines_log=true
|
||||||
;;
|
;;
|
||||||
|
|
@ -156,8 +161,10 @@ done
|
||||||
|
|
||||||
if [[ "$ci" == true ]]; then
|
if [[ "$ci" == true ]]; then
|
||||||
pipelines_log=true
|
pipelines_log=true
|
||||||
binary_log=true
|
|
||||||
node_reuse=false
|
node_reuse=false
|
||||||
|
if [[ "$exclude_ci_binary_log" == false ]]; then
|
||||||
|
binary_log=true
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
. "$scriptroot/tools.sh"
|
. "$scriptroot/tools.sh"
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net472</TargetFramework>
|
<TargetFramework>net472</TargetFramework>
|
||||||
<ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets>
|
<ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets>
|
||||||
|
<AutomaticallyUseReferenceAssemblyPackages>false</AutomaticallyUseReferenceAssemblyPackages>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<!-- Clear references, the SDK may add some depending on UsuingToolXxx settings, but we only want to restore the following -->
|
<!-- Clear references, the SDK may add some depending on UsuingToolXxx settings, but we only want to restore the following -->
|
||||||
|
|
|
||||||
|
|
@ -145,9 +145,12 @@ function Get-File {
|
||||||
New-Item -path $DownloadDirectory -force -itemType "Directory" | Out-Null
|
New-Item -path $DownloadDirectory -force -itemType "Directory" | Out-Null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$TempPath = "$Path.tmp"
|
||||||
if (Test-Path -IsValid -Path $Uri) {
|
if (Test-Path -IsValid -Path $Uri) {
|
||||||
Write-Verbose "'$Uri' is a file path, copying file to '$Path'"
|
Write-Verbose "'$Uri' is a file path, copying temporarily to '$TempPath'"
|
||||||
Copy-Item -Path $Uri -Destination $Path
|
Copy-Item -Path $Uri -Destination $TempPath
|
||||||
|
Write-Verbose "Moving temporary file to '$Path'"
|
||||||
|
Move-Item -Path $TempPath -Destination $Path
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
@ -157,8 +160,10 @@ function Get-File {
|
||||||
while($Attempt -Lt $DownloadRetries)
|
while($Attempt -Lt $DownloadRetries)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
Invoke-WebRequest -UseBasicParsing -Uri $Uri -OutFile $Path
|
Invoke-WebRequest -UseBasicParsing -Uri $Uri -OutFile $TempPath
|
||||||
Write-Verbose "Downloaded to '$Path'"
|
Write-Verbose "Downloaded to temporary location '$TempPath'"
|
||||||
|
Move-Item -Path $TempPath -Destination $Path
|
||||||
|
Write-Verbose "Moved temporary file to '$Path'"
|
||||||
return $True
|
return $True
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
|
|
@ -359,16 +364,21 @@ function Expand-Zip {
|
||||||
return $False
|
return $False
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (-Not (Test-Path $OutputDirectory)) {
|
|
||||||
New-Item -path $OutputDirectory -Force -itemType "Directory" | Out-Null
|
$TempOutputDirectory = Join-Path "$(Split-Path -Parent $OutputDirectory)" "$(Split-Path -Leaf $OutputDirectory).tmp"
|
||||||
|
if (Test-Path $TempOutputDirectory) {
|
||||||
|
Remove-Item $TempOutputDirectory -Force -Recurse
|
||||||
}
|
}
|
||||||
|
New-Item -Path $TempOutputDirectory -Force -ItemType "Directory" | Out-Null
|
||||||
|
|
||||||
Add-Type -assembly "system.io.compression.filesystem"
|
Add-Type -assembly "system.io.compression.filesystem"
|
||||||
[io.compression.zipfile]::ExtractToDirectory("$ZipPath", "$OutputDirectory")
|
[io.compression.zipfile]::ExtractToDirectory("$ZipPath", "$TempOutputDirectory")
|
||||||
if ($? -Eq $False) {
|
if ($? -Eq $False) {
|
||||||
Write-Error "Unable to extract '$ZipPath'"
|
Write-Error "Unable to extract '$ZipPath'"
|
||||||
return $False
|
return $False
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Move-Item -Path $TempOutputDirectory -Destination $OutputDirectory
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Host $_
|
Write-Host $_
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
<Python>py -3</Python>
|
<Python>py -3</Python>
|
||||||
<CoreRun>%HELIX_CORRELATION_PAYLOAD%\Core_Root\CoreRun.exe</CoreRun>
|
<CoreRun>%HELIX_CORRELATION_PAYLOAD%\Core_Root\CoreRun.exe</CoreRun>
|
||||||
<BaselineCoreRun>%HELIX_CORRELATION_PAYLOAD%\Baseline_Core_Root\CoreRun.exe</BaselineCoreRun>
|
<BaselineCoreRun>%HELIX_CORRELATION_PAYLOAD%\Baseline_Core_Root\CoreRun.exe</BaselineCoreRun>
|
||||||
|
|
||||||
<HelixPreCommands>$(HelixPreCommands);call %HELIX_CORRELATION_PAYLOAD%\performance\tools\machine-setup.cmd;set PYTHONPATH=%HELIX_WORKITEM_PAYLOAD%\scripts%3B%HELIX_WORKITEM_PAYLOAD%</HelixPreCommands>
|
<HelixPreCommands>$(HelixPreCommands);call %HELIX_CORRELATION_PAYLOAD%\performance\tools\machine-setup.cmd;set PYTHONPATH=%HELIX_WORKITEM_PAYLOAD%\scripts%3B%HELIX_WORKITEM_PAYLOAD%</HelixPreCommands>
|
||||||
<ArtifactsDirectory>%HELIX_CORRELATION_PAYLOAD%\artifacts\BenchmarkDotNet.Artifacts</ArtifactsDirectory>
|
<ArtifactsDirectory>%HELIX_CORRELATION_PAYLOAD%\artifacts\BenchmarkDotNet.Artifacts</ArtifactsDirectory>
|
||||||
<BaselineArtifactsDirectory>%HELIX_CORRELATION_PAYLOAD%\artifacts\BenchmarkDotNet.Artifacts_Baseline</BaselineArtifactsDirectory>
|
<BaselineArtifactsDirectory>%HELIX_CORRELATION_PAYLOAD%\artifacts\BenchmarkDotNet.Artifacts_Baseline</BaselineArtifactsDirectory>
|
||||||
|
|
@ -40,6 +41,13 @@
|
||||||
<XMLResults>$HELIX_WORKITEM_ROOT/testResults.xml</XMLResults>
|
<XMLResults>$HELIX_WORKITEM_ROOT/testResults.xml</XMLResults>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(MonoDotnet)' == 'true' and '$(AGENT_OS)' == 'Windows_NT'">
|
||||||
|
<CoreRunArgument>--corerun %HELIX_CORRELATION_PAYLOAD%\dotnet-mono\shared\Microsoft.NETCore.App\5.0.0\corerun.exe</CoreRunArgument>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(MonoDotnet)' == 'true' and '$(AGENT_OS)' != 'Windows_NT'">
|
||||||
|
<CoreRunArgument>--corerun $(BaseDirectory)/dotnet-mono/shared/Microsoft.NETCore.App/5.0.0/corerun</CoreRunArgument>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(UseCoreRun)' == 'true'">
|
<PropertyGroup Condition="'$(UseCoreRun)' == 'true'">
|
||||||
<CoreRunArgument>--corerun $(CoreRun)</CoreRunArgument>
|
<CoreRunArgument>--corerun $(CoreRun)</CoreRunArgument>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ Param(
|
||||||
[string] $CoreRootDirectory,
|
[string] $CoreRootDirectory,
|
||||||
[string] $BaselineCoreRootDirectory,
|
[string] $BaselineCoreRootDirectory,
|
||||||
[string] $Architecture="x64",
|
[string] $Architecture="x64",
|
||||||
[string] $Framework="netcoreapp5.0",
|
[string] $Framework="net5.0",
|
||||||
[string] $CompilationMode="Tiered",
|
[string] $CompilationMode="Tiered",
|
||||||
[string] $Repository=$env:BUILD_REPOSITORY_NAME,
|
[string] $Repository=$env:BUILD_REPOSITORY_NAME,
|
||||||
[string] $Branch=$env:BUILD_SOURCEBRANCH,
|
[string] $Branch=$env:BUILD_SOURCEBRANCH,
|
||||||
|
|
@ -12,8 +12,12 @@ Param(
|
||||||
[string] $RunCategories="Libraries Runtime",
|
[string] $RunCategories="Libraries Runtime",
|
||||||
[string] $Csproj="src\benchmarks\micro\MicroBenchmarks.csproj",
|
[string] $Csproj="src\benchmarks\micro\MicroBenchmarks.csproj",
|
||||||
[string] $Kind="micro",
|
[string] $Kind="micro",
|
||||||
|
[switch] $LLVM,
|
||||||
|
[switch] $MonoInterpreter,
|
||||||
|
[switch] $MonoAOT,
|
||||||
[switch] $Internal,
|
[switch] $Internal,
|
||||||
[switch] $Compare,
|
[switch] $Compare,
|
||||||
|
[string] $MonoDotnet="",
|
||||||
[string] $Configurations="CompilationMode=$CompilationMode RunKind=$Kind"
|
[string] $Configurations="CompilationMode=$CompilationMode RunKind=$Kind"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -31,7 +35,8 @@ $HelixSourcePrefix = "pr"
|
||||||
|
|
||||||
$Queue = "Windows.10.Amd64.ClientRS4.DevEx.15.8.Open"
|
$Queue = "Windows.10.Amd64.ClientRS4.DevEx.15.8.Open"
|
||||||
|
|
||||||
if ($Framework.StartsWith("netcoreapp")) {
|
# TODO: Implement a better logic to determine if Framework is .NET Core or >= .NET 5.
|
||||||
|
if ($Framework.StartsWith("netcoreapp") -or ($Framework -eq "net5.0")) {
|
||||||
$Queue = "Windows.10.Amd64.ClientRS5.Open"
|
$Queue = "Windows.10.Amd64.ClientRS5.Open"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -49,6 +54,21 @@ if ($Internal) {
|
||||||
$HelixSourcePrefix = "official"
|
$HelixSourcePrefix = "official"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($MonoDotnet -ne "")
|
||||||
|
{
|
||||||
|
$Configurations += " LLVM=$LLVM MonoInterpreter=$MonoInterpreter MonoAOT=$MonoAOT"
|
||||||
|
if($ExtraBenchmarkDotNetArguments -eq "")
|
||||||
|
{
|
||||||
|
#FIX ME: We need to block these tests as they don't run on mono for now
|
||||||
|
$ExtraBenchmarkDotNetArguments = "--exclusion-filter *Perf_Image* *Perf_NamedPipeStream*"
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
#FIX ME: We need to block these tests as they don't run on mono for now
|
||||||
|
$ExtraBenchmarkDotNetArguments += " --exclusion-filter *Perf_Image* *Perf_NamedPipeStream*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# FIX ME: This is a workaround until we get this from the actual pipeline
|
# FIX ME: This is a workaround until we get this from the actual pipeline
|
||||||
$CommonSetupArguments="--channel master --queue $Queue --build-number $BuildNumber --build-configs $Configurations --architecture $Architecture"
|
$CommonSetupArguments="--channel master --queue $Queue --build-number $BuildNumber --build-configs $Configurations --architecture $Architecture"
|
||||||
$SetupArguments = "--repository https://github.com/$Repository --branch $Branch --get-perf-hash --commit-sha $CommitSha $CommonSetupArguments"
|
$SetupArguments = "--repository https://github.com/$Repository --branch $Branch --get-perf-hash --commit-sha $CommitSha $CommonSetupArguments"
|
||||||
|
|
@ -69,6 +89,13 @@ else {
|
||||||
git clone --branch master --depth 1 --quiet https://github.com/dotnet/performance $PerformanceDirectory
|
git clone --branch master --depth 1 --quiet https://github.com/dotnet/performance $PerformanceDirectory
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($MonoDotnet -ne "")
|
||||||
|
{
|
||||||
|
$UsingMono = "true"
|
||||||
|
$MonoDotnetPath = (Join-Path $PayloadDirectory "dotnet-mono")
|
||||||
|
Move-Item -Path $MonoDotnet -Destination $MonoDotnetPath
|
||||||
|
}
|
||||||
|
|
||||||
if ($UseCoreRun) {
|
if ($UseCoreRun) {
|
||||||
$NewCoreRoot = (Join-Path $PayloadDirectory "Core_Root")
|
$NewCoreRoot = (Join-Path $PayloadDirectory "Core_Root")
|
||||||
Move-Item -Path $CoreRootDirectory -Destination $NewCoreRoot
|
Move-Item -Path $CoreRootDirectory -Destination $NewCoreRoot
|
||||||
|
|
@ -104,6 +131,7 @@ Write-PipelineSetVariable -Name 'UseCoreRun' -Value "$UseCoreRun" -IsMultiJobVar
|
||||||
Write-PipelineSetVariable -Name 'UseBaselineCoreRun' -Value "$UseBaselineCoreRun" -IsMultiJobVariable $false
|
Write-PipelineSetVariable -Name 'UseBaselineCoreRun' -Value "$UseBaselineCoreRun" -IsMultiJobVariable $false
|
||||||
Write-PipelineSetVariable -Name 'RunFromPerfRepo' -Value "$RunFromPerformanceRepo" -IsMultiJobVariable $false
|
Write-PipelineSetVariable -Name 'RunFromPerfRepo' -Value "$RunFromPerformanceRepo" -IsMultiJobVariable $false
|
||||||
Write-PipelineSetVariable -Name 'Compare' -Value "$Compare" -IsMultiJobVariable $false
|
Write-PipelineSetVariable -Name 'Compare' -Value "$Compare" -IsMultiJobVariable $false
|
||||||
|
Write-PipelineSetVariable -Name 'MonoDotnet' -Value "$UsingMono" -IsMultiJobVariable $false
|
||||||
|
|
||||||
# Helix Arguments
|
# Helix Arguments
|
||||||
Write-PipelineSetVariable -Name 'Creator' -Value "$Creator" -IsMultiJobVariable $false
|
Write-PipelineSetVariable -Name 'Creator' -Value "$Creator" -IsMultiJobVariable $false
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ source_directory=$BUILD_SOURCESDIRECTORY
|
||||||
core_root_directory=
|
core_root_directory=
|
||||||
baseline_core_root_directory=
|
baseline_core_root_directory=
|
||||||
architecture=x64
|
architecture=x64
|
||||||
framework=netcoreapp5.0
|
framework=net5.0
|
||||||
compilation_mode=tiered
|
compilation_mode=tiered
|
||||||
repository=$BUILD_REPOSITORY_NAME
|
repository=$BUILD_REPOSITORY_NAME
|
||||||
branch=$BUILD_SOURCEBRANCH
|
branch=$BUILD_SOURCEBRANCH
|
||||||
|
|
@ -12,13 +12,18 @@ commit_sha=$BUILD_SOURCEVERSION
|
||||||
build_number=$BUILD_BUILDNUMBER
|
build_number=$BUILD_BUILDNUMBER
|
||||||
internal=false
|
internal=false
|
||||||
compare=false
|
compare=false
|
||||||
|
mono_dotnet=
|
||||||
kind="micro"
|
kind="micro"
|
||||||
|
llvm=false
|
||||||
|
monointerpreter=false
|
||||||
|
monoaot=false
|
||||||
run_categories="Libraries Runtime"
|
run_categories="Libraries Runtime"
|
||||||
csproj="src\benchmarks\micro\MicroBenchmarks.csproj"
|
csproj="src\benchmarks\micro\MicroBenchmarks.csproj"
|
||||||
configurations="CompliationMode=$compilation_mode RunKind=$kind"
|
configurations="CompliationMode=$compilation_mode RunKind=$kind"
|
||||||
run_from_perf_repo=false
|
run_from_perf_repo=false
|
||||||
use_core_run=true
|
use_core_run=true
|
||||||
use_baseline_core_run=true
|
use_baseline_core_run=true
|
||||||
|
using_mono=false
|
||||||
|
|
||||||
while (($# > 0)); do
|
while (($# > 0)); do
|
||||||
lowerI="$(echo $1 | awk '{print tolower($0)}')"
|
lowerI="$(echo $1 | awk '{print tolower($0)}')"
|
||||||
|
|
@ -65,6 +70,7 @@ while (($# > 0)); do
|
||||||
;;
|
;;
|
||||||
--kind)
|
--kind)
|
||||||
kind=$2
|
kind=$2
|
||||||
|
configurations="CompliationMode=$compilation_mode RunKind=$kind"
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
--runcategories)
|
--runcategories)
|
||||||
|
|
@ -79,6 +85,22 @@ while (($# > 0)); do
|
||||||
internal=true
|
internal=true
|
||||||
shift 1
|
shift 1
|
||||||
;;
|
;;
|
||||||
|
--llvm)
|
||||||
|
llvm=true
|
||||||
|
shift 1
|
||||||
|
;;
|
||||||
|
--monointerpreter)
|
||||||
|
monointerpreter=true
|
||||||
|
shift 1
|
||||||
|
;;
|
||||||
|
--monoaot)
|
||||||
|
monoaot=true
|
||||||
|
shift 1
|
||||||
|
;;
|
||||||
|
--monodotnet)
|
||||||
|
mono_dotnet=$2
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
--compare)
|
--compare)
|
||||||
compare=true
|
compare=true
|
||||||
shift 1
|
shift 1
|
||||||
|
|
@ -107,6 +129,7 @@ while (($# > 0)); do
|
||||||
echo " --kind <value> Related to csproj. The kind of benchmarks that should be run. Defaults to micro"
|
echo " --kind <value> Related to csproj. The kind of benchmarks that should be run. Defaults to micro"
|
||||||
echo " --runcategories <value> Related to csproj. Categories of benchmarks to run. Defaults to \"coreclr corefx\""
|
echo " --runcategories <value> Related to csproj. Categories of benchmarks to run. Defaults to \"coreclr corefx\""
|
||||||
echo " --internal If the benchmarks are running as an official job."
|
echo " --internal If the benchmarks are running as an official job."
|
||||||
|
echo " --monodotnet Pass the path to the mono dotnet for mono performance testing."
|
||||||
echo ""
|
echo ""
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
@ -164,6 +187,10 @@ if [[ "$internal" == true ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$mono_dotnet" != "" ]]; then
|
||||||
|
configurations="$configurations LLVM=$llvm MonoInterpreter=$monointerpreter MonoAOT=$monoaot"
|
||||||
|
fi
|
||||||
|
|
||||||
common_setup_arguments="--channel master --queue $queue --build-number $build_number --build-configs $configurations --architecture $architecture"
|
common_setup_arguments="--channel master --queue $queue --build-number $build_number --build-configs $configurations --architecture $architecture"
|
||||||
setup_arguments="--repository https://github.com/$repository --branch $branch --get-perf-hash --commit-sha $commit_sha $common_setup_arguments"
|
setup_arguments="--repository https://github.com/$repository --branch $branch --get-perf-hash --commit-sha $commit_sha $common_setup_arguments"
|
||||||
|
|
||||||
|
|
@ -186,6 +213,12 @@ else
|
||||||
mv $docs_directory $workitem_directory
|
mv $docs_directory $workitem_directory
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$mono_dotnet" != "" ]]; then
|
||||||
|
using_mono=true
|
||||||
|
mono_dotnet_path=$payload_directory/dotnet-mono
|
||||||
|
mv $mono_dotnet $mono_dotnet_path
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$use_core_run" = true ]]; then
|
if [[ "$use_core_run" = true ]]; then
|
||||||
new_core_root=$payload_directory/Core_Root
|
new_core_root=$payload_directory/Core_Root
|
||||||
mv $core_root_directory $new_core_root
|
mv $core_root_directory $new_core_root
|
||||||
|
|
@ -221,3 +254,4 @@ Write-PipelineSetVariable -name "HelixSourcePrefix" -value "$helix_source_prefix
|
||||||
Write-PipelineSetVariable -name "Kind" -value "$kind" -is_multi_job_variable false
|
Write-PipelineSetVariable -name "Kind" -value "$kind" -is_multi_job_variable false
|
||||||
Write-PipelineSetVariable -name "_BuildConfig" -value "$architecture.$kind.$framework" -is_multi_job_variable false
|
Write-PipelineSetVariable -name "_BuildConfig" -value "$architecture.$kind.$framework" -is_multi_job_variable false
|
||||||
Write-PipelineSetVariable -name "Compare" -value "$compare" -is_multi_job_variable false
|
Write-PipelineSetVariable -name "Compare" -value "$compare" -is_multi_job_variable false
|
||||||
|
Write-PipelineSetVariable -name "MonoDotnet" -value "$using_mono" -is_multi_job_variable false
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@ param(
|
||||||
[Parameter(Mandatory=$true)][string] $InputPath, # Full path to directory where NuGet packages to be checked are stored
|
[Parameter(Mandatory=$true)][string] $InputPath, # Full path to directory where NuGet packages to be checked are stored
|
||||||
[Parameter(Mandatory=$true)][string] $ExtractPath, # Full path to directory where the packages will be extracted during validation
|
[Parameter(Mandatory=$true)][string] $ExtractPath, # Full path to directory where the packages will be extracted during validation
|
||||||
[Parameter(Mandatory=$true)][string] $DotnetSymbolVersion, # Version of dotnet symbol to use
|
[Parameter(Mandatory=$true)][string] $DotnetSymbolVersion, # Version of dotnet symbol to use
|
||||||
[Parameter(Mandatory=$false)][switch] $ContinueOnError # If we should keep checking symbols after an error
|
[Parameter(Mandatory=$false)][switch] $ContinueOnError, # If we should keep checking symbols after an error
|
||||||
|
[Parameter(Mandatory=$false)][switch] $Clean # Clean extracted symbols directory after checking symbols
|
||||||
)
|
)
|
||||||
|
|
||||||
function FirstMatchingSymbolDescriptionOrDefault {
|
function FirstMatchingSymbolDescriptionOrDefault {
|
||||||
|
|
@ -81,7 +82,14 @@ function CountMissingSymbols {
|
||||||
$ExtractPath = Join-Path -Path $ExtractPath -ChildPath $PackageGuid
|
$ExtractPath = Join-Path -Path $ExtractPath -ChildPath $PackageGuid
|
||||||
$SymbolsPath = Join-Path -Path $ExtractPath -ChildPath 'Symbols'
|
$SymbolsPath = Join-Path -Path $ExtractPath -ChildPath 'Symbols'
|
||||||
|
|
||||||
[System.IO.Compression.ZipFile]::ExtractToDirectory($PackagePath, $ExtractPath)
|
try {
|
||||||
|
[System.IO.Compression.ZipFile]::ExtractToDirectory($PackagePath, $ExtractPath)
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
Write-Host "Something went wrong extracting $PackagePath"
|
||||||
|
Write-Host $_
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
|
||||||
Get-ChildItem -Recurse $ExtractPath |
|
Get-ChildItem -Recurse $ExtractPath |
|
||||||
Where-Object {$RelevantExtensions -contains $_.Extension} |
|
Where-Object {$RelevantExtensions -contains $_.Extension} |
|
||||||
|
|
@ -116,6 +124,10 @@ function CountMissingSymbols {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($Clean) {
|
||||||
|
Remove-Item $ExtractPath -Recurse -Force
|
||||||
|
}
|
||||||
|
|
||||||
Pop-Location
|
Pop-Location
|
||||||
|
|
||||||
return $MissingSymbols
|
return $MissingSymbols
|
||||||
|
|
|
||||||
|
|
@ -59,14 +59,15 @@ try {
|
||||||
|
|
||||||
if( $msbuildEngine -eq "vs") {
|
if( $msbuildEngine -eq "vs") {
|
||||||
# Ensure desktop MSBuild is available for sdk tasks.
|
# Ensure desktop MSBuild is available for sdk tasks.
|
||||||
if( -not ($GlobalJson.tools.PSObject.Properties.Name -match "vs" )) {
|
if( -not ($GlobalJson.tools.PSObject.Properties.Name -contains "vs" )) {
|
||||||
$GlobalJson.tools | Add-Member -Name "vs" -Value (ConvertFrom-Json "{ `"version`": `"16.4`" }") -MemberType NoteProperty
|
$GlobalJson.tools | Add-Member -Name "vs" -Value (ConvertFrom-Json "{ `"version`": `"16.5`" }") -MemberType NoteProperty
|
||||||
}
|
}
|
||||||
if( -not ($GlobalJson.tools.PSObject.Properties.Name -match "xcopy-msbuild" )) {
|
if( -not ($GlobalJson.tools.PSObject.Properties.Name -match "xcopy-msbuild" )) {
|
||||||
$GlobalJson.tools | Add-Member -Name "xcopy-msbuild" -Value "16.4.0-alpha" -MemberType NoteProperty
|
$GlobalJson.tools | Add-Member -Name "xcopy-msbuild" -Value "16.5.0-alpha" -MemberType NoteProperty
|
||||||
}
|
}
|
||||||
|
|
||||||
InitializeXCopyMSBuild $GlobalJson.tools."xcopy-msbuild" -install $true
|
$xcopyMSBuildToolsFolder = InitializeXCopyMSBuild $GlobalJson.tools."xcopy-msbuild" -install $true
|
||||||
|
$global:_MSBuildExe = "$($xcopyMSBuildToolsFolder)\MSBuild\Current\Bin\MSBuild.exe"
|
||||||
}
|
}
|
||||||
|
|
||||||
$taskProject = GetSdkTaskProject $task
|
$taskProject = GetSdkTaskProject $task
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,8 @@ parameters:
|
||||||
Net5Preview3ChannelId: 739
|
Net5Preview3ChannelId: 739
|
||||||
Net5Preview4ChannelId: 856
|
Net5Preview4ChannelId: 856
|
||||||
Net5Preview5ChannelId: 857
|
Net5Preview5ChannelId: 857
|
||||||
|
NetCoreSDK313xxChannelId: 759
|
||||||
|
NetCoreSDK313xxInternalChannelId: 760
|
||||||
NetCoreSDK314xxChannelId: 921
|
NetCoreSDK314xxChannelId: 921
|
||||||
NetCoreSDK314xxInternalChannelId: 922
|
NetCoreSDK314xxInternalChannelId: 922
|
||||||
|
|
||||||
|
|
@ -66,7 +68,7 @@ stages:
|
||||||
inputs:
|
inputs:
|
||||||
filePath: $(Build.SourcesDirectory)/eng/common/post-build/check-channel-consistency.ps1
|
filePath: $(Build.SourcesDirectory)/eng/common/post-build/check-channel-consistency.ps1
|
||||||
arguments: -PromoteToChannels "$(TargetChannels)"
|
arguments: -PromoteToChannels "$(TargetChannels)"
|
||||||
-AvailableChannelIds ${{parameters.NetEngLatestChannelId}},${{parameters.NetEngValidationChannelId}},${{parameters.NetDev5ChannelId}},${{parameters.GeneralTestingChannelId}},${{parameters.NETCoreToolingDevChannelId}},${{parameters.NETCoreToolingReleaseChannelId}},${{parameters.NETInternalToolingChannelId}},${{parameters.NETCoreExperimentalChannelId}},${{parameters.NetEngServicesIntChannelId}},${{parameters.NetEngServicesProdChannelId}},${{parameters.Net5Preview3ChannelId}},${{parameters.Net5Preview4ChannelId}},${{parameters.Net5Preview5ChannelId}},${{parameters.NetCoreSDK314xxChannelId}},${{parameters.NetCoreSDK314xxInternalChannelId}}
|
-AvailableChannelIds ${{parameters.NetEngLatestChannelId}},${{parameters.NetEngValidationChannelId}},${{parameters.NetDev5ChannelId}},${{parameters.GeneralTestingChannelId}},${{parameters.NETCoreToolingDevChannelId}},${{parameters.NETCoreToolingReleaseChannelId}},${{parameters.NETInternalToolingChannelId}},${{parameters.NETCoreExperimentalChannelId}},${{parameters.NetEngServicesIntChannelId}},${{parameters.NetEngServicesProdChannelId}},${{parameters.Net5Preview3ChannelId}},${{parameters.Net5Preview4ChannelId}},${{parameters.Net5Preview5ChannelId}},${{parameters.NetCoreSDK313xxChannelId}},${{parameters.NetCoreSDK313xxInternalChannelId}},${{parameters.NetCoreSDK314xxChannelId}},${{parameters.NetCoreSDK314xxInternalChannelId}}
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
displayName: NuGet Validation
|
displayName: NuGet Validation
|
||||||
|
|
@ -408,3 +410,29 @@ stages:
|
||||||
transportFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v3/index.json'
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v3/index.json'
|
||||||
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v3/index.json'
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v3/index.json'
|
||||||
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-symbols/nuget/v3/index.json'
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-symbols/nuget/v3/index.json'
|
||||||
|
|
||||||
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
||||||
|
parameters:
|
||||||
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
dependsOn: ${{ parameters.publishDependsOn }}
|
||||||
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
||||||
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
stageName: 'NETCore_SDK_313xx_Publishing'
|
||||||
|
channelName: '.NET Core SDK 3.1.3xx'
|
||||||
|
channelId: ${{ parameters.NetCoreSDK313xxChannelId }}
|
||||||
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1-transport/nuget/v3/index.json'
|
||||||
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1/nuget/v3/index.json'
|
||||||
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1-symbols/nuget/v3/index.json'
|
||||||
|
|
||||||
|
- template: \eng\common\templates\post-build\channels\generic-internal-channel.yml
|
||||||
|
parameters:
|
||||||
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
dependsOn: ${{ parameters.publishDependsOn }}
|
||||||
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
||||||
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
stageName: 'NETCore_SDK_313xx_Internal_Publishing'
|
||||||
|
channelName: '.NET Core SDK 3.1.3xx Internal'
|
||||||
|
channelId: ${{ parameters.NetCoreSDK313xxInternalChannelId }}
|
||||||
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v3/index.json'
|
||||||
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v3/index.json'
|
||||||
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-symbols/nuget/v3/index.json'
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,11 @@
|
||||||
# Build configuration. Common values include 'Debug' and 'Release', but the repository may use other names.
|
# Build configuration. Common values include 'Debug' and 'Release', but the repository may use other names.
|
||||||
[string]$configuration = if (Test-Path variable:configuration) { $configuration } else { 'Debug' }
|
[string]$configuration = if (Test-Path variable:configuration) { $configuration } else { 'Debug' }
|
||||||
|
|
||||||
|
# Set to true to opt out of outputting binary log while running in CI
|
||||||
|
[bool]$excludeCIBinarylog = if (Test-Path variable:excludeCIBinarylog) { $excludeCIBinarylog } else { $false }
|
||||||
|
|
||||||
# Set to true to output binary log from msbuild. Note that emitting binary log slows down the build.
|
# Set to true to output binary log from msbuild. Note that emitting binary log slows down the build.
|
||||||
# Binary log must be enabled on CI.
|
[bool]$binaryLog = if (Test-Path variable:binaryLog) { $binaryLog } else { $ci -and !$excludeCIBinarylog }
|
||||||
[bool]$binaryLog = if (Test-Path variable:binaryLog) { $binaryLog } else { $ci }
|
|
||||||
|
|
||||||
# Set to true to use the pipelines logger which will enable Azure logging output.
|
# Set to true to use the pipelines logger which will enable Azure logging output.
|
||||||
# https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md
|
# https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md
|
||||||
|
|
@ -55,10 +57,8 @@ set-strictmode -version 2.0
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||||
|
|
||||||
function Create-Directory([string[]] $path) {
|
function Create-Directory ([string[]] $path) {
|
||||||
if (!(Test-Path $path)) {
|
New-Item -Path $path -Force -ItemType 'Directory' | Out-Null
|
||||||
New-Item -path $path -force -itemType 'Directory' | Out-Null
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Unzip([string]$zipfile, [string]$outpath) {
|
function Unzip([string]$zipfile, [string]$outpath) {
|
||||||
|
|
@ -605,8 +605,8 @@ function MSBuild() {
|
||||||
#
|
#
|
||||||
function MSBuild-Core() {
|
function MSBuild-Core() {
|
||||||
if ($ci) {
|
if ($ci) {
|
||||||
if (!$binaryLog) {
|
if (!$binaryLog -and !$excludeCIBinarylog) {
|
||||||
Write-PipelineTelemetryError -Category 'Build' -Message 'Binary log must be enabled in CI build.'
|
Write-PipelineTelemetryError -Category 'Build' -Message 'Binary log must be enabled in CI build, or explicitly opted-out from with the -excludeCIBinarylog switch.'
|
||||||
ExitWithExitCode 1
|
ExitWithExitCode 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,17 @@ fi
|
||||||
# Build configuration. Common values include 'Debug' and 'Release', but the repository may use other names.
|
# Build configuration. Common values include 'Debug' and 'Release', but the repository may use other names.
|
||||||
configuration=${configuration:-'Debug'}
|
configuration=${configuration:-'Debug'}
|
||||||
|
|
||||||
|
# Set to true to opt out of outputting binary log while running in CI
|
||||||
|
exclude_ci_binary_log=${exclude_ci_binary_log:-false}
|
||||||
|
|
||||||
|
if [[ "$ci" == true && "$exclude_ci_binary_log" == false ]]; then
|
||||||
|
binary_log_default=true
|
||||||
|
else
|
||||||
|
binary_log_default=false
|
||||||
|
fi
|
||||||
|
|
||||||
# Set to true to output binary log from msbuild. Note that emitting binary log slows down the build.
|
# Set to true to output binary log from msbuild. Note that emitting binary log slows down the build.
|
||||||
# Binary log must be enabled on CI.
|
binary_log=${binary_log:-$binary_log_default}
|
||||||
binary_log=${binary_log:-$ci}
|
|
||||||
|
|
||||||
# Turns on machine preparation/clean up code that changes the machine state (e.g. kills build processes).
|
# Turns on machine preparation/clean up code that changes the machine state (e.g. kills build processes).
|
||||||
prepare_machine=${prepare_machine:-false}
|
prepare_machine=${prepare_machine:-false}
|
||||||
|
|
@ -404,8 +412,8 @@ function MSBuild {
|
||||||
|
|
||||||
function MSBuild-Core {
|
function MSBuild-Core {
|
||||||
if [[ "$ci" == true ]]; then
|
if [[ "$ci" == true ]]; then
|
||||||
if [[ "$binary_log" != true ]]; then
|
if [[ "$binary_log" != true && "$exclude_ci_binary_log" != true ]]; then
|
||||||
Write-PipelineTelemetryError -category 'Build' "Binary log must be enabled in CI build."
|
Write-PipelineTelemetryError -category 'Build' "Binary log must be enabled in CI build, or explicitly opted-out from with the -noBinaryLog switch."
|
||||||
ExitWithExitCode 1
|
ExitWithExitCode 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -48,10 +48,10 @@ try {
|
||||||
if ($ci) {
|
if ($ci) {
|
||||||
# Install dotnet.exe
|
# Install dotnet.exe
|
||||||
if ($DotNetRuntimeSourceFeed -or $DotNetRuntimeSourceFeedKey) {
|
if ($DotNetRuntimeSourceFeed -or $DotNetRuntimeSourceFeedKey) {
|
||||||
& $repoRoot/restore.cmd -ci -noBuildNodeJS -DotNetRuntimeSourceFeed $DotNetRuntimeSourceFeed -DotNetRuntimeSourceFeedKey $DotNetRuntimeSourceFeedKey
|
& $repoRoot/restore.cmd -ci -nobl -noBuildNodeJS -DotNetRuntimeSourceFeed $DotNetRuntimeSourceFeed -DotNetRuntimeSourceFeedKey $DotNetRuntimeSourceFeedKey
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
& $repoRoot/restore.cmd -ci -noBuildNodeJS
|
& $repoRoot/restore.cmd -ci -nobl -noBuildNodeJS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,8 @@
|
||||||
Condition=" '$(TargetFrameworkIdentifier)' != '.NETFramework' ">
|
Condition=" '$(TargetFrameworkIdentifier)' != '.NETFramework' ">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<_RefSourceFileTFM>$(TargetFramework)</_RefSourceFileTFM>
|
<_RefSourceFileTFM>$(TargetFramework)</_RefSourceFileTFM>
|
||||||
<_RefSourceFileTFM Condition="$(TargetFramework.StartsWith('netcoreapp'))">netcoreapp</_RefSourceFileTFM>
|
<_RefSourceFileTFM Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND
|
||||||
|
$([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '5.0'))">netcoreapp</_RefSourceFileTFM>
|
||||||
<_RefProjectFileTFM>$(TargetFramework)</_RefProjectFileTFM>
|
<_RefProjectFileTFM>$(TargetFramework)</_RefProjectFileTFM>
|
||||||
<_RefProjectFileTFM Condition="'$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)'">%24(DefaultNetCoreTargetFramework)</_RefProjectFileTFM>
|
<_RefProjectFileTFM Condition="'$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)'">%24(DefaultNetCoreTargetFramework)</_RefProjectFileTFM>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<_RepoTaskAssemblyFolder Condition="'$(MSBuildRuntimeType)' == 'core'">netcoreapp5.0</_RepoTaskAssemblyFolder>
|
<_RepoTaskAssemblyFolder Condition="'$(MSBuildRuntimeType)' == 'core'">net5.0</_RepoTaskAssemblyFolder>
|
||||||
<_RepoTaskAssemblyFolder Condition="'$(MSBuildRuntimeType)' != 'core'">net472</_RepoTaskAssemblyFolder>
|
<_RepoTaskAssemblyFolder Condition="'$(MSBuildRuntimeType)' != 'core'">net472</_RepoTaskAssemblyFolder>
|
||||||
<_RepoTaskAssembly>$(ArtifactsBinDir)RepoTasks\Release\$(_RepoTaskAssemblyFolder)\RepoTasks.dll</_RepoTaskAssembly>
|
<_RepoTaskAssembly>$(ArtifactsBinDir)RepoTasks\Release\$(_RepoTaskAssemblyFolder)\RepoTasks.dll</_RepoTaskAssembly>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Yarn.MSBuild": "1.15.2",
|
"Yarn.MSBuild": "1.15.2",
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.20228.4",
|
"Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.20261.9",
|
||||||
"Microsoft.DotNet.Helix.Sdk": "5.0.0-beta.20228.4"
|
"Microsoft.DotNet.Helix.Sdk": "5.0.0-beta.20261.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ namespace Microsoft.AspNetCore.Blazor.Build
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
using var project = ProjectDirectory.Create("blazorhosted", additionalProjects: new[] { "standalone", "razorclasslibrary", });
|
using var project = ProjectDirectory.Create("blazorhosted", additionalProjects: new[] { "standalone", "razorclasslibrary", });
|
||||||
project.TargetFramework = "netcoreapp5.0";
|
project.TargetFramework = "net5.0";
|
||||||
var result = await MSBuildProcessManager.DotnetMSBuild(project);
|
var result = await MSBuildProcessManager.DotnetMSBuild(project);
|
||||||
|
|
||||||
Assert.BuildPassed(result);
|
Assert.BuildPassed(result);
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ namespace Microsoft.AspNetCore.Blazor.Build
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
using var project = ProjectDirectory.Create("blazorhosted", additionalProjects: new[] { "standalone", "razorclasslibrary", });
|
using var project = ProjectDirectory.Create("blazorhosted", additionalProjects: new[] { "standalone", "razorclasslibrary", });
|
||||||
project.TargetFramework = "netcoreapp5.0";
|
project.TargetFramework = "net5.0";
|
||||||
var result = await MSBuildProcessManager.DotnetMSBuild(project, "Publish");
|
var result = await MSBuildProcessManager.DotnetMSBuild(project, "Publish");
|
||||||
|
|
||||||
Assert.BuildPassed(result);
|
Assert.BuildPassed(result);
|
||||||
|
|
@ -187,7 +187,7 @@ namespace Microsoft.AspNetCore.Blazor.Build
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
using var project = ProjectDirectory.Create("blazorhosted", additionalProjects: new[] { "standalone", "razorclasslibrary", });
|
using var project = ProjectDirectory.Create("blazorhosted", additionalProjects: new[] { "standalone", "razorclasslibrary", });
|
||||||
project.TargetFramework = "netcoreapp5.0";
|
project.TargetFramework = "net5.0";
|
||||||
var result = await MSBuildProcessManager.DotnetMSBuild(project, "Build");
|
var result = await MSBuildProcessManager.DotnetMSBuild(project, "Build");
|
||||||
|
|
||||||
Assert.BuildPassed(result);
|
Assert.BuildPassed(result);
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<DisableImplicitComponentsAnalyzers>true</DisableImplicitComponentsAnalyzers>
|
<DisableImplicitComponentsAnalyzers>true</DisableImplicitComponentsAnalyzers>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<dependency id="Microsoft.JSInterop" version="$jsInteropPackageVersion$" exclude="Build,Analyzers" />
|
<dependency id="Microsoft.JSInterop" version="$jsInteropPackageVersion$" exclude="Build,Analyzers" />
|
||||||
<dependency id="System.ComponentModel.Annotations" version="$systemComponentModelAnnotationsPackageVersion$" exclude="Build,Analyzers" />
|
<dependency id="System.ComponentModel.Annotations" version="$systemComponentModelAnnotationsPackageVersion$" exclude="Build,Analyzers" />
|
||||||
</group>
|
</group>
|
||||||
<group targetFramework=".NETCoreApp5.0">
|
<group targetFramework=".net5.0">
|
||||||
<dependency id="Microsoft.AspNetCore.Components.Analyzers" version="$componentAnalyzerPackageVersion$" />
|
<dependency id="Microsoft.AspNetCore.Components.Analyzers" version="$componentAnalyzerPackageVersion$" />
|
||||||
<dependency id="Microsoft.AspNetCore.Authorization" version="$authorizationPackageVersion$" exclude="Build,Analyzers" />
|
<dependency id="Microsoft.AspNetCore.Authorization" version="$authorizationPackageVersion$" exclude="Build,Analyzers" />
|
||||||
<dependency id="Microsoft.JSInterop" version="$jsInteropPackageVersion$" exclude="Build,Analyzers" />
|
<dependency id="Microsoft.JSInterop" version="$jsInteropPackageVersion$" exclude="Build,Analyzers" />
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<metadata>
|
<metadata>
|
||||||
$CommonMetadataElements$
|
$CommonMetadataElements$
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<group targetFramework=".NETCoreApp5.0">
|
<group targetFramework=".net5.0">
|
||||||
<dependency id="Microsoft.AspNetCore.Components.Analyzers" version="$componentAnalyzerPackageVersion$" />
|
<dependency id="Microsoft.AspNetCore.Components.Analyzers" version="$componentAnalyzerPackageVersion$" />
|
||||||
<dependency id="Microsoft.AspNetCore.Authorization" version="$authorizationPackageVersion$" exclude="Build,Analyzers" />
|
<dependency id="Microsoft.AspNetCore.Authorization" version="$authorizationPackageVersion$" exclude="Build,Analyzers" />
|
||||||
<dependency id="Microsoft.JSInterop" version="$jsInteropPackageVersion$" exclude="Build,Analyzers" />
|
<dependency id="Microsoft.JSInterop" version="$jsInteropPackageVersion$" exclude="Build,Analyzers" />
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,7 @@ namespace Microsoft.AspNetCore.Tests
|
||||||
var applicationName = "CreateDefaultBuilderApp";
|
var applicationName = "CreateDefaultBuilderApp";
|
||||||
var deploymentParameters = new DeploymentParameters(Path.Combine(GetTestSitesPath(), applicationName), ServerType.IISExpress, RuntimeFlavor.CoreClr, RuntimeArchitecture.x64)
|
var deploymentParameters = new DeploymentParameters(Path.Combine(GetTestSitesPath(), applicationName), ServerType.IISExpress, RuntimeFlavor.CoreClr, RuntimeArchitecture.x64)
|
||||||
{
|
{
|
||||||
TargetFramework = "netcoreapp5.0",
|
TargetFramework = "net5.0",
|
||||||
HostingModel = HostingModel.InProcess
|
HostingModel = HostingModel.InProcess
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -213,7 +213,7 @@ namespace Microsoft.AspNetCore.Tests
|
||||||
{
|
{
|
||||||
var deploymentParameters = new DeploymentParameters(Path.Combine(GetTestSitesPath(), applicationName), ServerType.Kestrel, RuntimeFlavor.CoreClr, RuntimeArchitecture.x64)
|
var deploymentParameters = new DeploymentParameters(Path.Combine(GetTestSitesPath(), applicationName), ServerType.Kestrel, RuntimeFlavor.CoreClr, RuntimeArchitecture.x64)
|
||||||
{
|
{
|
||||||
TargetFramework = "netcoreapp5.0",
|
TargetFramework = "net5.0",
|
||||||
};
|
};
|
||||||
|
|
||||||
if (setTestEnvVars)
|
if (setTestEnvVars)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<metadata>
|
<metadata>
|
||||||
$CommonMetadataElements$
|
$CommonMetadataElements$
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<group targetFramework=".NETCoreApp5.0">
|
<group targetFramework=".net5.0">
|
||||||
<dependency id="Microsoft.Extensions.FileProviders.Abstractions" version="$AbstractionsPackageVersion$" exclude="Build,Analyzers" />
|
<dependency id="Microsoft.Extensions.FileProviders.Abstractions" version="$AbstractionsPackageVersion$" exclude="Build,Analyzers" />
|
||||||
</group>
|
</group>
|
||||||
<group targetFramework=".NETStandard2.0">
|
<group targetFramework=".NETStandard2.0">
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<metadata>
|
<metadata>
|
||||||
$CommonMetadataElements$
|
$CommonMetadataElements$
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<group targetFramework=".NETCoreApp5.0">
|
<group targetFramework=".net5.0">
|
||||||
<dependency id="Microsoft.Extensions.FileProviders.Abstractions" version="$AbstractionsPackageVersion$" exclude="Build,Analyzers" />
|
<dependency id="Microsoft.Extensions.FileProviders.Abstractions" version="$AbstractionsPackageVersion$" exclude="Build,Analyzers" />
|
||||||
</group>
|
</group>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace Microsoft.AspNetCore
|
||||||
public SharedFxTests(ITestOutputHelper output)
|
public SharedFxTests(ITestOutputHelper output)
|
||||||
{
|
{
|
||||||
_output = output;
|
_output = output;
|
||||||
_expectedTfm = "netcoreapp" + TestData.GetSharedFxVersion().Substring(0, 3);
|
_expectedTfm = "net" + TestData.GetSharedFxVersion().Substring(0, 3);
|
||||||
_expectedRid = TestData.GetSharedFxRuntimeIdentifier();
|
_expectedRid = TestData.GetSharedFxRuntimeIdentifier();
|
||||||
_sharedFxRoot = string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ASPNET_RUNTIME_PATH"))
|
_sharedFxRoot = string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ASPNET_RUNTIME_PATH"))
|
||||||
? Path.Combine(TestData.GetTestDataValue("SharedFrameworkLayoutRoot"), "shared", TestData.GetTestDataValue("RuntimePackageVersion"))
|
? Path.Combine(TestData.GetTestDataValue("SharedFrameworkLayoutRoot"), "shared", TestData.GetTestDataValue("RuntimePackageVersion"))
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
||||||
public const string NetCoreApp22 = "netcoreapp2.2";
|
public const string NetCoreApp22 = "netcoreapp2.2";
|
||||||
public const string NetCoreApp30 = "netcoreapp3.0";
|
public const string NetCoreApp30 = "netcoreapp3.0";
|
||||||
public const string NetCoreApp31 = "netcoreapp3.1";
|
public const string NetCoreApp31 = "netcoreapp3.1";
|
||||||
public const string NetCoreApp50 = "netcoreapp5.0";
|
public const string Net50 = "net5.0";
|
||||||
|
|
||||||
public static bool Matches(string tfm1, string tfm2)
|
public static bool Matches(string tfm1, string tfm2)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ namespace Microsoft.AspNetCore.Hosting.FunctionalTests
|
||||||
RuntimeArchitecture.x64)
|
RuntimeArchitecture.x64)
|
||||||
{
|
{
|
||||||
EnvironmentName = "Shutdown",
|
EnvironmentName = "Shutdown",
|
||||||
TargetFramework = Tfm.NetCoreApp50,
|
TargetFramework = Tfm.Net50,
|
||||||
ApplicationType = ApplicationType.Portable,
|
ApplicationType = ApplicationType.Portable,
|
||||||
PublishApplicationBeforeDeployment = true,
|
PublishApplicationBeforeDeployment = true,
|
||||||
StatusMessagesEnabled = false
|
StatusMessagesEnabled = false
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ namespace Microsoft.AspNetCore.Hosting.FunctionalTests
|
||||||
public WebHostBuilderTests(ITestOutputHelper output) : base(output) { }
|
public WebHostBuilderTests(ITestOutputHelper output) : base(output) { }
|
||||||
|
|
||||||
public static TestMatrix TestVariants => TestMatrix.ForServers(ServerType.Kestrel)
|
public static TestMatrix TestVariants => TestMatrix.ForServers(ServerType.Kestrel)
|
||||||
.WithTfms(Tfm.NetCoreApp50);
|
.WithTfms(Tfm.Net50);
|
||||||
|
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
[MemberData(nameof(TestVariants))]
|
[MemberData(nameof(TestVariants))]
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@ namespace Microsoft.AspNetCore.WebSockets.ConformanceTest.Autobahn
|
||||||
{
|
{
|
||||||
Scheme = (ssl ? Uri.UriSchemeHttps : Uri.UriSchemeHttp),
|
Scheme = (ssl ? Uri.UriSchemeHttps : Uri.UriSchemeHttp),
|
||||||
ApplicationType = ApplicationType.Portable,
|
ApplicationType = ApplicationType.Portable,
|
||||||
TargetFramework = "netcoreapp5.0",
|
TargetFramework = "Net5.0",
|
||||||
EnvironmentName = environment,
|
EnvironmentName = environment,
|
||||||
SiteName = "HttpTestSite", // This is configured in the Http.config
|
SiteName = "HttpTestSite", // This is configured in the Http.config
|
||||||
ServerConfigTemplateContent = (server == ServerType.IISExpress) ? File.ReadAllText(configPath) : null,
|
ServerConfigTemplateContent = (server == ServerType.IISExpress) ? File.ReadAllText(configPath) : null,
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ namespace E2ETests
|
||||||
{
|
{
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(ServerType.Kestrel)
|
=> TestMatrix.ForServers(ServerType.Kestrel)
|
||||||
.WithTfms(Tfm.NetCoreApp50);
|
.WithTfms(Tfm.Net50);
|
||||||
|
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
[MemberData(nameof(TestVariants))]
|
[MemberData(nameof(TestVariants))]
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ namespace E2ETests
|
||||||
{
|
{
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.HttpSys)
|
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.HttpSys)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllApplicationTypes()
|
.WithAllApplicationTypes()
|
||||||
.WithAllArchitectures();
|
.WithAllArchitectures();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ namespace E2ETests
|
||||||
{
|
{
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel)
|
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel)
|
||||||
.WithTfms(Tfm.NetCoreApp50);
|
.WithTfms(Tfm.Net50);
|
||||||
|
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
[MemberData(nameof(TestVariants))]
|
[MemberData(nameof(TestVariants))]
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ namespace E2ETests
|
||||||
{
|
{
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.HttpSys)
|
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.HttpSys)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllApplicationTypes()
|
.WithAllApplicationTypes()
|
||||||
.WithAllHostingModels()
|
.WithAllHostingModels()
|
||||||
.WithAllArchitectures();
|
.WithAllArchitectures();
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ namespace E2ETests
|
||||||
{
|
{
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys)
|
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllApplicationTypes()
|
.WithAllApplicationTypes()
|
||||||
.WithAllHostingModels();
|
.WithAllHostingModels();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -244,7 +244,7 @@ namespace E2ETests
|
||||||
_remoteDeploymentConfig.AccountName,
|
_remoteDeploymentConfig.AccountName,
|
||||||
_remoteDeploymentConfig.AccountPassword)
|
_remoteDeploymentConfig.AccountPassword)
|
||||||
{
|
{
|
||||||
TargetFramework = Tfm.NetCoreApp50,
|
TargetFramework = Tfm.Net50,
|
||||||
ApplicationBaseUriHint = applicationBaseUrl,
|
ApplicationBaseUriHint = applicationBaseUrl,
|
||||||
ApplicationType = applicationType
|
ApplicationType = applicationType
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ namespace E2ETests
|
||||||
EnvironmentName = "SocialTesting",
|
EnvironmentName = "SocialTesting",
|
||||||
PublishApplicationBeforeDeployment = true,
|
PublishApplicationBeforeDeployment = true,
|
||||||
PreservePublishedApplicationForDebugging = Helpers.PreservePublishedApplicationForDebugging,
|
PreservePublishedApplicationForDebugging = Helpers.PreservePublishedApplicationForDebugging,
|
||||||
TargetFramework = Tfm.NetCoreApp50,
|
TargetFramework = Tfm.Net50,
|
||||||
UserAdditionalCleanup = parameters =>
|
UserAdditionalCleanup = parameters =>
|
||||||
{
|
{
|
||||||
DbUtils.DropDatabase(musicStoreDbName, logger);
|
DbUtils.DropDatabase(musicStoreDbName, logger);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<Project>
|
<Project>
|
||||||
<!-- This file gets copied above the template test projects so that we disconnect the templates from the rest of the repository -->
|
<!-- This file gets copied above the template test projects so that we disconnect the templates from the rest of the repository -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -85,12 +85,12 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replaces": "netcoreapp5.0",
|
"replaces": "net5.0",
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"HostIdentifier": {
|
"HostIdentifier": {
|
||||||
"type": "bind",
|
"type": "bind",
|
||||||
|
|
|
||||||
|
|
@ -337,12 +337,12 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replaces": "netcoreapp5.0",
|
"replaces": "net5.0",
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"copyrightYear": {
|
"copyrightYear": {
|
||||||
"type": "generated",
|
"type": "generated",
|
||||||
|
|
|
||||||
|
|
@ -86,12 +86,12 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replaces": "netcoreapp5.0",
|
"replaces": "net5.0",
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"copyrightYear": {
|
"copyrightYear": {
|
||||||
"type": "generated",
|
"type": "generated",
|
||||||
|
|
|
||||||
|
|
@ -82,12 +82,12 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replaces": "netcoreapp5.0",
|
"replaces": "net5.0",
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"copyrightYear": {
|
"copyrightYear": {
|
||||||
"type": "generated",
|
"type": "generated",
|
||||||
|
|
|
||||||
|
|
@ -41,11 +41,11 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"ExcludeLaunchSettings": {
|
"ExcludeLaunchSettings": {
|
||||||
"type": "parameter",
|
"type": "parameter",
|
||||||
|
|
|
||||||
|
|
@ -47,11 +47,11 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"HostIdentifier": {
|
"HostIdentifier": {
|
||||||
"type": "bind",
|
"type": "bind",
|
||||||
|
|
|
||||||
|
|
@ -316,12 +316,12 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replaces": "netcoreapp5.0",
|
"replaces": "net5.0",
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"copyrightYear": {
|
"copyrightYear": {
|
||||||
"type": "generated",
|
"type": "generated",
|
||||||
|
|
|
||||||
|
|
@ -306,12 +306,12 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replaces": "netcoreapp5.0",
|
"replaces": "net5.0",
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"copyrightYear": {
|
"copyrightYear": {
|
||||||
"type": "generated",
|
"type": "generated",
|
||||||
|
|
|
||||||
|
|
@ -87,12 +87,12 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replaces": "netcoreapp5.0",
|
"replaces": "net5.0",
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"copyrightYear": {
|
"copyrightYear": {
|
||||||
"type": "generated",
|
"type": "generated",
|
||||||
|
|
|
||||||
|
|
@ -209,12 +209,12 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replaces": "netcoreapp5.0",
|
"replaces": "net5.0",
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"copyrightYear": {
|
"copyrightYear": {
|
||||||
"type": "generated",
|
"type": "generated",
|
||||||
|
|
|
||||||
|
|
@ -82,12 +82,12 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replaces": "netcoreapp5.0",
|
"replaces": "net5.0",
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"copyrightYear": {
|
"copyrightYear": {
|
||||||
"type": "generated",
|
"type": "generated",
|
||||||
|
|
|
||||||
|
|
@ -47,12 +47,12 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replaces": "netcoreapp5.0",
|
"replaces": "net5.0",
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"copyrightYear": {
|
"copyrightYear": {
|
||||||
"type": "generated",
|
"type": "generated",
|
||||||
|
|
|
||||||
|
|
@ -177,12 +177,12 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replaces": "netcoreapp5.0",
|
"replaces": "net5.0",
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"HostIdentifier": {
|
"HostIdentifier": {
|
||||||
"type": "bind",
|
"type": "bind",
|
||||||
|
|
|
||||||
|
|
@ -178,12 +178,12 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replaces": "netcoreapp5.0",
|
"replaces": "net5.0",
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"HostIdentifier": {
|
"HostIdentifier": {
|
||||||
"type": "bind",
|
"type": "bind",
|
||||||
|
|
|
||||||
|
|
@ -87,12 +87,12 @@
|
||||||
"datatype": "choice",
|
"datatype": "choice",
|
||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"choice": "netcoreapp5.0",
|
"choice": "net5.0",
|
||||||
"description": "Target netcoreapp5.0"
|
"description": "Target net5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replaces": "netcoreapp5.0",
|
"replaces": "net5.0",
|
||||||
"defaultValue": "netcoreapp5.0"
|
"defaultValue": "net5.0"
|
||||||
},
|
},
|
||||||
"HostIdentifier": {
|
"HostIdentifier": {
|
||||||
"type": "bind",
|
"type": "bind",
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ function Test-Template($templateName, $templateArgs, $templateNupkg, $isSPA) {
|
||||||
$proj = "$tmpDir/$templateName.$extension"
|
$proj = "$tmpDir/$templateName.$extension"
|
||||||
$projContent = Get-Content -Path $proj -Raw
|
$projContent = Get-Content -Path $proj -Raw
|
||||||
$projContent = $projContent -replace ('<Project Sdk="Microsoft.NET.Sdk.Web">', "<Project Sdk=""Microsoft.NET.Sdk.Web"">
|
$projContent = $projContent -replace ('<Project Sdk="Microsoft.NET.Sdk.Web">', "<Project Sdk=""Microsoft.NET.Sdk.Web"">
|
||||||
<Import Project=""$PSScriptRoot/../test/bin/Debug/netcoreapp5.0/TestTemplates/TemplateTests.props"" />
|
<Import Project=""$PSScriptRoot/../test/bin/Debug/net5.0/TestTemplates/TemplateTests.props"" />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include=""Microsoft.NET.Sdk.Razor"" Version=""`$(MicrosoftNETSdkRazorPackageVersion)"" />
|
<PackageReference Include=""Microsoft.NET.Sdk.Razor"" Version=""`$(MicrosoftNETSdkRazorPackageVersion)"" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
@ -42,7 +42,7 @@ function Test-Template($templateName, $templateArgs, $templateNupkg, $isSPA) {
|
||||||
$projContent | Set-Content $proj
|
$projContent | Set-Content $proj
|
||||||
dotnet.exe ef migrations add mvc
|
dotnet.exe ef migrations add mvc
|
||||||
dotnet.exe publish --configuration Release
|
dotnet.exe publish --configuration Release
|
||||||
dotnet.exe bin\Release\netcoreapp5.0\publish\$templateName.dll
|
dotnet.exe bin\Release\net5.0\publish\$templateName.dll
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
Pop-Location
|
Pop-Location
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<Project>
|
<Project>
|
||||||
<!-- This file gets copied above the template test projects so that we disconnect the templates from the rest of the repository -->
|
<!-- This file gets copied above the template test projects so that we disconnect the templates from the rest of the repository -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithApplicationTypes(ApplicationType.Portable)
|
.WithApplicationTypes(ApplicationType.Portable)
|
||||||
.WithAllHostingModels();
|
.WithAllHostingModels();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllApplicationTypes()
|
.WithAllApplicationTypes()
|
||||||
.WithAllHostingModels();
|
.WithAllHostingModels();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllApplicationTypes()
|
.WithAllApplicationTypes()
|
||||||
.WithAllHostingModels();
|
.WithAllHostingModels();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllApplicationTypes()
|
.WithAllApplicationTypes()
|
||||||
.WithAllHostingModels();
|
.WithAllHostingModels();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests.InProcess
|
||||||
|
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllApplicationTypes()
|
.WithAllApplicationTypes()
|
||||||
.WithAncmV2InProcess();
|
.WithAncmV2InProcess();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllApplicationTypes()
|
.WithAllApplicationTypes()
|
||||||
.WithAllHostingModels();
|
.WithAllHostingModels();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests.OutOfProcess
|
||||||
|
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithApplicationTypes(ApplicationType.Portable);
|
.WithApplicationTypes(ApplicationType.Portable);
|
||||||
|
|
||||||
public static IEnumerable<object[]> InvalidTestVariants
|
public static IEnumerable<object[]> InvalidTestVariants
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests.OutOfProcess
|
||||||
|
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllApplicationTypes();
|
.WithAllApplicationTypes();
|
||||||
|
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests
|
||||||
RuntimeFlavor = RuntimeFlavor.CoreClr,
|
RuntimeFlavor = RuntimeFlavor.CoreClr,
|
||||||
RuntimeArchitecture = RuntimeArchitecture.x64,
|
RuntimeArchitecture = RuntimeArchitecture.x64,
|
||||||
HostingModel = hostingModel,
|
HostingModel = hostingModel,
|
||||||
TargetFramework = Tfm.NetCoreApp50
|
TargetFramework = Tfm.Net50
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests
|
||||||
{
|
{
|
||||||
RuntimeArchitecture = RuntimeArchitecture.x64,
|
RuntimeArchitecture = RuntimeArchitecture.x64,
|
||||||
RuntimeFlavor = RuntimeFlavor.CoreClr,
|
RuntimeFlavor = RuntimeFlavor.CoreClr,
|
||||||
TargetFramework = Tfm.NetCoreApp50,
|
TargetFramework = Tfm.Net50,
|
||||||
HostingModel = HostingModel.InProcess,
|
HostingModel = HostingModel.InProcess,
|
||||||
PublishApplicationBeforeDeployment = true,
|
PublishApplicationBeforeDeployment = true,
|
||||||
ApplicationPublisher = new PublishedApplicationPublisher(Helpers.GetInProcessTestSitesName()),
|
ApplicationPublisher = new PublishedApplicationPublisher(Helpers.GetInProcessTestSitesName()),
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithApplicationTypes(ApplicationType.Portable)
|
.WithApplicationTypes(ApplicationType.Portable)
|
||||||
.WithAllHostingModels();
|
.WithAllHostingModels();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
=> TestMatrix.ForServers(DeployerSelector.ServerType)
|
||||||
.WithTfms(Tfm.NetCoreApp50);
|
.WithTfms(Tfm.Net50);
|
||||||
|
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
[RequiresIIS(IISCapability.WindowsAuthentication)]
|
[RequiresIIS(IISCapability.WindowsAuthentication)]
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ namespace ServerComparison.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
|
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithApplicationTypes(ApplicationType.Portable)
|
.WithApplicationTypes(ApplicationType.Portable)
|
||||||
.WithAllHostingModels()
|
.WithAllHostingModels()
|
||||||
.WithAllArchitectures();
|
.WithAllArchitectures();
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace ServerComparison.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.HttpSys, ServerType.Kestrel)
|
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.HttpSys, ServerType.Kestrel)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllHostingModels();
|
.WithAllHostingModels();
|
||||||
|
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ namespace ServerComparison.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix NoCompressionTestVariants
|
public static TestMatrix NoCompressionTestVariants
|
||||||
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
|
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllHostingModels();
|
.WithAllHostingModels();
|
||||||
|
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
|
|
@ -45,7 +45,7 @@ namespace ServerComparison.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix HostCompressionTestVariants
|
public static TestMatrix HostCompressionTestVariants
|
||||||
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Nginx)
|
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Nginx)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllHostingModels();
|
.WithAllHostingModels();
|
||||||
|
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
|
|
@ -57,7 +57,7 @@ namespace ServerComparison.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix AppCompressionTestVariants
|
public static TestMatrix AppCompressionTestVariants
|
||||||
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys) // No pass-through compression for nginx
|
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys) // No pass-through compression for nginx
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllHostingModels();
|
.WithAllHostingModels();
|
||||||
|
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
|
|
@ -69,7 +69,7 @@ namespace ServerComparison.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix HostAndAppCompressionTestVariants
|
public static TestMatrix HostAndAppCompressionTestVariants
|
||||||
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
|
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllHostingModels();
|
.WithAllHostingModels();
|
||||||
|
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ namespace ServerComparison.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix TestVariants
|
public static TestMatrix TestVariants
|
||||||
=> TestMatrix.ForServers(/* ServerType.IISExpress, https://github.com/dotnet/aspnetcore/issues/6168, */ ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
|
=> TestMatrix.ForServers(/* ServerType.IISExpress, https://github.com/dotnet/aspnetcore/issues/6168, */ ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
|
||||||
.WithTfms(Tfm.NetCoreApp50)
|
.WithTfms(Tfm.Net50)
|
||||||
.WithAllHostingModels();
|
.WithAllHostingModels();
|
||||||
|
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
|
|
@ -52,7 +52,7 @@ namespace ServerComparison.FunctionalTests
|
||||||
|
|
||||||
public static TestMatrix SelfhostTestVariants
|
public static TestMatrix SelfhostTestVariants
|
||||||
=> TestMatrix.ForServers(ServerType.Kestrel, ServerType.HttpSys)
|
=> TestMatrix.ForServers(ServerType.Kestrel, ServerType.HttpSys)
|
||||||
.WithTfms(Tfm.NetCoreApp50);
|
.WithTfms(Tfm.Net50);
|
||||||
|
|
||||||
// Connection Close tests do not work through reverse proxies
|
// Connection Close tests do not work through reverse proxies
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ namespace BenchmarkDotNet.Attributes
|
||||||
#elif NETCOREAPP3_1
|
#elif NETCOREAPP3_1
|
||||||
.WithToolchain(CsProjCoreToolchain.From(new NetCoreAppSettings("netcoreapp3.1", null, ".NET Core 3.1")))
|
.WithToolchain(CsProjCoreToolchain.From(new NetCoreAppSettings("netcoreapp3.1", null, ".NET Core 3.1")))
|
||||||
#elif NETCOREAPP5_0
|
#elif NETCOREAPP5_0
|
||||||
.WithToolchain(CsProjCoreToolchain.From(new NetCoreAppSettings("netcoreapp5.0", null, ".NET Core 5.0")))
|
.WithToolchain(CsProjCoreToolchain.From(new NetCoreAppSettings("net5.0", null, ".NET Core 5.0")))
|
||||||
#else
|
#else
|
||||||
#error Target frameworks need to be updated.
|
#error Target frameworks need to be updated.
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ param(
|
||||||
[Parameter(Mandatory = $true)][string]$ToolingRepoPath
|
[Parameter(Mandatory = $true)][string]$ToolingRepoPath
|
||||||
)
|
)
|
||||||
|
|
||||||
$ToolPath = Join-Path $ToolingRepoPath "artifacts\bin\RazorPageGenerator\Debug\netcoreapp5.0\dotnet-razorpagegenerator.exe"
|
$ToolPath = Join-Path $ToolingRepoPath "artifacts\bin\RazorPageGenerator\Debug\net5.0\dotnet-razorpagegenerator.exe"
|
||||||
|
|
||||||
if (!(Test-Path $ToolPath)) {
|
if (!(Test-Path $ToolPath)) {
|
||||||
throw "Unable to find razor page generator tool at $ToolPath"
|
throw "Unable to find razor page generator tool at $ToolPath"
|
||||||
|
|
|
||||||
|
|
@ -245,7 +245,7 @@ function runJest(httpsUrl: string, httpUrl: string) {
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
const serverPath = path.resolve(ARTIFACTS_DIR, "bin", "SignalR.Client.FunctionalTestApp", configuration, "netcoreapp5.0", "SignalR.Client.FunctionalTestApp.dll");
|
const serverPath = path.resolve(ARTIFACTS_DIR, "bin", "SignalR.Client.FunctionalTestApp", configuration, "net5.0", "SignalR.Client.FunctionalTestApp.dll");
|
||||||
|
|
||||||
debug(`Launching Functional Test Server: ${serverPath}`);
|
debug(`Launching Functional Test Server: ${serverPath}`);
|
||||||
let desiredServerUrl = "https://127.0.0.1:0;http://127.0.0.1:0";
|
let desiredServerUrl = "https://127.0.0.1:0;http://127.0.0.1:0";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
param($RootDirectory = (Get-Location), $Framework = "netcoreapp5.0", $Runtime = "win-x64", $CommitHash, $BranchName, $BuildNumber)
|
param($RootDirectory = (Get-Location), $Framework = "net5.0", $Runtime = "win-x64", $CommitHash, $BranchName, $BuildNumber)
|
||||||
|
|
||||||
# De-Powershell the path
|
# De-Powershell the path
|
||||||
$RootDirectory = (Convert-Path $RootDirectory)
|
$RootDirectory = (Convert-Path $RootDirectory)
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace Microsoft.DotNet.OpenApi.Tests
|
||||||
protected readonly TextWriter _output = new StringWriter();
|
protected readonly TextWriter _output = new StringWriter();
|
||||||
protected readonly TextWriter _error = new StringWriter();
|
protected readonly TextWriter _error = new StringWriter();
|
||||||
protected readonly ITestOutputHelper _outputHelper;
|
protected readonly ITestOutputHelper _outputHelper;
|
||||||
protected const string TestTFM = "netcoreapp5.0";
|
protected const string TestTFM = "net5.0";
|
||||||
|
|
||||||
protected const string Content = @"{""x-generator"": ""NSwag""}";
|
protected const string Content = @"{""x-generator"": ""NSwag""}";
|
||||||
protected const string ActualUrl = "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/api-with-examples.yaml";
|
protected const string ActualUrl = "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/api-with-examples.yaml";
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ namespace Microsoft.Extensions.Configuration.UserSecrets.Tests
|
||||||
private const string ProjectTemplate = @"<Project ToolsVersion=""15.0"" Sdk=""Microsoft.NET.Sdk"">
|
private const string ProjectTemplate = @"<Project ToolsVersion=""15.0"" Sdk=""Microsoft.NET.Sdk"">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFrameworks>netcoreapp5.0</TargetFrameworks>
|
<TargetFrameworks>net5.0</TargetFrameworks>
|
||||||
{0}
|
{0}
|
||||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace Microsoft.DotNet.Watcher.Tools.Tests
|
||||||
{
|
{
|
||||||
_tempDir
|
_tempDir
|
||||||
.WithCSharpProject("testproj")
|
.WithCSharpProject("testproj")
|
||||||
.WithTargetFrameworks("netcoreapp5.0")
|
.WithTargetFrameworks("net5.0")
|
||||||
.Dir()
|
.Dir()
|
||||||
.WithFile("Program.cs")
|
.WithFile("Program.cs")
|
||||||
.Create();
|
.Create();
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<OutputType>exe</OutputType>
|
<OutputType>exe</OutputType>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<OutputType>exe</OutputType>
|
<OutputType>exe</OutputType>
|
||||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<OutputType>exe</OutputType>
|
<OutputType>exe</OutputType>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue