Skip to content

Commit e6cf7c9

Browse files
authored
Merge pull request #267 from microsoft/libtemplateUpdate
Merge latest Library.Template
2 parents b8a845b + cb405d2 commit e6cf7c9

30 files changed

+461
-95
lines changed

.config/dotnet-tools.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
"isRoot": true,
44
"tools": {
55
"powershell": {
6-
"version": "7.4.4",
6+
"version": "7.4.5",
77
"commands": [
88
"pwsh"
99
]
1010
},
1111
"dotnet-coverage": {
12-
"version": "17.11.5",
12+
"version": "17.12.6",
1313
"commands": [
1414
"dotnet-coverage"
1515
]
1616
},
1717
"nbgv": {
18-
"version": "3.6.141",
18+
"version": "3.6.146",
1919
"commands": [
2020
"nbgv"
2121
]

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ bld/
3737
# Uncomment if you have tasks that create the project's static files in wwwroot
3838
#wwwroot/
3939

40+
# Jetbrains Rider cache directory
41+
.idea/
42+
4043
# Visual Studio 2017 auto generated files
4144
Generated\ Files/
4245

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<BaseIntermediateOutputPath>$(RepoRootPath)obj\$([MSBuild]::MakeRelative($(RepoRootPath), $(MSBuildProjectDirectory)))\</BaseIntermediateOutputPath>
77
<BaseOutputPath Condition=" '$(BaseOutputPath)' == '' ">$(RepoRootPath)bin\$(MSBuildProjectName)\</BaseOutputPath>
88
<PackageOutputPath>$(RepoRootPath)bin\Packages\$(Configuration)\NuGet\</PackageOutputPath>
9+
<VSIXOutputPath>$(RepoRootPath)bin\Packages\$(Configuration)\Vsix\$(Platform)\</VSIXOutputPath>
910
<Nullable>enable</Nullable>
1011
<ImplicitUsings>enable</ImplicitUsings>
1112
<AnalysisLevel>latest</AnalysisLevel>

Directory.Packages.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
</PropertyGroup>
1010
<ItemGroup>
1111
<PackageVersion Include="Microsoft.CodeAnalysis.ResxSourceGenerator" Version="3.3.5-beta1.23330.2" />
12-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
12+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
1313
<PackageVersion Include="Microsoft.VisualStudio.Internal.MicroBuild.NonShipping" Version="$(MicroBuildVersion)" />
1414
<PackageVersion Include="Moq" Version="4.20.70" />
1515
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
16-
<PackageVersion Include="xunit" Version="2.9.0" />
16+
<PackageVersion Include="xunit" Version="2.9.2" />
1717
</ItemGroup>
1818
<ItemGroup>
1919
<GlobalPackageReference Include="CSharpIsNullAnalyzer" Version="0.1.593" />
2020
<GlobalPackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.59" />
2121
<GlobalPackageReference Include="Microsoft.VisualStudio.Internal.MicroBuild.VisualStudio" Version="$(MicroBuildVersion)" />
22-
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.141" />
22+
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.146" />
2323
<GlobalPackageReference Include="Nullable" Version="1.3.1" />
2424
<GlobalPackageReference Include="StyleCop.Analyzers.Unstable" Version="1.2.0.556" />
2525
</ItemGroup>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<#
2+
.SYNOPSIS
3+
Returns the name of the well-known branch in the Library.Template repository upon which HEAD is based.
4+
#>
5+
[CmdletBinding(SupportsShouldProcess = $true)]
6+
Param(
7+
[switch]$ErrorIfNotRelated
8+
)
9+
10+
# This list should be sorted in order of decreasing specificity.
11+
$branchMarkers = @(
12+
@{ commit = 'fd0a7b25ccf030bbd16880cca6efe009d5b1fffc'; branch = 'microbuild' };
13+
@{ commit = '05f49ce799c1f9cc696d53eea89699d80f59f833'; branch = 'main' };
14+
)
15+
16+
foreach ($entry in $branchMarkers) {
17+
if (git rev-list HEAD | Select-String -Pattern $entry.commit) {
18+
return $entry.branch
19+
}
20+
}
21+
22+
if ($ErrorIfNotRelated) {
23+
Write-Error "Library.Template has not been previously merged with this repo. Please review https://github.com/AArnott/Library.Template/tree/main?tab=readme-ov-file#readme for instructions."
24+
exit 1
25+
}

azure-pipelines/GlobalVariables.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ variables:
22
# These variables are required for MicroBuild tasks
33
TeamName: VS IDE
44
TeamEmail: [email protected]
5+
# These variables influence insertion pipelines
6+
ContainsVsix: false # This should be true when the repo builds a VSIX that should be inserted to VS.

azure-pipelines/OptProf.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ variables:
2929
value: false # avoid using nice version since we're building a preliminary/unoptimized package
3030
- name: IsOptProf
3131
value: true
32+
- name: MicroBuild_NuPkgSigningEnabled
33+
value: false # test-signed nuget packages fail to restore in the VS insertion PR validations. Just don't sign them *at all*.
3234

3335
stages:
3436
- stage: Library
@@ -40,12 +42,13 @@ stages:
4042
- template: build.yml
4143
parameters:
4244
Is1ESPT: false
43-
RealSign: true
45+
RealSign: false
4446
windowsPool: VSEngSS-MicroBuild2022-1ES
4547
EnableMacOSBuild: false
4648
ShouldSkipOptimize: ${{ parameters.ShouldSkipOptimize }}
4749
IsOptProf: true
4850
RunTests: false
51+
SkipCodesignVerify: true
4952
- stage: QueueVSBuild
5053
jobs:
5154
- job: QueueOptProf

azure-pipelines/OptProf_part2.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ resources:
1414
- pipeline: DartLab.OptProf
1515
source: DartLab.OptProf
1616
branch: main
17+
tags:
18+
- production
1719
repositories:
1820
- repository: DartLabTemplates
1921
type: git
@@ -22,7 +24,7 @@ resources:
2224
- repository: DartLabOptProfTemplates
2325
type: git
2426
name: DartLab.OptProf
25-
ref: refs/heads/main
27+
ref: refs/tags/Production
2628

2729
parameters:
2830

azure-pipelines/Publish-Legacy-Symbols.ps1 renamed to azure-pipelines/Prepare-Legacy-Symbols.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,3 @@ Get-ChildItem "$ArtifactStagingFolder\*.pdb" -Recurse |% {
3333
Move-Item $legacyPdbPath $_ -Force
3434
}
3535
}
36-
37-
Write-Host "##vso[artifact.upload containerfolder=symbols-legacy;artifactname=symbols-legacy;]$ArtifactStagingFolder"

azure-pipelines/artifacts/VSInsertion.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ if (!$BuildConfiguration) {
1616
$BuildConfiguration = 'Debug'
1717
}
1818

19-
$NuGetPackages = "$RepoRoot/bin/Packages/$BuildConfiguration/NuGet"
19+
$PackagesRoot = "$RepoRoot/bin/Packages/$BuildConfiguration"
20+
$NuGetPackages = "$PackagesRoot/NuGet"
21+
$VsixPackages = "$PackagesRoot/Vsix"
2022

2123
if (!(Test-Path $NuGetPackages)) {
2224
Write-Warning "Skipping because NuGet packages haven't been built yet."
@@ -27,8 +29,12 @@ $result = @{
2729
"$NuGetPackages" = (Get-ChildItem $NuGetPackages -Recurse)
2830
}
2931

32+
if (Test-Path $VsixPackages) {
33+
$result["$PackagesRoot"] += Get-ChildItem $VsixPackages -Recurse
34+
}
35+
3036
if ($env:IsOptProf) {
31-
$VSRepoPackages = "$RepoRoot/bin/Packages/$BuildConfiguration/VSRepo"
37+
$VSRepoPackages = "$PackagesRoot/VSRepo"
3238
$result["$VSRepoPackages"] = (Get-ChildItem "$VSRepoPackages\*.VSInsertionMetadata.*.nupkg");
3339
}
3440

0 commit comments

Comments
 (0)