← Catalogue

dotnet_build

MSBuild, Roslyn and NuGet error codes - `error CS0103`, `error NU1101`, `error MSB3073`.

dotnetbuildtoolmatcher

Open in playgroundFile on GitHubHistory

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

alldotnet

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