Skip to content

Commit 2ff5abb

Browse files
authored
Merge branch 'release/2.2' into merge/release/2.1-to-release/2.2
2 parents 82c42d5 + 731293d commit 2ff5abb

File tree

7,744 files changed

+536374
-233297
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,744 files changed

+536374
-233297
lines changed

.azure/pipelines/ci.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,44 @@ jobs:
1414
jobDisplayName: "Build and test: Windows"
1515
agentOs: Windows
1616
beforeBuild:
17-
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1"
18-
displayName: Setup IISExpress test certificates
17+
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
18+
displayName: Setup IISExpress test certificates and schema
1919
- template: jobs/default-build.yml
2020
parameters:
21-
jobName: macOs_Build
22-
jobDisplayName: "Build and test : macOS"
23-
agentOs: macOS
21+
jobName: MacOs_Build
22+
jobDisplayName: "Build and test: macOS"
23+
agentOs: macOs
2424
- template: jobs/default-build.yml
2525
parameters:
2626
jobName: Linux_Build
27-
jobDisplayName: "Build and test : Linux"
27+
jobDisplayName: "Build and test: Linux"
2828
agentOs: Linux
29+
# - template: jobs/iisintegration-job.yml
30+
# parameters:
31+
# TestGroupName: IIS
32+
# SkipIISTests: false
33+
# SkipIISExpressTests: true
34+
# SkipIISForwardsCompatibilityTests: true
35+
# SkipIISBackwardsCompatibilityTests: true
36+
# - template: jobs/iisintegration-job.yml
37+
# parameters:
38+
# TestGroupName: IISExpress
39+
# SkipIISTests: true
40+
# SkipIISExpressTests: false
41+
# SkipIISForwardsCompatibilityTests: true
42+
# SkipIISBackwardsCompatibilityTests: true
43+
# - template: jobs/iisintegration-job.yml
44+
# parameters:
45+
# TestGroupName: IISForwardCompat
46+
# SkipIISTests: true
47+
# SkipIISExpressTests: true
48+
# SkipIISForwardsCompatibilityTests: false
49+
# SkipIISBackwardsCompatibilityTests: true
50+
# - template: jobs/iisintegration-job.yml
51+
# parameters:
52+
# TestGroupName: IISBackCompat
53+
# SkipIISTests: true
54+
# SkipIISExpressTests: true
55+
# SkipIISForwardsCompatibilityTests: true
56+
# SkipIISBackwardsCompatibilityTests: false
57+

.azure/pipelines/e2e-tests.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,32 @@ jobs:
5151
pool:
5252
vmImage: macOS-10.13
5353
strategy:
54-
maxParallel: 4
55-
# The ASP.NET Core 2.1.X templates are incompatible with Node10 on macOS
56-
# https://github.com/aspnet/Templating/issues/608
54+
maxParallel: 8
5755
matrix:
5856
Portable_Node8:
5957
Test.RuntimeIdentifier: none
6058
Node.Version: 8.x
59+
Portable_Node10:
60+
Test.RuntimeIdentifier: none
61+
Node.Version: 10.x
6162
SelfContainedWindows_Node8:
6263
Test.RuntimeIdentifier: win-x64
6364
Node.Version: 8.x
65+
SelfContainedWindows_Node10:
66+
Test.RuntimeIdentifier: win-x64
67+
Node.Version: 10.x
6468
SelfContainedLinux_Node8:
6569
Test.RuntimeIdentifier: linux-x64
6670
Node.Version: 8.x
71+
SelfContainedLinux_Node10:
72+
Test.RuntimeIdentifier: linux-x64
73+
Node.Version: 10.x
6774
SelfContainedMacOs_Node8:
6875
Test.RuntimeIdentifier: osx-x64
6976
Node.Version: 8.x
77+
SelfContainedMacOs_Node10:
78+
Test.RuntimeIdentifier: osx-x64
79+
Node.Version: 10.x
7080
steps:
7181
- task: NodeTool@0
7282
displayName: Install Node $(Node.Version)

