diff --git a/.azure/pipelines/ci.yml b/.azure/pipelines/ci.yml
index 8ac3ac6f5..0acbdf4a0 100644
--- a/.azure/pipelines/ci.yml
+++ b/.azure/pipelines/ci.yml
@@ -2,7 +2,7 @@
trigger:
branches:
include:
- - master
+ - main
- release/*
# Trigger builds for PRs to any branch
@@ -11,16 +11,41 @@ pr:
include:
- '*'
+schedules:
+- cron: 0 9 * * 1
+ displayName: "Run CodeQL3000 weekly, Monday at 2:00 AM PDT"
+ branches:
+ include:
+ - release/2.1
+ - main
+ always: true
+
+parameters:
+# Parameters below are ignored in public builds.
+#
+# Choose whether to run the CodeQL3000 tasks.
+# Manual builds align w/ official builds unless this parameter is true.
+- name: runCodeQL3000
+ default: false
+ displayName: Run CodeQL3000 tasks
+ type: boolean
+
+variables:
+ BuildConfiguration: Release
+
jobs:
-- template: ../templates/project-ci.yml
+- template: jobs/project-ci.yml
parameters:
# Ensures the alignment of branch name and deployment params
buildArgs: '/warnaserror:BUILD1001'
- afterBuild:
- - task: PublishBuildArtifacts@1
- displayName: Upload KoreBuild artifact
- condition: and(succeeded(), eq(variables['BuildConfiguration'], 'Release'), eq(variables['AgentOsName'], 'Windows'), eq(variables['system.pullrequest.isfork'], false))
- inputs:
- pathtoPublish: artifacts/korebuild/
- artifactName: korebuild
- artifactType: Container
+ ${{ if and(eq(variables['System.TeamProject'], 'internal'), or(eq(variables['Build.Reason'], 'Schedule'), and(eq(variables['Build.Reason'], 'Manual'), eq(parameters.runCodeQL3000, 'true')))) }}:
+ runCodeQL3000: true
+ ${{ else }}:
+ afterBuild:
+ - task: PublishBuildArtifacts@1
+ displayName: Upload KoreBuild artifact
+ condition: and(succeeded(), eq(variables['BuildConfiguration'], 'Release'), eq(variables['AgentOsName'], 'Windows'), eq(variables['system.pullrequest.isfork'], false))
+ inputs:
+ pathtoPublish: artifacts/korebuild/
+ artifactName: korebuild
+ artifactType: Container
diff --git a/.azure/templates/jobs/default-build.yml b/.azure/pipelines/jobs/default-build.yml
similarity index 87%
rename from .azure/templates/jobs/default-build.yml
rename to .azure/pipelines/jobs/default-build.yml
index 0e5b478f8..058be9661 100644
--- a/.azure/templates/jobs/default-build.yml
+++ b/.azure/pipelines/jobs/default-build.yml
@@ -48,6 +48,7 @@ parameters:
afterBuild: []
codeSign: false
variables: {}
+ runCodeQL3000: false
dependsOn: ''
# buildSteps: [] - don't define an empty object default because there is no way in template expression yet to check "if isEmpty(parameters.buildSteps)"
# jobName: '' - use agentOs by default.
@@ -68,31 +69,44 @@ jobs:
maxParallel: 8
matrix: ${{ parameters.matrix }}
# Map friendly OS names to the right queue
- # See https://github.com/dotnet/arcade/blob/master/Documentation/ChoosingAMachinePool.md and
+ # See https://github.com/dotnet/arcade/blob/main/Documentation/ChoosingAMachinePool.md and
# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#use-a-microsoft-hosted-agent
pool:
${{ if ne(parameters.poolName, '') }}:
name: ${{ parameters.poolName }}
${{ if and(eq(parameters.poolName, ''), eq(parameters.agentOs, 'macOS')) }}:
- vmImage: macOS-10.13
+ vmImage: macOS-10.15
${{ if and(eq(parameters.poolName, ''), eq(parameters.agentOs, 'Linux')) }}:
- vmImage: ubuntu-16.04
+ vmImage: ubuntu-18.04
${{ if and(eq(parameters.poolName, ''), eq(parameters.agentOs, 'Windows')) }}:
- vmImage: vs2017-win2016
+ vmImage: windows-2019
${{ if ne(variables['System.TeamProject'], 'public') }}:
- name: NetCoreInternal-Pool
- queue: BuildPool.Windows.10.Amd64.VS2017
+ name: NetCore1ESPool-Svc-Internal
+ demands: ImageOverride -equals windows.vs2019.amd64
variables:
AgentOsName: ${{ parameters.agentOs }}
ASPNETCORE_TEST_LOG_MAXPATH: "200" # Keep test log file name length low enough for artifact zipping
DOTNET_HOME: $(Agent.BuildDirectory)/.dotnet
BuildScriptArgs: ${{ parameters.buildArgs }}
BuildConfiguration: ${{ parameters.configuration }}
+ LC_ALL: 'en_US.UTF-8'
+ LANG: 'en_US.UTF-8'
+ LANGUAGE: 'en_US.UTF-8'
TeamName: AspNetCore
${{ if and(eq(parameters.codeSign, 'true'), eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}:
_SignType: real
${{ if or(ne(parameters.codeSign, 'true'), ne(variables['System.TeamProject'], 'internal'), eq(variables['Build.Reason'], 'PullRequest')) }}:
_SignType: ''
+ ${{ if eq(parameters.runCodeQL3000, 'true') }}:
+ # Do not let CodeQL3000 Extension gate scan frequency.
+ Codeql.Cadence: 0
+ # Enable CodeQL3000 unconditionally so it may be run on any branch.
+ Codeql.Enabled: true
+ Codeql.SourceRoot: src
+ # CodeQL3000 needs this plumbed along as a variable to enable TSA.
+ Codeql.TSAEnabled: ${{ eq(variables['Build.Reason'], 'Schedule') }}
+ # Default expects tsaoptions.json under SourceRoot.
+ Codeql.TSAOptionsPath: '$(Build.SourcesDirectory)/.config/tsaoptions.json'
${{ insert }}: ${{ parameters.variables }}
steps:
- checkout: self
diff --git a/.azure/pipelines/jobs/project-ci.yml b/.azure/pipelines/jobs/project-ci.yml
new file mode 100644
index 000000000..3b738c4c9
--- /dev/null
+++ b/.azure/pipelines/jobs/project-ci.yml
@@ -0,0 +1,71 @@
+# Description: Runs build.cmd/sh on macOS, Linux, and Windows
+# Parameters:
+# buildArgs: string
+# Additional arguments to pass to the build.sh/cmd script.
+# Note: -ci is always passed
+# beforeBuild: [steps]
+# Additional steps to run before build.sh/cmd
+# afterBuild: [steps]
+# Additional steps to run after build.sh/cmd
+# variables: {}
+# Azure DevOps build and environment variables
+# matrix: {}
+# The matrix of configurations to run. By default, it runs a Debug and Release build on all platforms
+# codeSign: boolean
+# This build definition is enabled for code signing. (Only applies to Windows)
+# runCodeQL3000: boolean
+# This build should run CodeQL3000 instead of the regular build
+
+parameters:
+ buildArgs: ''
+ beforeBuild: []
+ afterBuild: []
+ codeSign: false
+ variables: {}
+ runCodeQL3000: false
+
+jobs:
+- ${{ if and(ne(variables['System.TeamProject'], 'public'), eq(parameters.runCodeQL3000, 'true')) }}:
+ - template: default-build.yml
+ parameters:
+ agentOs: Windows
+ matrix: ${{ parameters.matrix }}
+ buildArgs: ${{ parameters.buildArgs }}
+ beforeBuild:
+ - task: CodeQL3000Init@0
+ displayName: CodeQL Initialize
+ - script: "echo ##vso[build.addbuildtag]CodeQL3000"
+ displayName: 'Set CI CodeQL3000 tag'
+ condition: ne(variables.CODEQL_DIST,'')
+ afterBuild:
+ - task: CodeQL3000Finalize@0
+ displayName: CodeQL Finalize
+ codeSign: false
+ variables: ${{ parameters.variables }}
+ runCodeQL3000: true
+- ${{ else }}: # regular build
+ - template: default-build.yml
+ parameters:
+ agentOs: Windows
+ matrix: ${{ parameters.matrix }}
+ buildArgs: ${{ parameters.buildArgs }}
+ beforeBuild: ${{ parameters.beforeBuild }}
+ afterBuild: ${{ parameters.afterBuild }}
+ codeSign: ${{ parameters.codeSign }}
+ variables: ${{ parameters.variables }}
+ - template: default-build.yml
+ parameters:
+ agentOs: macOS
+ matrix: ${{ parameters.matrix }}
+ buildArgs: ${{ parameters.buildArgs }}
+ beforeBuild: ${{ parameters.beforeBuild }}
+ afterBuild: ${{ parameters.afterBuild }}
+ variables: ${{ parameters.variables }}
+ - template: default-build.yml
+ parameters:
+ agentOs: Linux
+ matrix: ${{ parameters.matrix }}
+ buildArgs: ${{ parameters.buildArgs }}
+ beforeBuild: ${{ parameters.beforeBuild }}
+ afterBuild: ${{ parameters.afterBuild }}
+ variables: ${{ parameters.variables }}
diff --git a/.azure/templates/project-ci.yml b/.azure/templates/project-ci.yml
deleted file mode 100644
index 8902e7046..000000000
--- a/.azure/templates/project-ci.yml
+++ /dev/null
@@ -1,54 +0,0 @@
-# Description: Runs build.cmd/sh on macOS, Linux, and Windows
-# Parameters:
-# buildArgs: string
-# Additional arguments to pass to the build.sh/cmd script.
-# Note: -ci is always passed
-# beforeBuild: [steps]
-# Additional steps to run before build.sh/cmd
-# afterBuild: [steps]
-# Additional steps to run after build.sh/cmd
-# variables: {}
-# Azure DevOps build and environment variables
-# matrix: {}
-# The matrix of configurations to run. By default, it runs a Debug and Release build on all platforms
-# codeSign: boolean
-# This build definition is enabled for code signing. (Only applies to Windows)
-
-parameters:
- buildArgs: ''
- beforeBuild: []
- afterBuild: []
- codeSign: false
- variables: {}
- matrix:
- Release:
- BuildConfiguration: Release
- Debug:
- BuildConfiguration: Debug
-
-jobs:
-- template: jobs/default-build.yml
- parameters:
- agentOs: Windows
- matrix: ${{ parameters.matrix }}
- buildArgs: ${{ parameters.buildArgs }}
- beforeBuild: ${{ parameters.beforeBuild }}
- afterBuild: ${{ parameters.afterBuild }}
- codeSign: ${{ parameters.codeSign }}
- variables: ${{ parameters.variables }}
-- template: jobs/default-build.yml
- parameters:
- agentOs: macOS
- matrix: ${{ parameters.matrix }}
- buildArgs: ${{ parameters.buildArgs }}
- beforeBuild: ${{ parameters.beforeBuild }}
- afterBuild: ${{ parameters.afterBuild }}
- variables: ${{ parameters.variables }}
-- template: jobs/default-build.yml
- parameters:
- agentOs: Linux
- matrix: ${{ parameters.matrix }}
- buildArgs: ${{ parameters.buildArgs }}
- beforeBuild: ${{ parameters.beforeBuild }}
- afterBuild: ${{ parameters.afterBuild }}
- variables: ${{ parameters.variables }}
diff --git a/.config/tsaoptions.json b/.config/tsaoptions.json
new file mode 100644
index 000000000..0128aa272
--- /dev/null
+++ b/.config/tsaoptions.json
@@ -0,0 +1,12 @@
+{
+ "areaPath": "DevDiv\\ASP.NET Core",
+ "codebaseName": "Buildtools",
+ "instanceUrl": "https://devdiv.visualstudio.com/",
+ "iterationPath": "DevDiv",
+ "notificationAliases": [
+ "aspnetcore-build@microsoft.com"
+ ],
+ "projectName": "DEVDIV",
+ "repositoryName": "Buildtools",
+ "template": "TFSDEVDIV"
+}
\ No newline at end of file
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
new file mode 100644
index 000000000..0578a0e1f
--- /dev/null
+++ b/.github/CODEOWNERS
@@ -0,0 +1 @@
+* @aspnet/build
diff --git a/.gitignore b/.gitignore
index 523876b6f..a03f501b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,7 @@ node_modules
.nuget/NuGet.exe
project.lock.json
.build
+.idea/
.vs/
.vscode/
global.json
diff --git a/BuildTools.sln b/BuildTools.sln
index 5b92dcc49..7ef78b100 100644
--- a/BuildTools.sln
+++ b/BuildTools.sln
@@ -1,16 +1,15 @@
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 15
-VisualStudioVersion = 15.0.27121.1
-MinimumVisualStudioVersion = 15.0.26730.03
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.0.0
+MinimumVisualStudioVersion = 16.0.0.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{A4F4353B-C3D2-40B0-909A-5B48A748EA76}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "files", "files", "{BF3E9C90-F129-4CE6-8F3B-F96831E4429B}"
ProjectSection(SolutionItems) = preProject
- .appveyor.yml = .appveyor.yml
.editorconfig = .editorconfig
.gitattributes = .gitattributes
.gitignore = .gitignore
- .travis.yml = .travis.yml
build.cmd = build.cmd
build.ps1 = build.ps1
build.sh = build.sh
@@ -39,30 +38,15 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{60A938B2-D
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NuGetPackageVerifier.Console", "modules\NuGetPackageVerifier\console\NuGetPackageVerifier.Console.csproj", "{657AFF5E-164E-493D-8501-8026B7C20808}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiCheckBaseline.V1", "test\ApiCheckBaseline.V1\ApiCheckBaseline.V1.csproj", "{1B1731E0-4ADB-4A04-9418-FCD7F5CFB79E}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiCheckBaseline.V2", "test\ApiCheckBaseline.V2\ApiCheckBaseline.V2.csproj", "{ECA89839-3332-43F3-B1B1-9C2D91B7285E}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiCheck.Test", "test\ApiCheck.Test\ApiCheck.Test.csproj", "{D61A892B-D214-44AB-9652-334C4338377B}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiCheck.Console", "src\ApiCheck.Console\ApiCheck.Console.csproj", "{AEFC7985-27C8-468E-8EF8-E1D589C9053F}"
-EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NuGetPackageVerifier.Task", "modules\NuGetPackageVerifier\msbuild\NuGetPackageVerifier.Task.csproj", "{EF38C1CA-8A2E-4C8E-B478-7072C0140514}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Internal.AspNetCore.Sdk", "src\Internal.AspNetCore.Sdk\Internal.AspNetCore.Sdk.csproj", "{F0E4CF2B-29B9-432B-BF27-195996CA24FD}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BuildTools.Tasks", "modules\BuildTools.Tasks\BuildTools.Tasks.csproj", "{6A631446-BBDD-4743-B576-7F9793B6BE45}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BuildTools.Tasks.Tests", "test\BuildTools.Tasks.Tests\BuildTools.Tasks.Tests.csproj", "{211858CA-6E82-4EFD-9960-8D023EEB789F}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiCheck.Task", "src\ApiCheck.Task\ApiCheck.Task.csproj", "{9BE633D2-025A-4B29-A8A9-FC8F79C331AB}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Internal.AspNetCore.BuildTasks", "src\Internal.AspNetCore.BuildTasks\Internal.AspNetCore.BuildTasks.csproj", "{F0E4CF2B-29B9-432B-BF27-195996CA24FD}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KoreBuild.FunctionalTests", "test\KoreBuild.FunctionalTests\KoreBuild.FunctionalTests.csproj", "{D5D1BD88-1781-4448-89DD-3E62C95D3A77}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{76ABA507-B453-43BA-BA98-FA3FDDC6DD39}"
ProjectSection(SolutionItems) = preProject
build\dependencies.props = build\dependencies.props
- build\repo.beforecommon.props = build\repo.beforecommon.props
build\repo.props = build\repo.props
build\repo.targets = build\repo.targets
EndProjectSection
@@ -82,13 +66,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NuGetPackageVerifier", "NuG
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KoreBuild.Tasks.Tests", "test\KoreBuild.Tasks.Tests\KoreBuild.Tasks.Tests.csproj", "{A3A81E93-0157-406F-A43C-C163F7F781A9}"
EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tools", "tools", "{B16B5072-3A0B-4527-8AB5-1C73A51684F7}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KoreBuild.Console", "tools\KoreBuild.Console\KoreBuild.Console.csproj", "{02F548A6-B0E9-4F09-BC03-812FC3C8F0D2}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiCheckForwardDestination", "test\ApiCheckForwardDestination\ApiCheckForwardDestination.csproj", "{605F0478-A9D2-4A8A-BB38-9D5DC132FBB5}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NuGetPackageVerifier.Tests", "test\NuGetPackageVerifier.Tests\NuGetPackageVerifier.Tests.csproj", "{439CC7A3-F6E6-46B8-B6A0-05E22E558FC2}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Internal.AspNetCore.SiteExtension.Sdk", "src\Internal.AspNetCore.SiteExtension.Sdk\Internal.AspNetCore.SiteExtension.Sdk.csproj", "{418F99A5-5EC4-4895-B8EB-7F8BBA241DB2}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BuildTasks.Tests", "test\BuildTasks.Tests\BuildTasks.Tests.csproj", "{917C539F-4A6A-4CA0-B6E5-D50F383718A6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -100,22 +80,6 @@ Global
{657AFF5E-164E-493D-8501-8026B7C20808}.Debug|Any CPU.Build.0 = Debug|Any CPU
{657AFF5E-164E-493D-8501-8026B7C20808}.Release|Any CPU.ActiveCfg = Release|Any CPU
{657AFF5E-164E-493D-8501-8026B7C20808}.Release|Any CPU.Build.0 = Release|Any CPU
- {1B1731E0-4ADB-4A04-9418-FCD7F5CFB79E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1B1731E0-4ADB-4A04-9418-FCD7F5CFB79E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1B1731E0-4ADB-4A04-9418-FCD7F5CFB79E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1B1731E0-4ADB-4A04-9418-FCD7F5CFB79E}.Release|Any CPU.Build.0 = Release|Any CPU
- {ECA89839-3332-43F3-B1B1-9C2D91B7285E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {ECA89839-3332-43F3-B1B1-9C2D91B7285E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {ECA89839-3332-43F3-B1B1-9C2D91B7285E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {ECA89839-3332-43F3-B1B1-9C2D91B7285E}.Release|Any CPU.Build.0 = Release|Any CPU
- {D61A892B-D214-44AB-9652-334C4338377B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D61A892B-D214-44AB-9652-334C4338377B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D61A892B-D214-44AB-9652-334C4338377B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D61A892B-D214-44AB-9652-334C4338377B}.Release|Any CPU.Build.0 = Release|Any CPU
- {AEFC7985-27C8-468E-8EF8-E1D589C9053F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {AEFC7985-27C8-468E-8EF8-E1D589C9053F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {AEFC7985-27C8-468E-8EF8-E1D589C9053F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {AEFC7985-27C8-468E-8EF8-E1D589C9053F}.Release|Any CPU.Build.0 = Release|Any CPU
{EF38C1CA-8A2E-4C8E-B478-7072C0140514}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EF38C1CA-8A2E-4C8E-B478-7072C0140514}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EF38C1CA-8A2E-4C8E-B478-7072C0140514}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -124,18 +88,6 @@ Global
{F0E4CF2B-29B9-432B-BF27-195996CA24FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F0E4CF2B-29B9-432B-BF27-195996CA24FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F0E4CF2B-29B9-432B-BF27-195996CA24FD}.Release|Any CPU.Build.0 = Release|Any CPU
- {6A631446-BBDD-4743-B576-7F9793B6BE45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {6A631446-BBDD-4743-B576-7F9793B6BE45}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {6A631446-BBDD-4743-B576-7F9793B6BE45}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {6A631446-BBDD-4743-B576-7F9793B6BE45}.Release|Any CPU.Build.0 = Release|Any CPU
- {211858CA-6E82-4EFD-9960-8D023EEB789F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {211858CA-6E82-4EFD-9960-8D023EEB789F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {211858CA-6E82-4EFD-9960-8D023EEB789F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {211858CA-6E82-4EFD-9960-8D023EEB789F}.Release|Any CPU.Build.0 = Release|Any CPU
- {9BE633D2-025A-4B29-A8A9-FC8F79C331AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9BE633D2-025A-4B29-A8A9-FC8F79C331AB}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9BE633D2-025A-4B29-A8A9-FC8F79C331AB}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9BE633D2-025A-4B29-A8A9-FC8F79C331AB}.Release|Any CPU.Build.0 = Release|Any CPU
{D5D1BD88-1781-4448-89DD-3E62C95D3A77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D5D1BD88-1781-4448-89DD-3E62C95D3A77}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D5D1BD88-1781-4448-89DD-3E62C95D3A77}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -148,40 +100,28 @@ Global
{A3A81E93-0157-406F-A43C-C163F7F781A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A3A81E93-0157-406F-A43C-C163F7F781A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A3A81E93-0157-406F-A43C-C163F7F781A9}.Release|Any CPU.Build.0 = Release|Any CPU
- {02F548A6-B0E9-4F09-BC03-812FC3C8F0D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {02F548A6-B0E9-4F09-BC03-812FC3C8F0D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {02F548A6-B0E9-4F09-BC03-812FC3C8F0D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {02F548A6-B0E9-4F09-BC03-812FC3C8F0D2}.Release|Any CPU.Build.0 = Release|Any CPU
- {605F0478-A9D2-4A8A-BB38-9D5DC132FBB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {605F0478-A9D2-4A8A-BB38-9D5DC132FBB5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {605F0478-A9D2-4A8A-BB38-9D5DC132FBB5}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {605F0478-A9D2-4A8A-BB38-9D5DC132FBB5}.Release|Any CPU.Build.0 = Release|Any CPU
- {418F99A5-5EC4-4895-B8EB-7F8BBA241DB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {418F99A5-5EC4-4895-B8EB-7F8BBA241DB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {418F99A5-5EC4-4895-B8EB-7F8BBA241DB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {418F99A5-5EC4-4895-B8EB-7F8BBA241DB2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {439CC7A3-F6E6-46B8-B6A0-05E22E558FC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {439CC7A3-F6E6-46B8-B6A0-05E22E558FC2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {439CC7A3-F6E6-46B8-B6A0-05E22E558FC2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {439CC7A3-F6E6-46B8-B6A0-05E22E558FC2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {917C539F-4A6A-4CA0-B6E5-D50F383718A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {917C539F-4A6A-4CA0-B6E5-D50F383718A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {917C539F-4A6A-4CA0-B6E5-D50F383718A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {917C539F-4A6A-4CA0-B6E5-D50F383718A6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{657AFF5E-164E-493D-8501-8026B7C20808} = {C0E43505-F8EB-4B7F-B84D-5961F9763945}
- {1B1731E0-4ADB-4A04-9418-FCD7F5CFB79E} = {60A938B2-D95A-403C-AA7A-3683AD64DFA0}
- {ECA89839-3332-43F3-B1B1-9C2D91B7285E} = {60A938B2-D95A-403C-AA7A-3683AD64DFA0}
- {D61A892B-D214-44AB-9652-334C4338377B} = {60A938B2-D95A-403C-AA7A-3683AD64DFA0}
- {AEFC7985-27C8-468E-8EF8-E1D589C9053F} = {A4F4353B-C3D2-40B0-909A-5B48A748EA76}
{EF38C1CA-8A2E-4C8E-B478-7072C0140514} = {C0E43505-F8EB-4B7F-B84D-5961F9763945}
{F0E4CF2B-29B9-432B-BF27-195996CA24FD} = {A4F4353B-C3D2-40B0-909A-5B48A748EA76}
- {6A631446-BBDD-4743-B576-7F9793B6BE45} = {BD3545FB-5520-43DF-B4F9-83BEA3A38ECA}
- {211858CA-6E82-4EFD-9960-8D023EEB789F} = {60A938B2-D95A-403C-AA7A-3683AD64DFA0}
- {9BE633D2-025A-4B29-A8A9-FC8F79C331AB} = {A4F4353B-C3D2-40B0-909A-5B48A748EA76}
{D5D1BD88-1781-4448-89DD-3E62C95D3A77} = {60A938B2-D95A-403C-AA7A-3683AD64DFA0}
{020ED083-4076-4711-A52B-2F89EA884F9B} = {BD3545FB-5520-43DF-B4F9-83BEA3A38ECA}
{C0E43505-F8EB-4B7F-B84D-5961F9763945} = {BD3545FB-5520-43DF-B4F9-83BEA3A38ECA}
{A3A81E93-0157-406F-A43C-C163F7F781A9} = {60A938B2-D95A-403C-AA7A-3683AD64DFA0}
- {02F548A6-B0E9-4F09-BC03-812FC3C8F0D2} = {B16B5072-3A0B-4527-8AB5-1C73A51684F7}
- {605F0478-A9D2-4A8A-BB38-9D5DC132FBB5} = {60A938B2-D95A-403C-AA7A-3683AD64DFA0}
- {418F99A5-5EC4-4895-B8EB-7F8BBA241DB2} = {A4F4353B-C3D2-40B0-909A-5B48A748EA76}
+ {439CC7A3-F6E6-46B8-B6A0-05E22E558FC2} = {60A938B2-D95A-403C-AA7A-3683AD64DFA0}
+ {917C539F-4A6A-4CA0-B6E5-D50F383718A6} = {60A938B2-D95A-403C-AA7A-3683AD64DFA0}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1B8809C8-A6C3-4761-BC91-B12841F49AE1}
diff --git a/CODE-OF-CONDUCT.md b/CODE-OF-CONDUCT.md
new file mode 100644
index 000000000..775f221c9
--- /dev/null
+++ b/CODE-OF-CONDUCT.md
@@ -0,0 +1,6 @@
+# Code of Conduct
+
+This project has adopted the code of conduct defined by the Contributor Covenant
+to clarify expected behavior in our community.
+
+For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index ac2d28d2f..3924182cb 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,4 +1,4 @@
Contributing
======
-Information on contributing to this repo is in the [Contributing Guide](https://github.com/aspnet/AspNetCore/blob/master/CONTRIBUTING.md) in the AspNetCore repo.
+Information on contributing to this repo is in the [Contributing Guide](https://github.com/dotnet/aspnetcore/blob/main/CONTRIBUTING.md) in the AspNetCore repo.
diff --git a/Directory.Build.props b/Directory.Build.props
index 5773b98f0..92e5bbed9 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -4,30 +4,21 @@
-
- <_AspNetToolsSdkPath>$(MSBuildThisFileDirectory)src\Internal.AspNetCore.Sdk
- $(_AspNetToolsSdkPath)\build\Internal.AspNetCore.Sdk.targets
- $(_AspNetToolsSdkPath)\buildMultiTargeting\Internal.AspNetCore.Sdk.targets
- false
- false
- false
- false
$(NoWarn);NU5105
false
true
true
-
-
https://github.com/aspnet/BuildTools
git
- $(MSBuildThisFileDirectory)
+ $(MSBuildThisFileDirectory)
+
diff --git a/README.md b/README.md
index e13cd1d29..9b6dfd484 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,9 @@
-Build Tools
-===========
+Build Tools [Obsolete]
+======================
+
+:warning: **The tools in this repo are obsolete.** You should convert to using Arcade tools.
+See .
+
Utilities used in the build system for projects that are used with ASP.NET Core and Entity Framework Core.
@@ -13,11 +17,13 @@ See [docs/README.md](./docs/README.md).
Channel | Latest Build
---------------|:---------------
-master | ![badge][master-badge]
+main | ![badge][main-badge]
+release/2.2 | ![badge][rel-2.2-badge]
release/2.1 | ![badge][rel-2.1-badge]
release/2.0 | ![badge][rel-2.0-badge]
-[master-badge]: https://aspnetcore.blob.core.windows.net/buildtools/korebuild/channels/master/badge.svg
+[main-badge]: https://aspnetcore.blob.core.windows.net/buildtools/korebuild/channels/main/badge.svg
+[rel-2.2-badge]: https://aspnetcore.blob.core.windows.net/buildtools/korebuild/channels/release/2.2/badge.svg
[rel-2.1-badge]: https://aspnetcore.blob.core.windows.net/buildtools/korebuild/channels/release/2.1/badge.svg
[rel-2.0-badge]: https://aspnetcore.blob.core.windows.net/buildtools/korebuild/channels/release/2.0/badge.svg
diff --git a/build/dependencies.props b/build/dependencies.props
index b0683ba4d..c4c3b56d4 100644
--- a/build/dependencies.props
+++ b/build/dependencies.props
@@ -3,34 +3,35 @@
1.5.1
0.3.0
2.0.0
- 1.0.0-beta.19119.1
- 1.0.0-beta.19119.1
+ 1.0.0-beta.19167.10
+ 1.0.0-beta.19167.10
1.0.0-preview.1
15.9.0
0.10.0-beta6
4.7.99
- 10.0.1
- 4.3.0
- 4.3.0
+ 13.0.1
+ 6.0.6
+ 6.0.5
+ 4.3.4
2.2.7
- 2.3.1
- 2.3.1
+ 2.4.1
+ 2.4.1
- 15.8.166
+ 16.0.0-preview.383
$(MicrosoftBuildPackageVersion)
$(MicrosoftBuildPackageVersion)
$(MicrosoftBuildPackageVersion)
9.0.1
- 4.7.0-netcore.2.1.preview2.5133
+ 5.0.0-preview1.5663
diff --git a/build/repo.props b/build/repo.props
index 603d5ec41..c428e476d 100644
--- a/build/repo.props
+++ b/build/repo.props
@@ -3,13 +3,8 @@
true
-
-
-
-
-
diff --git a/build/repo.targets b/build/repo.targets
index 4c552b0b7..929eb1653 100644
--- a/build/repo.targets
+++ b/build/repo.targets
@@ -1,6 +1,7 @@
+ <_NuGetExeDownloadPath>$(IntermediateDir)nuget.exe
<_KoreBuildIntermediateDir>$(IntermediateDir)korebuild\
<_KoreBuildIntermediateDir>$([MSBuild]::NormalizeDirectory($(_KoreBuildIntermediateDir)))
<_KoreBuildOutDir>$(ArtifactsDir)korebuild\artifacts\$(Version)\
@@ -10,7 +11,7 @@
$(_ChannelOutDir)badge.svg
$(_ChannelOutDir)latest.txt
$(ArtifactsDir)korebuild\channel.txt
- $(PrepareDependsOn);SetTeamCityBuildNumberToVersion
+ $(PrepareDependsOn);DownloadNuGetExe
@@ -31,58 +32,36 @@
-
-
-
-
-
-
-
-
- $(BuildProperties);RepositoryCommit=$(RepositoryCommit)
- $(BuildProperties);RepositoryBranch=$(RepositoryBranch)
-
+
+
-
+
-
-
-
-
- <_ToolsProjects Include="$(RepositoryRoot)tools\KoreBuild.Console\KoreBuild.Console.csproj">
- PublishDir=$(_KoreBuildIntermediateDir)\tools\%(Identity)\
-
-
-
-
-
-
-
+
-
+
+
+
- <_ModuleProjects Include="$(RepositoryRoot)modules\%(KoreBuildModule.Identity)\%(Identity).*proj">
+ <_ModuleProjects Include="$(RepoRoot)modules\%(KoreBuildModule.Identity)\%(Identity).*proj">
Version=$(Version);PublishDir=$(_KoreBuildIntermediateDir)modules\%(Identity)\
@@ -96,7 +75,7 @@
-
+
diff --git a/build/sdk.props b/build/sdk.props
new file mode 100644
index 000000000..c98a76a23
--- /dev/null
+++ b/build/sdk.props
@@ -0,0 +1,3 @@
+
+
+
diff --git a/build/sdk.targets b/build/sdk.targets
new file mode 100644
index 000000000..3695d4330
--- /dev/null
+++ b/build/sdk.targets
@@ -0,0 +1,3 @@
+
+
+
diff --git a/build/sources.props b/build/sources.props
index c648b2764..34b3e2f43 100644
--- a/build/sources.props
+++ b/build/sources.props
@@ -6,7 +6,8 @@
$(RestoreSources);
https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json;
- https://api.nuget.org/v3/index.json;
+ https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json;
+ https://dnceng.pkgs.visualstudio.com/public/_packaging/nuget-build/nuget/v3/index.json;
diff --git a/modules/BuildTools.Tasks/GenerateSvgBadge.cs b/build/tasks/GenerateSvgBadge.cs
similarity index 92%
rename from modules/BuildTools.Tasks/GenerateSvgBadge.cs
rename to build/tasks/GenerateSvgBadge.cs
index 14a45afbd..a755ed756 100644
--- a/modules/BuildTools.Tasks/GenerateSvgBadge.cs
+++ b/build/tasks/GenerateSvgBadge.cs
@@ -12,15 +12,8 @@ namespace Microsoft.AspNetCore.BuildTools
///
/// Generates an SVG file badge that can be embedded into a markdown page
///
-#if SDK
- public class Sdk_GenerateSvgBadge : Microsoft.Build.Utilities.Task
- {
-#elif BuildTools
public class GenerateSvgBadge : Microsoft.Build.Utilities.Task
{
-#else
-#error This must be built either for an SDK or for BuildTools
-#endif
private static readonly string Template = @"