Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
11467d8
Update .NET SDK to v9.0.302
renovate[bot] Jul 9, 2025
68b60df
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Jul 9, 2025
eef5eee
Update dependency xunit.v3 to v3 (#387)
renovate[bot] Jul 14, 2025
6b1c4db
Update dependency xunit.runner.visualstudio to 3.1.2 (#386)
renovate[bot] Jul 14, 2025
a075ec8
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Jul 14, 2025
43aadc1
Skip CodeQL scanning of test code
AArnott Jul 15, 2025
2102e05
Update mcr.microsoft.com/dotnet/sdk:9.0.302-noble Docker digest to d4…
renovate[bot] Jul 15, 2025
f17cd2a
Run Component Detection explicitly before Notice
pieandcakes Jul 16, 2025
56e2404
Run Component Detection explicitly before Notice (#392)
AArnott Jul 16, 2025
fe71729
Update dependency xunit.runner.visualstudio to 3.1.3
renovate[bot] Jul 16, 2025
77f38d4
Update Dockerfile and global.json updates to v9.0.303 (#394)
renovate[bot] Jul 18, 2025
3d3b0ba
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Jul 23, 2025
b6f67cc
Bump MicroBuildVersion to 2.0.199
AArnott Jul 24, 2025
6483557
Update becheran/mlc action to v1
AArnott Jul 25, 2025
8eb458b
Disable credscan task on unofficial builds
AArnott Jul 26, 2025
28382fd
Update mcr.microsoft.com/dotnet/sdk:9.0.303-noble Docker digest to a9…
renovate[bot] Jul 30, 2025
f9374d9
Pass through System.AccessToken when real signing on non-Windows buil…
tydunkel Jul 30, 2025
6f665e4
Update mcr.microsoft.com/dotnet/sdk:9.0.303-noble Docker digest to 14…
renovate[bot] Jul 31, 2025
d82349d
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Aug 3, 2025
c2b6afa
Update Dockerfile and global.json updates to v9.0.304
renovate[bot] Aug 5, 2025
eb42f5f
Update actions/download-artifact action to v5 (#399)
renovate[bot] Aug 6, 2025
801d690
Update mcr.microsoft.com/dotnet/sdk:9.0.304-noble Docker digest to 1f…
renovate[bot] Aug 6, 2025
193a34a
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Aug 6, 2025
78241e3
Add copilot-instructions.md file
AArnott Aug 9, 2025
5e1fec3
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Aug 9, 2025
28cfd93
Fix up contributing to work better on linux
AArnott Aug 10, 2025
c4de4d0
Add copilot instructions about avoiding unstable tests
AArnott Aug 10, 2025
7f486cc
Update actions/checkout action to v5 (#402)
renovate[bot] Aug 11, 2025
dc3950f
Update xunit
renovate[bot] Aug 16, 2025
6dc6ace
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Aug 16, 2025
04843ad
Update actions/checkout action to v5
AArnott Aug 17, 2025
90069e4
Update mcr.microsoft.com/dotnet/sdk:9.0.304-noble Docker digest to 0b…
renovate[bot] Aug 20, 2025
640b1d1
Update actions/upload-pages-artifact action to v4 (#405)
renovate[bot] Aug 22, 2025
3c0717a
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Aug 25, 2025
6e77b79
Move GitHub workflow token permissions to per-job
AArnott Aug 25, 2025
ef68ecc
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Aug 28, 2025
3c9a9fa
Move Install-NuGetPackage.ps1 to the tools folder
AArnott Aug 28, 2025
53aebc9
Update hyperlinks to learn.microsoft.com
AArnott Sep 5, 2025
af9d6a5
Merge branch 'main' into microbuild
AArnott Sep 5, 2025
8cf1387
Update hyperlinks to learn.microsoft.com
AArnott Sep 5, 2025
25e8285
Remove stray backtick from CONTRIBUTING.md
AArnott Sep 8, 2025
4d2be89
Add `Install-NuGetPackage.ps1` script
AArnott Sep 8, 2025
c29f9af
Add switches to Install-NuGetPackage.ps1
AArnott Sep 8, 2025
fec70cf
Update Dockerfile and global.json updates to v9.0.305
renovate[bot] Sep 9, 2025
be3bba6
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Sep 10, 2025
d71cf66
Update mcr.microsoft.com/dotnet/sdk:9.0.305-noble Docker digest to 80…
renovate[bot] Sep 10, 2025
1367101
Drop extra `Pop-Location` from `Install-NuGetPackage.ps1`
AArnott Sep 10, 2025
6241068
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Sep 10, 2025
e40d505
Update dependency powershell to v7.5.3
renovate[bot] Sep 10, 2025
761109a
Add API compat testing
AArnott Sep 11, 2025
b199798
Switch API compat testing from dotnet tool to MSBuild
AArnott Sep 11, 2025
31d3166
Merge pull request #410 from AArnott/apicompat
AArnott Sep 11, 2025
dfa8f35
Migrate from managed identity to service connection for APIScan (#409)
trevors20 Sep 11, 2025
28cf28e
Migrate from managed identity to service connection for symbol archiv…
matteo-prosperi Sep 16, 2025
028c074
Bump MicroBuild version to 2.0.201
AArnott Sep 17, 2025
ce5bb3c
Update .gitignore source URL
AArnott Sep 17, 2025
60bc0ad
Drop explicit nuget.org source for procdump
AArnott Sep 17, 2025
f959aef
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Sep 17, 2025
0f75208
Allow VSInsertion artifact collection with just a VSIX
AArnott Sep 17, 2025
0e1fe34
Fix Microsoft.DiaSymReader.Pdb2Pdb package installation
AArnott Sep 17, 2025
fe66868
Fix VSIX placement to match .vsman expectations
AArnott Sep 18, 2025
af11e11
Fix stray period in doc
AArnott Sep 18, 2025
eef43c7
Merge branch 'microbuild_staging' into microbuild
AArnott Sep 18, 2025
2ccc242
Merge branch 'main' into microbuild
AArnott Sep 18, 2025
b936253
Use newer SBOM tool
AArnott Sep 18, 2025
85815ca
Bump nuget.exe to 6.14.0
AArnott Sep 19, 2025
e0b565c
Merge branch 'main' into microbuild
AArnott Sep 19, 2025
2a77a81
Merge the microbuild branch from https://github.com/aarnott/Library.T…
AArnott Sep 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"powershell": {
"version": "7.5.2",
"version": "7.5.3",
"commands": [
"pwsh"
],
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Refer to https://hub.docker.com/_/microsoft-dotnet-sdk for available versions
FROM mcr.microsoft.com/dotnet/sdk:9.0.301-noble@sha256:4fd7d3e5aeb6cfb75e923a54cdb0b6e858b27ad3b517837917c57c2e632b5694
FROM mcr.microsoft.com/dotnet/sdk:9.0.305-noble@sha256:802e64ab9e113bdfa5d476ae00c7b40ab5c42da1792731c41a47f43bc4e74bdb

# Installing mono makes `dotnet test` work without errors even for net472.
# But installing it takes a long time, so it's excluded by default.
Expand Down
23 changes: 23 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copilot instructions for this repository

## 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.

## Software Design

* Design APIs to be highly testable, and all functionality should be tested.
* Avoid introducing binary breaking changes in public APIs of projects under `src` unless their project files have `IsPackable` set to `false`.

## Testing

* There should generally be one test project (under the `test` directory) per shipping project (under the `src` directory). Test projects are named after the project being tested with a `.Test` suffix.
* Tests should use the Xunit testing framework.
* Some tests are known to be unstable. When running tests, you should skip the unstable ones by running `dotnet test --filter "TestCategory!=FailsInCloudTest"`.

## Coding style

* Honor StyleCop rules and fix any reported build warnings *after* getting tests to pass.
* In C# files, use namespace *statements* instead of namespace *blocks* for all new files.
* Add API doc comments to all new public and internal members.
2 changes: 1 addition & 1 deletion .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# You can define any steps you want, and they will run before the agent starts.
# If you do not check out your code, Copilot will do this for you.
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: ⚙ Install prerequisites
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ on:
branches:
- main

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
actions: read
pages: write
id-token: write
contents: read

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
Expand All @@ -20,12 +13,18 @@ concurrency:

jobs:
publish-docs:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
actions: read
pages: write
id-token: write
contents: read
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: ⚙ Install prerequisites
Expand All @@ -35,7 +34,7 @@ jobs:
name: 📚 Generate documentation

- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4
with:
path: docfx/_site

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs_validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
name: 📚 Doc validation
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: 🔗 Markup Link Checker (mlc)
uses: becheran/mlc@88c9db09b8dabab813a2edd13f955b36aa73657a # v0.22.0
uses: becheran/mlc@18a06b3aa2901ca197de59c8b0b1f54fdba6b3fa # v1.0.0
with:
args: --do-not-warn-for-redirect-to https://learn.microsoft.com*,https://dotnet.microsoft.com/*,https://dev.azure.com/*,https://app.codecov.io/*,https://badges.gitter.im/*,https://github.com/*,https://app.gitter.im/* -p docfx -i https://aka.ms/onboardsupport,https://aka.ms/spot,https://msrc.microsoft.com/*,https://www.microsoft.com/msrc*,https://microsoft.com/msrc*,https://microsoft.sharepoint.com/*
- name: ⚙ Install prerequisites
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/libtemplate-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore

# User-specific files
*.rsuser
Expand Down
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ assuming the working directory is the root of this repository:
msbuild src
```

[pwsh]: https://docs.microsoft.com/powershell/scripting/install/installing-powershell?view=powershell-6
[pwsh]: https://learn.microsoft.com/powershell/scripting/install/installing-powershell

## Releases

Expand All @@ -58,9 +58,9 @@ Push the tag.
When your repo is hosted by GitHub and you are using GitHub Actions, you should create a GitHub Release using the standard GitHub UI.
Having previously used `nbgv tag` and pushing the tag will help you identify the precise commit and name to use for this release.

After publishing the release, the `.github\workflows\release.yml` workflow will be automatically triggered, which will:
After publishing the release, the `.github/workflows/release.yml` workflow will be automatically triggered, which will:

1. Find the most recent `.github\workflows\build.yml` GitHub workflow run of the tagged release.
1. Find the most recent `.github/workflows/build.yml` GitHub workflow run of the tagged release.
1. Upload the `deployables` artifact from that workflow run to your GitHub Release.
1. If you have `NUGET_API_KEY` defined as a secret variable for your repo or org, any nuget packages in the `deployables` artifact will be pushed to nuget.org.

Expand All @@ -71,7 +71,7 @@ Trigger the pipeline by adding the `auto-release` tag on a run of your main `azu

## Tutorial and API documentation

API and hand-written docs are found under the `docfx/` directory. and are built by [docfx](https://dotnet.github.io/docfx/).
API and hand-written docs are found under the `docfx/` directory and are built by [docfx](https://dotnet.github.io/docfx/).

You can make changes and host the site locally to preview them by switching to that directory and running the `dotnet docfx --serve` command.
After making a change, you can rebuild the docs site while the localhost server is running by running `dotnet docfx` again from a separate terminal.
Expand All @@ -93,11 +93,11 @@ If Renovate is not creating pull requests when you expect it to, check that the
### Maintaining your repo based on this template

The best way to keep your repo in sync with Library.Template's evolving features and best practices is to periodically merge the template into your repo:
`

```ps1
git fetch
git checkout origin/main
.\tools\MergeFrom-Template.ps1
./tools/MergeFrom-Template.ps1
# resolve any conflicts, then commit the merge commit.
git push origin -u HEAD
```
3 changes: 3 additions & 0 deletions CodeQL.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
path_classifiers:
library:
- 'test/**'
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<BaseOutputPath Condition=" '$(BaseOutputPath)' == '' ">$(RepoRootPath)bin\$(MSBuildProjectName)\</BaseOutputPath>
<PackageOutputPath>$(RepoRootPath)bin\Packages\$(Configuration)\NuGet\</PackageOutputPath>
<VSIXOutputPath>$(RepoRootPath)bin\Packages\$(Configuration)\Vsix\$(Platform)\</VSIXOutputPath>
<VSIXOutputPath Condition="'$(Platform)'=='' or '$(Platform)'=='AnyCPU'">$(RepoRootPath)bin\Packages\$(Configuration)\Vsix\</VSIXOutputPath>
<SBOMFileDestPath>$(VSIXOutputPath)</SBOMFileDestPath>
<Nullable>enable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
Expand All @@ -15,6 +16,9 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>

<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/apicompat/package-validation/overview -->
<EnablePackageValidation>true</EnablePackageValidation>

<!-- https://github.com/dotnet/msbuild/blob/main/documentation/ProjectReference-Protocol.md#setplatform-negotiation -->
<EnableDynamicPlatformResolution>true</EnableDynamicPlatformResolution>

Expand Down
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<MicroBuildVersion>2.0.198</MicroBuildVersion>
<MicroBuildVersion>2.0.201</MicroBuildVersion>
<CodeAnalysisVersion>3.11.0</CodeAnalysisVersion>
<CodeAnalysisVersionForTests>4.13.0</CodeAnalysisVersionForTests>
<CodefixTestingVersion>1.1.2</CodefixTestingVersion>
Expand Down Expand Up @@ -51,7 +51,7 @@
<ItemGroup Label="Library.Template">
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageVersion Include="Microsoft.VisualStudio.Internal.MicroBuild.NonShipping" Version="$(MicroBuildVersion)" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.1" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.4" />
<PackageVersion Include="xunit" Version="2.9.3" />
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).

If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://learn.microsoft.com/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.

## Reporting Security Issues

Expand Down
55 changes: 0 additions & 55 deletions azure-pipelines/Install-NuGetPackage.ps1

This file was deleted.

4 changes: 2 additions & 2 deletions azure-pipelines/PostPRMessage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ param(
$CommentState='Active'
)

# See https://docs.microsoft.com/en-us/dotnet/api/microsoft.teamfoundation.sourcecontrol.webapi.commentthreadstatus?view=azure-devops-dotnet
# See https://learn.microsoft.com/dotnet/api/microsoft.teamfoundation.sourcecontrol.webapi.commentthreadstatus
if ($CommentState -eq 'Active') {
$StatusCode = 1
} elseif ($CommentState -eq 'ByDesign') {
Expand Down Expand Up @@ -38,7 +38,7 @@ $body = ConvertTo-Json @{
Write-Verbose "Posting JSON payload: `n$Body"

# Post the message to the Pull Request
# https://docs.microsoft.com/en-us/rest/api/azure/devops/git/pull%20request%20threads?view=azure-devops-rest-5.1
# https://learn.microsoft.com/rest/api/azure/devops/git/pull-request-threads
$url = "$($env:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI)$env:SYSTEM_TEAMPROJECTID/_apis/git/repositories/$($env:BUILD_REPOSITORY_NAME)/pullRequests/$($env:SYSTEM_PULLREQUEST_PULLREQUESTID)/threads?api-version=5.1"
if ($PSCmdlet.ShouldProcess($url, 'Post comment via REST call')) {
try {
Expand Down
4 changes: 3 additions & 1 deletion azure-pipelines/apiscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ jobs:
isLargeApp: false
toolVersion: Latest
preserveLogsFolder: true
azureSubscription: VSEng-APIScanSC
env:
AzureServicesAuthConnectionString: runAs=App;AppId=$(ApiScanClientId)
AzureServicesAuthConnectionString: $(APIScanAuthConnectionString)
SYSTEM_ACCESSTOKEN: $(System.AccessToken)

# File bugs when APIScan finds issues
- task: TSAUpload@2
Expand Down
3 changes: 3 additions & 0 deletions azure-pipelines/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ jobs:
signType: test
sbom:
enabled: true
sbomToolVersion: 5.0.3
localization:
enabled: ${{ parameters.EnableLocalization }}
${{ if eq(variables['Build.Reason'], 'pullRequest') }}:
Expand Down Expand Up @@ -245,6 +246,7 @@ jobs:
parameters:
Is1ESPT: ${{ parameters.Is1ESPT }}
RunTests: ${{ parameters.RunTests }}
BuildRequiresAccessToken: ${{ parameters.RealSign }} # Real signing on non-Windows machines requires passing through access token to build steps that sign
osRID: linux
- ${{ if parameters.EnableDotNetFormatCheck }}:
- script: dotnet format --verify-no-changes
Expand Down Expand Up @@ -281,6 +283,7 @@ jobs:
parameters:
Is1ESPT: ${{ parameters.Is1ESPT }}
RunTests: ${{ parameters.RunTests }}
BuildRequiresAccessToken: ${{ parameters.RealSign }} # Real signing on non-Windows machines requires passing through access token to build steps that sign
osRID: osx

- job: WrapUp
Expand Down
6 changes: 6 additions & 0 deletions azure-pipelines/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@ parameters:
default: false
- name: Is1ESPT
type: boolean
- name: BuildRequiresAccessToken
type: boolean
default: false
- name: osRID
type: string

steps:

- script: dotnet build tools/dirs.proj -t:build,pack,publish --no-restore -c $(BuildConfiguration) -warnAsError -warnNotAsError:NU1901,NU1902,NU1903,NU1904,LOCTASK002 /bl:"$(Build.ArtifactStagingDirectory)/build_logs/build.binlog"
displayName: 🛠 dotnet build
${{ if parameters.BuildRequiresAccessToken }}:
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)

- ${{ if not(parameters.IsOptProf) }}:
- powershell: tools/dotnet-test-cloud.ps1 -Configuration $(BuildConfiguration) -Agent $(Agent.JobName) -PublishResults
Expand Down
2 changes: 2 additions & 0 deletions azure-pipelines/libtemplate-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ extends:
name: AzurePipelines-EO
demands:
- ImageOverride -equals 1ESPT-Windows2022
credscan:
enabled: false

stages:
- stage: Merge
Expand Down
6 changes: 3 additions & 3 deletions azure-pipelines/microbuild.before.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ parameters:
steps:
- ${{ if and(not(parameters.IsOptProf), ne(variables['Build.Reason'], 'PullRequest')) }}:
# notice@0 requires CG detection to run first, and non-default branches don't inject it automatically.
- ${{ if ne(variables['Build.SourceBranch'], 'refs/heads/main') }}:
- task: ComponentGovernanceComponentDetection@0
displayName: 🔍 Component Detection
# default branch injection (main) is happening too late for notice@0 to run successfully. Adding this as a workaround.
- task: ComponentGovernanceComponentDetection@0
displayName: 🔍 Component Detection

- task: notice@0
displayName: 🛠️ Generate NOTICE file
Expand Down
5 changes: 4 additions & 1 deletion azure-pipelines/prepare-insertion-stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ stages:
- download: current
artifact: symbols-legacy
displayName: 🔻 Download symbols-legacy artifact
- task: MicroBuildArchiveSymbols@5
- task: MicroBuildArchiveSymbols@6
displayName: 🔣 Archive symbols to Symweb
inputs:
SymbolsFeatureName: $(SymbolsFeatureName)
SymbolsProject: VS
SymbolsAgentPath: $(Pipeline.Workspace)/symbols-legacy
azureSubscription: Vseng-SymbolsUpload
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)

- ${{ if parameters.PackagePush }}:
- job: push
Expand Down
2 changes: 2 additions & 0 deletions azure-pipelines/unofficial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ extends:
parameters:
sdl:
sourceAnalysisPool: VSEngSS-MicroBuild2022-1ES
credscan:
enabled: false
suppression:
suppressionFile: $(System.DefaultWorkingDirectory)\azure-pipelines\falsepositives.gdnsuppress
enableProductionSDL: ${{ parameters.EnableProductionSDL }}
Expand Down
Loading
Loading