diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json
index c22a2eb0..16f077b8 100644
--- a/.config/dotnet-tools.json
+++ b/.config/dotnet-tools.json
@@ -10,7 +10,7 @@
"rollForward": false
},
"dotnet-coverage": {
- "version": "18.4.1",
+ "version": "18.5.2",
"commands": [
"dotnet-coverage"
],
@@ -24,14 +24,14 @@
"rollForward": false
},
"docfx": {
- "version": "2.78.4",
+ "version": "2.78.5",
"commands": [
"docfx"
],
"rollForward": false
},
"nerdbank.dotnetrepotools": {
- "version": "1.1.1",
+ "version": "1.2.1",
"commands": [
"repo"
],
diff --git a/.github/Prime-ForCopilot.ps1 b/.github/Prime-ForCopilot.ps1
new file mode 100644
index 00000000..4de91ab6
--- /dev/null
+++ b/.github/Prime-ForCopilot.ps1
@@ -0,0 +1,5 @@
+if ((git rev-parse --is-shallow-repository) -eq 'true')
+{
+ Write-Host "Shallow clone detected, disabling NBGV Git engine so the build can succeed."
+ $env:NBGV_GitEngine='Disabled'
+}
diff --git a/.github/actions/publish-artifacts/action.yaml b/.github/actions/publish-artifacts/action.yaml
index e0246825..9982cf18 100644
--- a/.github/actions/publish-artifacts/action.yaml
+++ b/.github/actions/publish-artifacts/action.yaml
@@ -14,46 +14,46 @@ runs:
- name: 📢 Upload project.assets.json files
if: always()
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
+ uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: projectAssetsJson-${{ runner.os }}
path: ${{ runner.temp }}/_artifacts/projectAssetsJson
continue-on-error: true
- name: 📢 Upload variables
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
+ uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: variables-${{ runner.os }}
path: ${{ runner.temp }}/_artifacts/Variables
continue-on-error: true
- name: 📢 Upload build_logs
if: always()
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
+ uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: build_logs-${{ runner.os }}
path: ${{ runner.temp }}/_artifacts/build_logs
continue-on-error: true
- name: 📢 Upload testResults
if: always()
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
+ uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: testResults-${{ runner.os }}
path: ${{ runner.temp }}/_artifacts/testResults
continue-on-error: true
- name: 📢 Upload coverageResults
if: always()
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
+ uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: coverageResults-${{ runner.os }}
path: ${{ runner.temp }}/_artifacts/coverageResults
continue-on-error: true
- name: 📢 Upload symbols
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
+ uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: symbols-${{ runner.os }}
path: ${{ runner.temp }}/_artifacts/symbols
continue-on-error: true
- name: 📢 Upload deployables
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
+ uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: deployables-${{ runner.os }}
path: ${{ runner.temp }}/_artifacts/deployables
diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md
index deb29535..654fbfe4 100644
--- a/.github/copilot-instructions.md
+++ b/.github/copilot-instructions.md
@@ -3,7 +3,8 @@
## High level guidance
* Review the `CONTRIBUTING.md` file for instructions to build and test the software.
-* Set the `NBGV_GitEngine` environment variable to `Disabled` before running any `dotnet` or `msbuild` commands.
+* Run the `.github\Prime-ForCopilot.ps1` script (once) before running any `dotnet` or `msbuild` commands.
+ If you see any build errors about not finding git objects or a shallow clone, it may be time to run this script again.
## Software Design
diff --git a/Directory.Packages.props b/Directory.Packages.props
index f1f2f332..5156489d 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -13,7 +13,7 @@
-
+
diff --git a/tools/Prepare-Legacy-Symbols.ps1 b/tools/Prepare-Legacy-Symbols.ps1
index ae0bc40c..e566d624 100644
--- a/tools/Prepare-Legacy-Symbols.ps1
+++ b/tools/Prepare-Legacy-Symbols.ps1
@@ -20,6 +20,20 @@ Get-ChildItem "$ArtifactStagingFolder\*.pdb" -Recurse |% {
}
if ($BinaryImagePath) {
+ # Native binaries can't have their PDBs converted to legacy (Windows) format so just skip them
+ try {
+ $assembly = [System.Reflection.AssemblyName]::GetAssemblyName($BinaryImagePath)
+ $isManaged = $true
+ }
+ catch {
+ $isManaged = $false
+ }
+
+ if (-not $isManaged) {
+ Write-Host "Skipping native binary PDB: $_" -ForegroundColor DarkYellow
+ return
+ }
+
# Convert the PDB to legacy Windows PDBs
Write-Host "Converting PDB for $_" -ForegroundColor DarkGray
$WindowsPdbDir = "$($_.Directory.FullName)\$WindowsPdbSubDirName"