From dd2729fe2325af25c2474cacf4daba2eda26b2a2 Mon Sep 17 00:00:00 2001
From: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Date: Tue, 1 Jun 2021 17:12:49 -0700
Subject: [PATCH 1/4] !nit! Do not use `pwsh` aliases - take VS Code
suggestions
---
eng/scripts/CodeCheck.ps1 | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/eng/scripts/CodeCheck.ps1 b/eng/scripts/CodeCheck.ps1
index 7ee3d02cce2b..280ff0d452c8 100644
--- a/eng/scripts/CodeCheck.ps1
+++ b/eng/scripts/CodeCheck.ps1
@@ -66,9 +66,9 @@ try {
# Ignore duplicates in submodules. These should be isolated from the rest of the build.
# Ignore duplicates in the .ref folder. This is expected.
Get-ChildItem -Recurse "$repoRoot/src/*.*proj" `
- | ? { $_.FullName -notmatch 'submodules' -and $_.FullName -notmatch 'node_modules' } `
- | ? { (Split-Path -Leaf (Split-Path -Parent $_)) -ne 'ref' } `
- | % {
+ | Where-Object { $_.FullName -notmatch 'submodules' -and $_.FullName -notmatch 'node_modules' } `
+ | Where-Object { (Split-Path -Leaf (Split-Path -Parent $_)) -ne 'ref' } `
+ | ForEach-Object {
$fileName = [io.path]::GetFileNameWithoutExtension($_)
if (-not ($projectFileNames.Add($fileName))) {
LogError -code 'BUILD003' -filepath $_ `
@@ -136,17 +136,17 @@ try {
Write-Host "Checking that solutions are up to date"
Get-ChildItem "$repoRoot/*.sln" -Recurse `
- | ? {
+ | Where-Object {
# These .sln files are used by the templating engine.
(($_.Name -ne "BlazorServerWeb_CSharp.sln") -and ($_.Name -ne 'ComponentsWebAssembly-CSharp.sln'))
} `
- | % {
+ | ForEach-Object {
Write-Host " Checking $(Split-Path -Leaf $_)"
$slnDir = Split-Path -Parent $_
$sln = $_
& dotnet sln $_ list `
- | ? { $_ -like '*proj' } `
- | % {
+ | Where-Object { $_ -like '*proj' } `
+ | ForEach-Object {
$proj = Join-Path $slnDir $_
if (-not (Test-Path $proj)) {
LogError "Missing project. Solution references a project which does not exist: $proj. [$sln] "
From e369cb3a4b4ad5355fd6a9f63420fe143992fd31 Mon Sep 17 00:00:00 2001
From: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Date: Wed, 2 Jun 2021 17:12:40 -0700
Subject: [PATCH 2/4] !nit! Remove minor infra differences from 'main' - mostly
comment and whitespace cleanup - work toward making comparisons more
meaningful
---
eng/CodeGen.proj | 4 +--
eng/targets/ResolveReferences.targets | 47 ++++++++++++++-------------
2 files changed, 26 insertions(+), 25 deletions(-)
diff --git a/eng/CodeGen.proj b/eng/CodeGen.proj
index 72c13a69ba5c..a3fa8096d660 100644
--- a/eng/CodeGen.proj
+++ b/eng/CodeGen.proj
@@ -15,8 +15,8 @@
Targets="GetReferencesProvided"
BuildInParallel="true"
SkipNonexistentTargets="true"
- SkipNonexistentProjects="true" >
-
+ SkipNonexistentProjects="true">
+
diff --git a/eng/targets/ResolveReferences.targets b/eng/targets/ResolveReferences.targets
index 1dc8f63efc48..499ad7424ea7 100644
--- a/eng/targets/ResolveReferences.targets
+++ b/eng/targets/ResolveReferences.targets
@@ -20,7 +20,8 @@
- true
+ true
ResolveCustomReferences;
@@ -35,10 +36,11 @@
* when a project is a test or sample project
* when a package is releasing a new patch (we like to update external dependencies in patches when possible)
That is, use latest package references unless this is a servicing build, the project is normally packable, and
- the package is not included in this release.
+ the package is not included in this release. The "unless" cases are extremely unlikely because both
+ $(IsPackableInNonServicingBuild) and $(IsPackageInThisPatch) are either undefined or true.
-->
true
+ Condition=" '$(UseLatestPackageReferences)' == '' AND '$(IsServicingBuild)' != 'true' ">true
true
<_ProjectReferenceByAssemblyName Condition="'$(UseProjectReferences)' == 'true'"
Include="@(ProjectReferenceProvider)"
@@ -121,16 +123,13 @@
-
-
+ Text="Cannot reference "%(Identity)". This dependency is not in the shared framework. See docs/SharedFramework.md for instructions on how to modify what is in the shared framework." />
@@ -140,14 +139,15 @@
-
+
ContentFiles;Build
All
@@ -176,9 +176,9 @@
<_LatestPackageReferenceWithVersion Remove="@(_LatestPackageReferenceWithVersion)"
Condition="'%(Id)' != '%(Identity)' " />
+
-
<_BaselinePackageReferenceWithVersion Include="@(Reference)"
@@ -189,8 +189,8 @@
<_BaselinePackageReferenceWithVersion Remove="@(_BaselinePackageReferenceWithVersion)"
Condition="'%(Id)' != '%(Identity)' " />
-
+
@@ -201,8 +201,8 @@
<_PrivatePackageReferenceWithVersion Remove="@(_PrivatePackageReferenceWithVersion)"
Condition="'%(Id)' != '%(Identity)' " />
-
+
@@ -228,7 +228,7 @@
+ Text="Package references changed since the last release. This could be a breaking change and is not allowed in a servicing update. References removed:%0A - @(UnusedBaselinePackageReference, '%0A - ')" />
-
+
-
From 0554b5e2026b8195c9bc7ed7a66fd6c5c5f5e93c Mon Sep 17 00:00:00 2001
From: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Date: Wed, 9 Jun 2021 16:38:25 -0700
Subject: [PATCH 3/4] Clean up warnings about EOL TFMs - move to non-EOL TFM in
Ignitor; not a shipping project - suppress NETSDK1138 warnings in
KeyDerivation project
---
src/Components/Ignitor/src/Ignitor.csproj | 3 +--
.../Cryptography.KeyDerivation/Directory.Build.props | 8 ++++++++
2 files changed, 9 insertions(+), 2 deletions(-)
create mode 100644 src/DataProtection/Cryptography.KeyDerivation/Directory.Build.props
diff --git a/src/Components/Ignitor/src/Ignitor.csproj b/src/Components/Ignitor/src/Ignitor.csproj
index 140496e8265c..1835a36749aa 100644
--- a/src/Components/Ignitor/src/Ignitor.csproj
+++ b/src/Components/Ignitor/src/Ignitor.csproj
@@ -1,8 +1,7 @@
-
- netcoreapp3.0
+ netcoreapp3.1
true
false
false
diff --git a/src/DataProtection/Cryptography.KeyDerivation/Directory.Build.props b/src/DataProtection/Cryptography.KeyDerivation/Directory.Build.props
new file mode 100644
index 000000000000..610093852b9c
--- /dev/null
+++ b/src/DataProtection/Cryptography.KeyDerivation/Directory.Build.props
@@ -0,0 +1,8 @@
+
+
+
+
+
+ false
+
+
From 93d646f3fc91c800dea76889863842978c938aed Mon Sep 17 00:00:00 2001
From: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Date: Tue, 8 Jun 2021 21:46:59 -0700
Subject: [PATCH 4/4] !nit! Remove dangling project reference - 6c1663249d6a
removed ProjectTemplates/ComponentsWebAssembly.ProjectTemplates/ folder
---
eng/Build.props | 1 -
1 file changed, 1 deletion(-)
diff --git a/eng/Build.props b/eng/Build.props
index 266cef031f02..24b3576edd05 100644
--- a/eng/Build.props
+++ b/eng/Build.props
@@ -35,7 +35,6 @@
$(RepoRoot)src\SignalR\clients\ts\**\node_modules\**\*.*proj;
$(RepoRoot)src\Components\Web.JS\node_modules\**\*.*proj;
$(RepoRoot)src\Components\WebAssembly\Build\testassets\**\*.csproj;
- $(RepoRoot)src\ProjectTemplates\ComponentsWebAssembly.ProjectTemplates\content\**\*.csproj;
$(RepoRoot)src\ProjectTemplates\Web.ProjectTemplates\content\**\*.csproj;
$(RepoRoot)src\ProjectTemplates\Web.ProjectTemplates\content\**\*.fsproj;
$(RepoRoot)src\ProjectTemplates\Web.Spa.ProjectTemplates\content\**\*.csproj;