.azure/pipelines/jobs/default-build.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- job: ${{ coalesce(parameters.jobName, parameters.agentOs) }}
6161
displayName: ${{ coalesce(parameters.jobDisplayName, parameters.agentOs) }}
6262
dependsOn: ${{ parameters.dependsOn }}
63-
timeoutInMinutes: 90
63+
timeoutInMinutes: 120
6464
workspace:
6565
clean: all
6666
strategy:
@@ -94,6 +94,8 @@ jobs:
9494
TeamName: AspNetCore
9595
${{ if eq(parameters.agentOs, 'Windows') }}:
9696
JAVA_HOME: $(Agent.BuildDirectory)\.tools\jdk
97+
${{ if eq(parameters.agentOs, 'Linux') }}:
98+
JAVA_HOME: $(Agent.BuildDirectory)/.tools/jdk
9799
${{ if or(ne(parameters.codeSign, 'true'), ne(variables['System.TeamProject'], 'internal'), in(variables['Build.Reason'], 'PullRequest')) }}:
98100
_SignType:
99101
${{ if and(eq(parameters.codeSign, 'true'), eq(variables['System.TeamProject'], 'internal'), notin(variables['Build.Reason'], 'PullRequest')) }}:
@@ -115,6 +117,16 @@ jobs:
115117
inputs:
116118
command: custom
117119
arguments: 'locals all -clear'
120+
- ${{ if eq(parameters.agentOs, 'Linux') }}:
121+
- script: ./eng/scripts/InstallJdk.sh '10.0.2'
122+
displayName: Install JDK 10
123+
- script: |
124+
sudo apt-get update
125+
sudo apt-get install -y libasound2 libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 libcairo2 \
126+
libgdk-pixbuf2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libx11-6 \
127+
libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxrandr2 libxrender1 libxss1 libxtst6
128+
129+
displayName: Install additional packages
118130
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), eq(parameters.agentOs, 'Windows'), eq(parameters.codeSign, 'true')) }}:
119131
- task: MicroBuildSigningPlugin@1
120132
displayName: Install MicroBuild Signing plugin
@@ -143,7 +155,7 @@ jobs:
143155
inputs:
144156
testRunTitle: $(AgentOsName)-$(BuildConfiguration)
145157
testRunner: vstest
146-
testResultsFiles: 'artifacts/logs/**/*.trx'
158+
testResultsFiles: '**/artifacts/**/*.trx'
147159
mergeTestResults: true
148160
- ${{ if eq(parameters.artifacts.publish, 'true') }}:
149161
- task: PublishBuildArtifacts@1
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
jobs:
22
- template: default-build.yml
33
parameters:
4-
jobName: 'IISIntegration'
5-
jobDisplayName: 'IISIntegration'
64
beforeBuild:
7-
- powershell: "& ./src/servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/servers/IIS/tools/SetupTestEnvironment.ps1 Setup"
5+
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1; & ./src/Servers/IIS/tools/SetupTestEnvironment.ps1 Setup"
86
displayName: Prepare repo
97
afterBuild:
10-
- powershell: "& ./src/servers/IIS/tools/SetupTestEnvironment.ps1 Shutdown"
8+
- powershell: "& ./src/Servers/IIS/tools/SetupTestEnvironment.ps1 Shutdown"
119
displayName: Stop AppVerifier
1210
condition: always()
1311
- task: PublishBuildArtifacts@1
@@ -16,5 +14,9 @@ jobs:
1614
inputs:
1715
artifactName: logs
1816
artifactType: Container
19-
pathtoPublish: src/servers/IIS/artifacts/logs
20-
buildDirectory: src/servers/IIS
17+
pathtoPublish: src/IISIntegration/artifacts/logs
18+
buildDirectory: src/Servers/IIS
19+
buildArgs: "/p:SkipIISBackwardsCompatibilityTests=${{ parameters.SkipIISBackwardsCompatibilityTests }} /p:SkipIISTests=${{ parameters.SkipIISTests }} /p:SkipIISExpressTests=${{ parameters.SkipIISExpressTests }} /p:SkipIISForwardsCompatibilityTests=${{ parameters.SkipIISBackwardsCompatibilityTests }}"
20+
jobName: IISIntegration_${{ parameters.TestGroupName }}
21+
jobDisplayName: IISIntegration_${{ parameters.TestGroupName }}
22+

