dotnet_build
MSBuild, Roslyn and NuGet error codes - `error CS0103`, `error NU1101`, `error MSB3073`.
dotnetbuildtoolmatcher
Install: ci-doctor matchers add official/dotnet_build
matchers/dotnet/dotnet_build/matcher.yaml
id: dotnet_buildrole: toolclassification: [dotnet, build]description: MSBuild, Roslyn and NuGet error codes - `error CS0103`, `error NU1101`, `error MSB3073`.pattern: error (CS|MSB|NU|AD)\d+before: 1after: 3
In bundles
Fixtures
Framing stripped per provider. Highlighted lines are what this matcher selects; the marked line is the anchor.
dotnet_build_errorOpen in playground
1Current runner version: '2.336.0'
2##[group]Operating System
3Ubuntu
424.04.4
5LTS
6##[endgroup]
7Secret source: Actions
8Prepare workflow directory
9Prepare all required actions
10Complete job name: dotnet_build_error
11##[group]Set up job
12Image: ubuntu-24.04
13Runner name: 'GitHub Actions 12'
14##[endgroup]
15Download action repository 'actions/checkout@v4'
16Download action repository 'actions/cache@v4'
17##[group]Run actions/checkout@v4
18 with:
19 fetch-depth: 20
20 lfs: false
21##[endgroup]
22Syncing repository: acme/ledger
23##[group]Getting Git version info
24Working directory is '/home/runner/work/ledger/ledger'
25##[endgroup]
26/usr/bin/git checkout --progress --force 8ad41f02
27##[group]Run actions/cache@v4
28 with:
29 path: ~/.cache
30 key: Linux-deps-8ad41f02
31##[endgroup]
32Received 41943040 of 41943040 (100.0%), 40.0 MBs/sec
33Cache restored from key: Linux-deps-8ad41f02
34##[group]Run dotnet --version
35dotnet --version
36dotnet build --configuration Release
37shell: /usr/bin/bash -e {0}
38##[endgroup]
398.0.303
40 Determining projects to restore...
41 Restored /builds/team/billing/src/Billing/Billing.csproj (in 3.2 sec).
42 Billing -> Compiling...
43/builds/team/billing/src/Billing/InvoiceService.cs(112,31): error CS1061: 'Invoice' does not contain a definition for 'NetTotal' and no accessible extension method 'NetTotal' accepting a first argument of type 'Invoice' could be found (are you missing a using directive or an assembly reference?) [/builds/team/billing/src/Billing/Billing.csproj]
44/builds/team/billing/src/Billing/InvoiceService.cs(118,13): error CS0165: Use of unassigned local variable 'vat' [/builds/team/billing/src/Billing/Billing.csproj]
45
46Build FAILED.
47
48/builds/team/billing/src/Billing/InvoiceService.cs(112,31): error CS1061: 'Invoice' does not contain a definition for 'NetTotal' [/builds/team/billing/src/Billing/Billing.csproj]
49 0 Warning(s)
50 2 Error(s)
51
52Time Elapsed 00:00:11.63
53##[error]Process completed with exit code 1.
54##[group]Post Run actions/checkout@v4
55##[endgroup]
56/usr/bin/git version
57git version 2.54.0
58##[group]Post Run actions/upload-artifact@v4
59##[endgroup]
60Artifact upload complete.
61##[warning]src/Billing/bin/Release/: no matching files. Ensure that the artifact path is relative to the working directory
62Post job cleanup.
63Cleaning up orphan processes
1Running with gitlab-runner 16.10.0 (be4e0e33)
2 on windows-docker-01 Dn4Pq7Vt, system ID: s_cc99aa11bb22
3Preparing the "docker" executor
4 Using Docker executor with image mcr.microsoft.com/dotnet/sdk:8.0 ...
5Using Docker executor with image mcr.microsoft.com/dotnet/sdk:8.0 ...
6Using docker image sha256:5f4e3d2c1b0a for mcr.microsoft.com/dotnet/sdk:8.0 with digest sdk@sha256:77ab...
7Preparing environment
8Running on runner-dn4pq7vt-project-71-concurrent-2...
9Fetching changes...
10Checking out 33be80fa as detached HEAD...
11Checking cache for nuget-packages-8.0...
12Successfully extracted cache
13$ dotnet --version
148.0.303
15$ dotnet build --configuration Release
16 Determining projects to restore...
17 Restored /builds/team/billing/src/Billing/Billing.csproj (in 3.2 sec).
18 Billing -> Compiling...
19/builds/team/billing/src/Billing/InvoiceService.cs(112,31): error CS1061: 'Invoice' does not contain a definition for 'NetTotal' and no accessible extension method 'NetTotal' accepting a first argument of type 'Invoice' could be found (are you missing a using directive or an assembly reference?) [/builds/team/billing/src/Billing/Billing.csproj]
20/builds/team/billing/src/Billing/InvoiceService.cs(118,13): error CS0165: Use of unassigned local variable 'vat' [/builds/team/billing/src/Billing/Billing.csproj]
21
22Build FAILED.
23
24/builds/team/billing/src/Billing/InvoiceService.cs(112,31): error CS1061: 'Invoice' does not contain a definition for 'NetTotal' [/builds/team/billing/src/Billing/Billing.csproj]
25 0 Warning(s)
26 2 Error(s)
27
28Time Elapsed 00:00:11.63
29Running after_script
30$ echo "build failed, skipping pack"
31build failed, skipping pack
32Uploading artifacts for failed job
33WARNING: src/Billing/bin/Release/: no matching files. Ensure that the artifact path is relative to the working directory
34ERROR: Job failed: exit code 1