Skip to content

Commit 9065e6e

Browse files
authored
Merge pull request #1270 from AArnott/libtemplateUpdate
Merge latest Library.Template
2 parents c51f4d2 + 52a1e17 commit 9065e6e

29 files changed

Lines changed: 78 additions & 49 deletions

File tree

.config/dotnet-tools.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,13 @@
33
"isRoot": true,
44
"tools": {
55
"powershell": {
6-
"version": "7.3.8",
6+
"version": "7.4.0",
77
"commands": [
88
"pwsh"
99
]
1010
},
11-
"dotnet-format": {
12-
"version": "5.1.250801",
13-
"commands": [
14-
"dotnet-format"
15-
]
16-
},
1711
"dotnet-coverage": {
18-
"version": "17.9.3",
12+
"version": "17.9.5",
1913
"commands": [
2014
"dotnet-coverage"
2115
]
@@ -27,4 +21,4 @@
2721
]
2822
}
2923
}
30-
}
24+
}

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Refer to https://hub.docker.com/_/microsoft-dotnet-sdk for available versions
2-
FROM mcr.microsoft.com/dotnet/sdk:7.0.401-jammy
2+
FROM mcr.microsoft.com/dotnet/sdk:8.0.100-jammy
33

44
# Installing mono makes `dotnet test` work without errors even for net472.
55
# But installing it takes a long time, so it's excluded by default.

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ indent_size = 4
4040
[*.{cs,vb}]
4141
# Sort using and Import directives with System.* appearing first
4242
dotnet_sort_system_directives_first = true
43+
dotnet_separate_import_directive_groups = false
4344
dotnet_style_qualification_for_field = true:warning
4445
dotnet_style_qualification_for_property = true:warning
4546
dotnet_style_qualification_for_method = true:warning

.github/dependabot.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,4 @@ updates:
88
schedule:
99
interval: weekly
1010
ignore:
11-
# This package has unlisted versions on nuget.org that are not supported. Avoid them.
12-
- dependency-name: dotnet-format
13-
versions: ["6.x", "7.x", "8.x"]
1411
- dependency-name: Microsoft.CodeAnalysis* # We intentionally target older VS versions.

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@
55
"omnisharp.enableEditorConfigSupport": true,
66
"omnisharp.enableRoslynAnalyzers": true,
77
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true,
8-
"dotnet.defaultSolution": "Microsoft.VisualStudio.Threading.sln"
8+
"dotnet.defaultSolution": "Microsoft.VisualStudio.Threading.sln",
9+
"editor.formatOnSave": true,
10+
"[xml]": {
11+
"editor.wordWrap": "off"
12+
}
913
}

Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<Project>
23
<PropertyGroup>
34
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
45
<RepoRootPath>$(MSBuildThisFileDirectory)</RepoRootPath>
56
<BaseIntermediateOutputPath>$(RepoRootPath)obj\$([MSBuild]::MakeRelative($(RepoRootPath), $(MSBuildProjectDirectory)))\</BaseIntermediateOutputPath>
67
<BaseOutputPath Condition=" '$(BaseOutputPath)' == '' ">$(RepoRootPath)bin\$(MSBuildProjectName)\</BaseOutputPath>
78
<PackageOutputPath>$(RepoRootPath)bin\Packages\$(Configuration)\NuGet\</PackageOutputPath>
8-
<LangVersion>11</LangVersion>
9+
<LangVersion>12</LangVersion>
910
<Nullable>enable</Nullable>
1011
<ImplicitUsings>disable</ImplicitUsings>
1112
<AnalysisLevel>latest</AnalysisLevel>

Directory.Build.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<Project>
23
<PropertyGroup>
34
<!-- Workaround https://github.com/dotnet/wpf/issues/1718 -->
@@ -8,4 +9,6 @@
89
<!-- Avoid compile error about missing namespace when combining ImplicitUsings with .NET Framework target frameworks. -->
910
<Using Remove="System.Net.Http" Condition="'$(TargetFrameworkIdentifier)'=='.NETFramework'" />
1011
</ItemGroup>
12+
13+
<Import Project="azure-pipelines\NuGetSbom.targets" Condition="'$(IsPackable)'!='false'" />
1114
</Project>

