Skip to content

Commit f50ed13

Browse files
committed
Merge branch 'main' into microbuild
2 parents 46114df + 026011d commit f50ed13

File tree

10 files changed

+16
-12
lines changed

10 files changed

+16
-12
lines changed

.config/dotnet-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
]
1010
},
1111
"dotnet-coverage": {
12-
"version": "17.12.5",
12+
"version": "17.12.6",
1313
"commands": [
1414
"dotnet-coverage"
1515
]
1616
},
1717
"nbgv": {
18-
"version": "3.6.143",
18+
"version": "3.6.146",
1919
"commands": [
2020
"nbgv"
2121
]

.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:8.0.400-jammy
2+
FROM mcr.microsoft.com/dotnet/sdk:8.0.402-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.

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
matrix:
2424
os:
2525
- ubuntu-22.04
26-
- macos-latest
27-
- windows-latest
26+
- macos-14
27+
- windows-2022
2828

2929
steps:
3030
- uses: actions/checkout@v4
@@ -44,7 +44,7 @@ jobs:
4444
run: azure-pipelines/variables/_pipelines.ps1
4545
shell: pwsh
4646
- name: 🛠 build
47-
run: dotnet build -t:build,pack --no-restore -c ${{ env.BUILDCONFIGURATION }} -warnaserror /bl:"${{ runner.temp }}/_artifacts/build_logs/build.binlog"
47+
run: dotnet build -t:build,pack --no-restore -c ${{ env.BUILDCONFIGURATION }} -warnAsError -warnNotAsError:NU1901,NU1902,NU1903,NU1904 /bl:"${{ runner.temp }}/_artifacts/build_logs/build.binlog"
4848
- name: 🧪 test
4949
run: azure-pipelines/dotnet-test-cloud.ps1 -Configuration ${{ env.BUILDCONFIGURATION }} -Agent ${{ runner.os }}
5050
shell: pwsh

.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.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<GlobalPackageReference Include="CSharpIsNullAnalyzer" Version="0.1.593" />
1818
<GlobalPackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.59" />
1919
<GlobalPackageReference Include="Microsoft.VisualStudio.Internal.MicroBuild.VisualStudio" Version="$(MicroBuildVersion)" />
20-
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.143" />
20+
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.146" />
2121
<GlobalPackageReference Include="Nullable" Version="1.3.1" />
2222
<GlobalPackageReference Include="StyleCop.Analyzers.Unstable" Version="1.2.0.556" />
2323
</ItemGroup>

azure-pipelines/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ parameters:
100100
- name: macOSPool
101101
type: object
102102
default:
103-
vmImage: macOS-12
103+
vmImage: macOS-14
104104

105105
jobs:
106106
- job: Windows

azure-pipelines/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ parameters:
88

99
steps:
1010

11-
- script: dotnet build -t:build,pack --no-restore -c $(BuildConfiguration) -warnaserror /bl:"$(Build.ArtifactStagingDirectory)/build_logs/build.binlog"
11+
- script: dotnet build -t:build,pack --no-restore -c $(BuildConfiguration) -warnAsError -warnNotAsError:NU1901,NU1902,NU1903,NU1904 /bl:"$(Build.ArtifactStagingDirectory)/build_logs/build.binlog"
1212
displayName: 🛠 dotnet build
1313

1414
- ${{ if not(parameters.IsOptProf) }}:

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "8.0.400",
3+
"version": "8.0.402",
44
"rollForward": "patch",
55
"allowPrerelease": false
66
},

test/Library.Tests/Library.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net472</TargetFrameworks>
4+
<TargetFrameworks>net6.0</TargetFrameworks>
5+
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">$(TargetFrameworks);net472</TargetFrameworks>
56
<RootNamespace />
67
</PropertyGroup>
78

tools/MergeFrom-Template.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if ($LASTEXITCODE -ne 0) {
4343

4444
$LibTemplateUrl = 'https://github.com/aarnott/Library.Template'
4545
Spawn-Tool 'git' ('fetch', $LibTemplateUrl, $remoteBranch)
46-
$SourceCommit = git rev-parse FETCH_HEAD
46+
$SourceCommit = Spawn-Tool 'git' ('rev-parse', 'FETCH_HEAD')
4747
$BaseBranch = Spawn-Tool 'git' ('branch', '--show-current')
4848
$SourceCommitUrl = "$LibTemplateUrl/commit/$SourceCommit"
4949

0 commit comments

Comments
 (0)