.azure/pipelines/project-ci.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.azure/pipelines/site-extensions.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
trigger:
2+
branches:
3+
include:
4+
- release/2.2
5+
paths:
6+
include:
7+
- src/SiteExtensions
8+
9+
name: $(Date:yyMMdd)-$(Rev:rr)
10+
11+
phases:
12+
- phase: SiteExtensions
13+
variables:
14+
CI: true
15+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
16+
17+
# This variable is required by MicroBuildSigningPlugin to determine permissions for codesigning.
18+
TeamName: AspNetCore
19+
20+
# SignType = { test, real }
21+
# This is prefixed underscore because variables automatically become environment variables (and therefore MSBuild properties),
22+
# and this one was causing issues in MSBuild projects which use the $(SignType) MSbuild prop.
23+
_SignType: real
24+
25+
steps:
26+
- task: MicroBuildSigningPlugin@1
27+
displayName: Install MicroBuild plugin
28+
condition: and(succeeded(), in(variables['_SignType'], 'test', 'real'))
29+
inputs:
30+
signType: $(_SignType)
31+
zipSources: false
32+
- script: src/SiteExtensions/LoggingAggregate/build.cmd -ci
33+
displayName: Run src/SiteExtensions/LoggingAggregate/build.cmd
34+
- task: PublishBuildArtifacts@1
35+
displayName: Upload artifacts
36+
condition: eq(variables['system.pullrequest.isfork'], false)
37+
inputs:
38+
pathtoPublish: ./src/SiteExtensions/LoggingAggregate/artifacts/
39+
artifactName: artifacts-Windows-Release
40+
artifactType: Container
41+
- task: MicroBuildCleanup@1
42+
displayName: Cleanup MicroBuild tasks
43+
condition: always()

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ charset = utf-8
1111
trim_trailing_whitespace = true
1212
insert_final_newline = true
1313

14-
[*.{cs}]
14+
[*.cs]
1515
indent_size = 4
1616
dotnet_sort_system_directives_first = true:warning
1717

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ node_modules/
1919
.r
2020
.w
2121
.deps
22-
global.json
2322
msbuild.ProjectImports.zip
2423
.env
2524
scripts/tmp/
2625
.dotnet/
2726
.tools/
27+
src/**/global.json
2828
launchSettings.json
2929
korebuild-lock.txt
3030
.gradle/

.gitmodules

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
[submodule "modules/EntityFrameworkCore"]
2-
path = modules/EntityFrameworkCore
3-
url = https://github.com/aspnet/EntityFrameworkCore.git
4-
branch = release/2.1
2+
path = modules/EntityFrameworkCore
3+
url = https://github.com/aspnet/EntityFrameworkCore.git
4+
branch = release/2.2
5+
[submodule "googletest"]
6+
path = src/submodules/googletest
7+
url = https://github.com/google/googletest

Directory.Build.props

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,75 @@
33

44
<PropertyGroup>
55
<Product>Microsoft ASP.NET Core</Product>
6+
7+
<Authors>Microsoft</Authors>
8+
<Company>Microsoft Corporation.</Company>
9+
<RpmPackageVendor>.NET Foundation</RpmPackageVendor>
10+
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
11+
<NeutralLanguage>en-US</NeutralLanguage>
12+
<PackageLicenseUrl>https://raw.githubusercontent.com/aspnet/AspNetCore/2.0.0/LICENSE.txt</PackageLicenseUrl>
13+
<!-- The SPDX name for the source license. See https://spdx.org/licenses/. -->
14+
<PackageLicenseType>Apache-2.0</PackageLicenseType>
15+
<!--
16+
Suppress a warning about upcoming deprecation of PackageLicenseUrl. When embedding licenses are supported,
17+
replace PackageLicenseUrl with PackageLicenseExpression.
18+
-->
19+
<NoWarn>$(NoWarn);NU5125</NoWarn>
20+
<!-- Suppress warnings about using SemVer 2.0. -->
21+
<NoWarn>$(NoWarn);NU5105</NoWarn>
22+
23+
<!-- Contact email address for NuGet packages and Linux installers. -->
24+
<MaintainerEmail>[email protected]</MaintainerEmail>
25+
26+
<PackageIconUrl>https://go.microsoft.com/fwlink/?LinkID=288859</PackageIconUrl>
27+
<PackageProjectUrl>https://asp.net</PackageProjectUrl>
28+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
29+
<Serviceable>true</Serviceable>
30+
631
<RepositoryRoot>$(MSBuildThisFileDirectory)</RepositoryRoot>
732
<RepositoryUrl>https://github.com/aspnet/AspNetCore</RepositoryUrl>
833
<RepositoryType>git</RepositoryType>
34+
35+
<SharedFxProductName>$(Product) $(PackageVersion) Shared Framework</SharedFxProductName>
36+
<SharedFxDescription>Shared Framework for hosting of Microsoft ASP.NET Core applications. It is open source, cross-platform and is supported by Microsoft. We hope you enjoy using it! If you do, please consider joining the active community of developers that are contributing to the project on GitHub ($(RepositoryUrl)). We happily accept issues and PRs.</SharedFxDescription>
37+
</PropertyGroup>
38+
39+
<!-- Compilation options -->
40+
<PropertyGroup>
941
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)eng\AspNetCore.snk</AssemblyOriginatorKeyFile>
1042
<SignAssembly>true</SignAssembly>
1143
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
44+
45+
<!-- Instructs the compiler to use SHA256 instead of SHA1 when adding file hashes to PDBs. -->
46+
<ChecksumAlgorithm>SHA256</ChecksumAlgorithm>
47+
<!-- Suppress the message about using a preview version of .NET Core SDK. We are okay with this and don't need the warning. -->
48+
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
49+
50+
<!-- Fixes a common error in targets implementing a NoBuild mode. -->
51+
<BuildProjectReferences Condition=" '$(NoBuild)' == 'true' ">false</BuildProjectReferences>
52+
</PropertyGroup>
53+
54+
<!-- Certificate names used for Authenticode signing. -->
55+
<PropertyGroup Condition=" '$(DisableCodeSigning)' != 'true' ">
56+
<AssemblySigningCertName>Microsoft400</AssemblySigningCertName>
57+
<AssemblySigning3rdPartyCertName>3PartySHA2</AssemblySigning3rdPartyCertName>
58+
<PowerShellSigningCertName>Microsoft400</PowerShellSigningCertName>
59+
<PackageSigningCertName>NuGet</PackageSigningCertName>
60+
<VsixSigningCertName>VsixSHA2</VsixSigningCertName>
61+
<JarSigningCertName>MicrosoftJARSHA2</JarSigningCertName>
1262
</PropertyGroup>
1363