Directory.Packages.props

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<Project>
23
<!-- https://learn.microsoft.com/nuget/consume-packages/central-package-management -->
34
<PropertyGroup>
@@ -24,7 +25,7 @@
2425
<PackageVersion Include="Microsoft.CodeAnalysis.VisualBasic.CodeFix.Testing.XUnit" Version="$(CodefixTestingVersion)" />
2526
<PackageVersion Include="Microsoft.Diagnostics.Runtime.Utilities" Version="$(MicrosoftDiagnosticsRuntimeVersion)" />
2627
<PackageVersion Include="Microsoft.Diagnostics.Runtime" Version="$(MicrosoftDiagnosticsRuntimeVersion)" />
27-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
28+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
2829
<PackageVersion Include="Microsoft.VisualStudio.Internal.MicroBuild.NonShipping" Version="$(MicroBuildVersion)" />
2930
<PackageVersion Include="Microsoft.VisualStudio.Interop" Version="17.4.33103.184" />
3031
<PackageVersion Include="Microsoft.VisualStudio.Shell.15.0" Version="17.4.33103.184" />
@@ -34,16 +35,16 @@
3435
<PackageVersion Include="Microsoft.Windows.CsWin32" Version="0.2.188-beta" />
3536
<PackageVersion Include="Nullable" Version="1.3.1" />
3637
<PackageVersion Include="System.Collections.Immutable" Version="6.0.0" />
37-
<PackageVersion Include="System.Drawing.Common" Version="7.0.0" />
38+
<PackageVersion Include="System.Drawing.Common" Version="8.0.0" />
3839
<PackageVersion Include="System.Memory" Version="4.5.5" />
3940
<PackageVersion Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
4041
<PackageVersion Include="System.Threading.Tasks.Dataflow" Version="7.0.0" />
4142
<PackageVersion Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
4243
<PackageVersion Include="System.ValueTuple" Version="4.5.0" />
43-
<PackageVersion Include="xunit" Version="2.5.3" />
44+
<PackageVersion Include="xunit" Version="2.6.3" />
4445
<PackageVersion Include="xunit.abstractions" Version="2.0.3" />
45-
<PackageVersion Include="Xunit.Combinatorial" Version="1.5.25" />
46-
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.3" />
46+
<PackageVersion Include="Xunit.Combinatorial" Version="1.6.24" />
47+
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.5" />
4748
<PackageVersion Include="Xunit.SkippableFact" Version="1.4.13" />
4849
<PackageVersion Include="Xunit.StaFact" Version="1.1.11" />
4950
</ItemGroup>
@@ -56,6 +57,6 @@
5657
<GlobalPackageReference Include="StyleCop.Analyzers.Unstable" Version="1.2.0.507" />
5758
</ItemGroup>
5859
<ItemGroup>
59-
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
60+
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
6061
</ItemGroup>
6162
</Project>

azure-pipelines/Install-NuGetPackage.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ try {
4545

4646
if ($PSCmdlet.ShouldProcess($PackageId, 'nuget install')) {
4747
$p = Start-Process $nugetPath $nugetArgs -NoNewWindow -Wait -PassThru
48-
if ($p.ExitCode -ne 0) { throw }
48+
if ($null -ne $p.ExitCode -and $p.ExitCode -ne 0) { throw }
4949
}
5050

5151
# Provide the path to the installed package directory to our caller.

azure-pipelines/NuGetSbom.targets

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project>
2+
<PropertyGroup>
3+
<GenerateSBOMThisProject>true</GenerateSBOMThisProject>
4+
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeSbomInNupkg</TargetsForTfmSpecificBuildOutput>
5+
</PropertyGroup>
6+
7+
<Target Name="IncludeSbomInNupkg">
8+
<ItemGroup>
9+
<BuildOutputInPackage Include="@(SbomOutput)" />
10+
</ItemGroup>
11+
</Target>
12+
</Project>

0 commit comments

Comments
 (0)