.NET
NuGet, SDK, and build failures in CI - fixed.
Resolve .NET CI failures: NuGet restore errors, SDK version mismatches, build and MSBuild problems, and test failures. Practical fixes for dotnet pipelines.
NuGet restore
Feeds, auth, and version conflicts.
SDK & runtime
global.json, version mismatches, and targets.
Build & test
MSBuild errors and test failures.
"dotnet publish" RID / self-contained errorFix "dotnet publish" failures for self-contained or runtime-specific ASP.NET Core apps in CI - a missing or
"Unable to resolve service for type"Fix "System.InvalidOperationException: Unable to resolve service for type X while attempting to activate Y"
"address already in use"Fix Kestrel "Failed to bind to address http://127.0.0.1:5000: address already in use" in CI - a previous test
"Could not find a part of the path ..._framework"Fix the Blazor publish error "Could not find a part of the path ...
"_framework/blazor.*.js" not foundFix the Blazor Server build/publish problem where the framework script under _framework is not produced in CI
"CS0103: ... does not exist"Fix C# "CS0103: The name X does not exist in the current context" in CI - an undeclared variable, a
"CS0234: ... does not exist in the namespace"Fix C# "CS0234: The type or namespace name X does not exist in the namespace Y (are you missing an assembly
"CS1061: ... no accessible extension method"Fix C# "CS1061: T does not contain a definition for M and no accessible extension method M accepting T could
"CS8600: Converting null literal ..."Fix C# "CS8600: Converting null literal or possible null value to non-nullable type" in CI - a
"CS8602: possibly null reference"Fix C# "CS8602: Dereference of a possibly null reference" in CI - a nullable-reference warning promoted to an
"NU5039: ... readme file does not exist"Fix dotnet pack "NU5039: The readme file does not exist" / "NU5046: The 'readme' element is not specified" in
"MSB3027: could not copy ... locked"Fix MSBuild "MSB3027: Could not copy X to Y. Exceeded retry count.
"MSB4018: ... task failed unexpectedly"Fix MSBuild "error MSB4018: The <task> task failed unexpectedly" in CI - a build task that threw an unhandled
"MSB4057: ... target does not exist"Fix MSBuild "MSB4057: The target X does not exist in the project" in CI - a /t: target name that is not
Explore other topics
GitHub ActionsWorkflow, runner, and YAML errors - diagnosed and fixed.
Node.js & npmnpm, yarn, and pnpm failures in CI - solved.
DockerBuild, run, compose, and registry errors - explained.
Pythonpip, poetry, venv, and pytest failures - fixed.
Java & JVMMaven, Gradle, and JVM failures in CI - resolved.
GoGo build, module, and test failures - diagnosed.