1464
<Import Project="build\external-dependencies.props" />
1565
<Import Project="build\sources.props" />
1666

67+
<!-- Folder layout -->
1768
<PropertyGroup>
1869
<ArtifactsDir Condition="'$(ArtifactsDir)' == ''">$(RepositoryRoot)artifacts\</ArtifactsDir>
1970
<ArtifactsObjDir>$(ArtifactsDir)obj\</ArtifactsObjDir>
71+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
2072
<ArtifactsConfigurationDir>$(ArtifactsDir)$(Configuration)\</ArtifactsConfigurationDir>
2173
<ArtifactsBinDir>$(ArtifactsConfigurationDir)bin\</ArtifactsBinDir>
74+
<InstallersOutputPath>$(ArtifactsConfigurationDir)installers\</InstallersOutputPath>
2275
<PackageOutputPath>$(ArtifactsDir)build\</PackageOutputPath>
2376

2477
<RepoRelativeProjectDir>$([MSBuild]::MakeRelative($(RepositoryRoot), $(MSBuildProjectDirectory)))</RepoRelativeProjectDir>
@@ -32,6 +85,7 @@
3285
<IncludeSymbols>true</IncludeSymbols>
3386

3487
<SharedSourceRoot>$(MSBuildThisFileDirectory)src\Shared\</SharedSourceRoot>
88+
<GoogleTestSubmoduleRoot>$(RepositoryRoot)src\submodules\googletest\</GoogleTestSubmoduleRoot>
3589

3690
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
3791
<DisableDeterministicSourceRoot Condition="'$(IsSampleProject)' == 'true' OR '$(IsTestAssetProject)' == 'true'">true</DisableDeterministicSourceRoot>
@@ -45,9 +99,11 @@
4599
<Import Project="eng\Dependencies.props" />
46100
<Import Project="eng\PatchConfig.props" />
47101
<Import Project="eng\ProjectReferences.props" />
48-
<Import Project="eng\targets\Wix.Common.props" Condition="'$(MSBuildProjectExtension)' == '.wixproj'" />
49-
<Import Project="eng\targets\CSharp.Common.props" Condition="'$(MSBuildProjectExtension)' == '.csproj'" />
102+
<Import Project="eng\targets\RuntimeIdentifiers.props" />
50103
<Import Project="eng\targets\Cpp.Common.props" Condition="'$(MSBuildProjectExtension)' == '.vcxproj'" />
104+
<Import Project="eng\targets\CSharp.Common.props" Condition="'$(MSBuildProjectExtension)' == '.csproj'" />
105+
<Import Project="eng\targets\SharedFx.Common.props" Condition="'$(MSBuildProjectExtension)' == '.shfxproj'" />
106+
<Import Project="eng\targets\Wix.Common.props" Condition="'$(MSBuildProjectExtension)' == '.wixproj'" />
51107
<Import Project="eng\targets\Npm.Common.props" Condition="'$(MSBuildProjectExtension)' == '.npmproj'" />
52108

53109
</Project>

0 commit comments

Comments
 (0)