Skip to content
Latchkey
.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.

"Cannot find a manifest file"Fix dotnet "Cannot find a manifest file for dotnet tool" during dotnet tool restore in CI - the .config/dotne… "the specified command ... was not found"Fix dotnet "Could not execute because the specified command or file was not found" in CI - a local tool that… "... but it was not restored"Fix dotnet build "Your project does not reference ... it was not restored" / "Run a NuGet package restore" in… "409 Conflict"Fix dotnet nuget push "Response status code does not indicate success: 409 (Conflict)" in CI - the package ve… "403 (Forbidden)" API keyFix dotnet nuget push "Response status code does not indicate success: 403 (Forbidden)" in CI - the API key i… push timeout / 5xxFix dotnet nuget push timeouts and 5xx responses in CI - the upload stalled or the feed returned a server err… "lists package ... but multiple packages"Fix dotnet restore "The feed X lists package Y but multiple packages with different cases exist" in CI - a ca… "The SSL connection could not be established"Fix dotnet restore "The SSL connection could not be established" in CI - a proxy or missing CA prevents NuGet… "Unable to find package"Fix dotnet restore "Unable to find package X. No packages exist with this id in source(s)" in CI - the id is… "Unable to load the service index for source"Fix dotnet restore "Unable to load the service index for source" in CI - the feed URL is unreachable, down, o… "401 (Unauthorized)"Fix dotnet restore "Response status code does not indicate success: 401 (Unauthorized)" from a private NuGet… "403 (Forbidden)"Fix dotnet restore "Response status code does not indicate success: 403 (Forbidden)" from a private feed in C… restore not cachedFix slow, flaky dotnet restore in CI where packages re-download every run - without caching the global packag… --locked-mode restore failedFix dotnet restore --locked-mode failures in CI when the committed packages.lock.json no longer matches the r… "Detected package downgrade"Fix NuGet "Detected package downgrade" (NU1605) in dotnet restore - a transitive dependency demands a higher… "error NU1004"Fix dotnet "error NU1004" restore failures in CI - a NuGet restore error surfaced as NU1004 from a lock-file… "NU1008: ... should not have version"Fix NuGet "NU1008: Projects that use central package management should not define the version on the PackageR… "NU1010: ... no corresponding PackageVersion"Fix NuGet "NU1010: The PackageReference items ... do not have corresponding PackageVersion" in CI - a central… package source mapping no matchFix NuGet restore failures caused by package source mapping in CI - a package id that matches no <packageSour… "NU1101: Unable to find package"Fix NuGet error NU1101 "Unable to find package <id>. No packages exist with this id in source(s)" during dotn… "NU1101: Unable to find package"Fix NuGet "NU1101: Unable to find package X. No packages exist with this id in source(s)" in CI - a typo or a… "NU1102: ... with version"Fix NuGet "NU1102: Unable to find package X with version (>= Y)" in CI - the package id exists on the feed bu… "NU1102: Unable to find package ... version"Fix NuGet error NU1102 "Unable to find package <id> with version (>= x)" during dotnet restore - the package… "NU1108: Cycle detected"Fix NuGet "error NU1108: Cycle detected" during dotnet restore in CI - a circular dependency between packages… "NU1202: ... not compatible"Fix NuGet "NU1202: Package X is not compatible with netY. Package X supports: ..." in CI - the package has no… "NU1202: package ... is not compatible"Fix NuGet "NU1202: Package <id> is not compatible with <tfm>" during restore - a package that does not suppor… "NU1301: Unable to load the service index"Fix NuGet error NU1301 "Unable to load the service index for source" during dotnet restore in CI - an unreach… "NU1603: ... was resolved to a different version"Fix NuGet warning NU1603 "package depends on X (>= a) but X a was not found, an approximate best match Y was… "NU1605: Detected package downgrade"Fix NuGet "NU1605: Detected package downgrade: X from A to B" in CI - a transitive dependency needs a higher… "NU1608: ... outside of dependency constraint"Fix NuGet "warning NU1608: Detected package version outside of dependency constraint" in CI - a resolved vers… "NU1701: ... restored using ... instead"Fix NuGet warning NU1701 "Package X was restored using .NETFramework instead of the project target framework"… "NuGet.config not found"Fix restore failures in CI where NuGet.config is missing or not committed - the runner has no feed or credent… corrupt package cacheFix NuGet restore failures from a corrupt or stale global-packages cache in CI - hash mismatches and "package… "packages.lock.json is out of date"Fix NuGet NU1004 "The packages lock file is inconsistent" / out of date in CI when restoring with --locked-mo… "Response status code does not indicate success: 401"Fix NuGet "Response status code does not indicate success: 401" against Azure Artifacts or GitHub Packages in… "source with name already exists"Fix NuGet "The source specified has already been added" / name already exists when running dotnet nuget add s… "The local source ... doesn't exist"Fix NuGet "The local source '/path' doesn't exist" during dotnet restore in CI - a file/folder feed path that… "Unable to find package"Fix NuGet "Unable to find package X" in CI -- a private feed never configured on the runner, a typo in the id… "... service index ... (401)"Fix NuGet "Unable to load the service index ... status code 401 (Unauthorized)" in CI - a missing, expired, o… "Unable to load the service index"Fix NuGet "Unable to load the service index for source" during dotnet restore in CI - an unreachable feed, a… "Unable to load the service index"Fix NuGet "Unable to load the service index for source" in CI when the feed is unreachable - DNS, network, or… "Unable to resolve ... for net8.0"Fix NuGet "Unable to resolve '<package>' for 'net8.0'" during dotnet restore in CI - the resolver could not s… nuget.config feed credentialsSet up private NuGet feed authentication in CI - pass credentials via nuget.config or dotnet nuget add source… NU1101Fix NuGet error NU1101 "Unable to find package X" in CI - none of the configured sources contains the package… NU1102Fix NuGet error NU1102 "Unable to find package X with version Y" in CI - the id exists on a source but no ava… NU1202Fix NuGet error NU1202 "Package X is not compatible with framework Y" in CI - the package publishes no assets… NU1605Fix NuGet error NU1605 "Detected package downgrade: X from A to B" in CI - a direct reference pins a lower ve… NU1605 direct-reference downgradeFix a specific NuGet NU1605 "Detected package downgrade" where the downgrade comes from one project pinning a… NU1608Fix NuGet warning NU1608 "Detected package version outside of dependency constraint" in CI - a resolved versi… NU1701Fix NuGet warning NU1701 "Package X was restored using .NETFramework instead of the project target" in CI - a… NU5104Fix NuGet warning NU5104 "A stable release of a package should not have a prerelease dependency" in CI - dotn… VSS_NUGET_EXTERNAL cacheFix Azure Artifacts auth failures in CI where nuget.config credentials or VSS_NUGET_EXTERNAL_FEED_ENDPOINTS a… "packages.lock.json is out of date"Fix "The packages lock file is inconsistent" under RestoreLockedMode in CI - packages.lock.json no longer mat… "package source mapping"Fix NuGet package source mapping failures in CI - restore cannot find a package because no source in packageS… private feed PAT expiredFix NuGet restore failures when the personal access token for a private feed has expired in CI - restore that… "... status code 403"Fix NuGet restore "Response status code does not indicate success: 403 (Forbidden)" in CI - a token that auth… "401 (Unauthorized)" on restoreFix NuGet "Response status code 401 (Unauthorized)" / 403 on dotnet restore in CI - missing or expired creden… "403 (Forbidden)" on restoreFix NuGet "Response status code does not indicate success: 403 (Forbidden)" on dotnet restore in CI - a token… "Response status code ... 503"Fix transient NuGet restore failures from a feed returning 503 (Service Unavailable) or other 5xx status code… restore timed outFix NuGet restore timeouts and "The operation was canceled" in CI - slow feeds, large package graphs, or tran… "NU1107: Version conflict detected"Fix NuGet "NU1107: Version conflict detected" during restore - two dependency chains demand incompatible vers… NU1900-series warnings as errorsFix NuGet NU1900-series warnings (NU1603, NU1701) promoted to errors by TreatWarningsAsErrors in CI - restore…

SDK & runtime

global.json, version mismatches, and targets.

"NETSDK1004: Assets file ... not found"Fix .NET "NETSDK1004: Assets file project.assets.json not found. Run a NuGet package restore" in CI - a build… "NETSDK1045: ... does not support targeting"Fix .NET "NETSDK1045: The current .NET SDK does not support targeting .NET X. Either target .NET Y or use a n… "NETSDK1064: Package ... was not found"Fix .NET "NETSDK1064: Package X, version Y was not found. It might have been deleted since NuGet restore" in… "NETSDK1141: unable to resolve ... reference"Fix .NET "NETSDK1141: Unable to resolve the .NET X.Y reference X" in CI - a shared framework (e.g. ASP.NET Co… Requested SDK not on runnerFix CI failures where the requested .NET SDK version is not on the runner - install the exact SDK with setup-… "No test is available"Fix "No test is available ... Make sure that test discoverer and executors are registered" in CI - a test pro… "dotnet: command not found"Fix "dotnet: command not found" in CI - the .NET SDK is not installed or not on PATH on the runner, so the sh… "test host process crashed"Fix "The active test run was aborted. Reason: Test host process crashed" in CI - the test host died mid-run f… "... does not support targeting .NET X"Fix "The current .NET SDK does not support targeting .NET X" in CI - the installed SDK is older than the fram… "A compatible .NET SDK was not found"Fix "A compatible installed .NET SDK was not found" in CI - global.json pins an SDK version that is not insta… "A compatible .NET SDK was not found"Fix "A compatible .NET SDK was not found" / "command not found: dotnet" in CI when no SDK is installed or it… "Assembly with same name is already loaded"Fix dotnet "Assembly with same name is already loaded" in CI - usually a source generator, analyzer, or MSBui… "specified in global.json was not found"Fix "The specified SDK version ... from global.json was not found" in CI - the pinned .NET SDK is not install… "NETSDK1045: ... does not support targeting"Fix dotnet "NETSDK1045: The current .NET SDK does not support targeting .NET 9.0" in CI - the project targets… "NETSDK1083: ... RID ... was not recognized"Fix dotnet "NETSDK1083: The specified RuntimeIdentifier <rid> is not recognized" during publish in CI - an in… "NETSDK1141"Fix dotnet "error NETSDK1141: Unable to resolve the .NET SDK version as specified in the global.json" in CI -… single-file publish errorsFix dotnet single-file publish failures in CI - IL3000 "Assembly.Location is empty in a single-file app" and… "Microsoft.AspNetCore.App was not found"Fix "The framework Microsoft.AspNetCore.App, version x was not found" at runtime in CI - the ASP.NET Core sha… "The framework ... was not found"Fix "The framework Microsoft.NETCore.App, version x.x.x was not found" at runtime in CI - the required .NET r… workload / SDK band mismatchFix dotnet workload version mismatches in CI - installed workloads pinned to a different SDK feature band tha… "workload(s) not installed"Fix dotnet "NETSDK1147: To build this project, the following workloads must be installed" in CI - install mis… global.json rollForward blocks SDKFix dotnet builds where a too-strict global.json rollForward policy (disable / patch) blocks an installed SDK… AOT / trim analysis errorsFix dotnet publish failures with PublishAot / PublishTrimmed in CI - IL2026, IL3050, and trim-analysis warnin… "RID ... not recognized" on self-contained publishFix dotnet publish failing to resolve a self-contained runtime - an unknown or unsupported Runtime Identifier… SDK / TargetFramework mismatchFix .NET SDK and TargetFramework mismatches in CI - "NETSDK1045: The current .NET SDK does not support target… 'Microsoft.NETCore.App' not foundFix "Framework 'Microsoft.NETCore.App', version X was not found" in CI - the runtime the app needs is not ins… "MSB3073: ... exited with code N"Fix MSBuild "MSB3073: The command X exited with code N" in CI - an Exec or post-build command returned a non-… "MSB3644: reference assemblies ... not found"Fix MSBuild "MSB3644: The reference assemblies for .NETFramework,Version=vX were not found" in CI - install t… "MSB4236: ... SDK ... was not found"Fix MSBuild "error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found" in CI - building an SDK…

Build & test

MSBuild errors and test failures.

"A compatible .NET SDK was not found"Fix "A compatible .NET SDK was not found" / "Requested SDK version ... was not found" in CI - global.json pin… "error NETSDK1045: ... does not support targeting"Fix "error NETSDK1045: The current .NET SDK does not support targeting .NET X" in CI - the SDK installed on t… "error NETSDK1047: ... target for ... runtime identifier"Fix "error NETSDK1047: Assets file does not have a target for net8.0/RID" during dotnet publish in CI - the p… Self-contained publish needs a RID restoreFix self-contained dotnet publish failures in CI where a runtime identifier is required - publishing self-con… "Could not load file or assembly"Fix "System.IO.FileLoadException / FileNotFoundException: Could not load file or assembly X" in CI - a versio… "dotnet publish" RID / self-contained errorFix "dotnet publish" failures for self-contained or runtime-specific ASP.NET Core apps in CI - a missing or w… "dotnet test" factory startup failsFix "dotnet test" failures where the WebApplicationFactory host fails to start in CI - the test spins up the… "could not find file ... appsettings.json"Fix "System.IO.FileNotFoundException: The configuration file 'appsettings.json' was not found and is not opti… "No service for type has been registered"Fix "System.InvalidOperationException: No service for type X has been registered" in CI - code called GetRequ… "Npgsql ... Connection refused"Fix "Npgsql.NpgsqlException: Failed to connect ... Connection refused" in CI - the app started before the Pos… "Unable to configure HTTPS endpoint"Fix ASP.NET Core "Unable to configure HTTPS endpoint. No server certificate was specified, and the default de… "Unable to resolve service for type"Fix "System.InvalidOperationException: Unable to resolve service for type X while attempting to activate Y" i… GetConnectionString returns nullFix ASP.NET Core "The ConnectionString property has not been initialized" and "No connection string named X w… Health check returns UnhealthyFix ASP.NET Core health checks returning Unhealthy in a CI smoke test or deploy gate - a registered check (da… "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… "A network-related or instance-specific error"Fix "Microsoft.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while estab… "NETSDK1045 ... does not support targeting"Fix "error NETSDK1045: The current .NET SDK does not support targeting .NET X" in CI - the runner SDK is olde… user-secrets not available in CIFix ASP.NET Core failures when user-secrets are relied on in CI - the secrets store is a local dev file that… ASPNETCORE_ENVIRONMENT mismatchFix ASP.NET Core configuration failures in CI caused by ASPNETCORE_ENVIRONMENT - the app loads the wrong apps… "Could not find a part of the path ..._framework"Fix the Blazor publish error "Could not find a part of the path ... _framework" in CI - a later step looked f… MSB4018 scoped CSS task failedFix the Blazor "error MSB4018: The task failed unexpectedly" raised by the scoped CSS bundling tasks in CI -… "RZ10012 ... does not have a corresponding component"Fix the Blazor Razor error "RZ10012: Found markup element with unexpected name" in CI - the compiler could no… "Unable to find package ...Components.WebAssembly"Fix the Blazor restore error "Unable to find package Microsoft.AspNetCore.Components.WebAssembly" in CI - NuG… "wasm-tools" workload not installedFix the Blazor WebAssembly "wasm-tools" workload error in CI - publishing a trimmed or AOT Blazor WASM app re… AOT "Emscripten ... not found"Fix the Blazor WebAssembly AOT error where the build cannot find the Emscripten toolchain in CI - AOT compila… "_framework/blazor.*.js" not foundFix the Blazor Server build/publish problem where the framework script under _framework is not produced in CI… "IL2104 ... trim analysis"Fix Blazor WebAssembly trim analysis warnings (IL2104, IL2026) that fail the build in CI - publish trimming r… "CS0006: Metadata file ... could not be found"Fix C# "error CS0006: Metadata file <dll> could not be found" in CI - a referenced project or assembly that f… "CS0006: Metadata file ... not found"Fix C# "CS0006: Metadata file X.dll could not be found" in CI - a referenced project failed to build or built… "CS0017: more than one entry point"Fix C# "CS0017: Program has more than one entry point defined" in CI - two Main methods (or top-level stateme… "CS0019: Operator cannot be applied"Fix C# "CS0019: Operator X cannot be applied to operands of type A and B" in CI - combining or comparing inco… "CS0029: Cannot implicitly convert"Fix C# "CS0029: Cannot implicitly convert type A to B" in CI - assigning a value to a variable of an incompat… "CS0103: ... does not exist"Fix C# "CS0103: The name X does not exist in the current context" in CI - an undeclared variable, a misspelle… "CS0111: ... already defines a member"Fix C# "CS0111: Type already defines a member called M with the same parameter types" in CI - a duplicate met… "CS0117: ... does not contain a definition"Fix C# "CS0117: T does not contain a definition for M" in CI - a renamed, removed, or version-skewed member t… "CS0120: object reference required"Fix C# "CS0120: An object reference is required for the non-static field, method, or property M" in CI - an i… "CS0201: ... can be used as a statement"Fix C# "CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as… "CS0227: unsafe code may only appear ..."Fix C# "CS0227: Unsafe code may only appear if compiling with /unsafe" in CI - an unsafe block without AllowU… "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 r… "CS0234: ... does not exist in namespace"Fix C# "CS0234: The type or namespace name X does not exist in the namespace Y" in CI - a missing package pro… "CS0246: type or namespace ... not found"Fix C# "error CS0246: The type or namespace name <X> could not be found" in CI - a missing using directive, a… "CS0246: ... could not be found"Fix C# "CS0246: The type or namespace name X could not be found" in CI - a missing package, project reference… "CS0266: ... an explicit conversion exists"Fix C# "CS0266: Cannot implicitly convert type A to B. An explicit conversion exists (are you missing a cast?… "CS0535: ... does not implement interface member"Fix C# "CS0535: T does not implement interface member I.M" in CI - a class that claims an interface but is mi… "CS1002: ; expected"Fix C# "CS1002: ; expected" in CI - a missing statement terminator, usually from an incomplete line or a merg… "CS1003: Syntax error"Fix C# "CS1003: Syntax error, X expected" in CI - the parser expected a specific token (comma, brace, paren)… "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… "CS1061: ... no definition for ..."Fix C# "error CS1061: <type> does not contain a definition for <member>" in CI - a member that was renamed or… "CS1061: ... no definition for"Fix C# "CS1061: X does not contain a definition for Y" in CI - a renamed or removed member, or a missing usin… "CS1503: cannot convert from"Fix C# "CS1503: Argument N: cannot convert from A to B" in CI - passing an argument whose type does not match… "CS8600: Converting null literal ..."Fix C# "CS8600: Converting null literal or possible null value to non-nullable type" in CI - a nullable-refer… "CS8602: possibly null reference"Fix C# "CS8602: Dereference of a possibly null reference" in CI - a nullable-reference warning promoted to an… "CS8618: ... must contain a non-null value"Fix C# "CS8618: Non-nullable property/field X must contain a non-null value when exiting constructor" in CI -… "error CS0246: ... could not be found"Fix "error CS0246: The type or namespace name X could not be found" during dotnet build in CI - a referenced… "error CS1503: ... cannot convert from"Fix "error CS1503: Argument N: cannot convert from X to Y" during dotnet build in CI - a method call passes a… "error CSxxxx"Fix common C# compiler errors in CI - CS0246 type or namespace not found, CS0103 name does not exist, CS1061… TreatWarningsAsErrors fails buildFix C# builds that pass locally but fail in CI because TreatWarningsAsErrors promotes compiler (CS-series) wa… CS warning fails the build as an errorFix a C# warning that fails the build as an error in CI - TreatWarningsAsErrors turns a warning like CS0168 o… "Could not load file or assembly"Fix "System.IO.FileNotFoundException: Could not load file or assembly" / version mismatch in CI - missing dep… "error MSB1011: Specify which project or solution"Fix "error MSB1011: Specify which project or solution file to use because this folder contains more than one"… "dotnet format" verify failedFix "dotnet format --verify-no-changes" failures in CI - formatting or code-style drift that the formatter wo… "Specify which project or solution file to use"Fix dotnet "error MSB1011: Specify which project or solution file to use because this folder contains more th… "NETSDK1004: ... project.assets.json not found"Fix dotnet "error NETSDK1004: Assets file <path>/project.assets.json not found. Run a NuGet package restore"… "NETSDK1064: Package ... was not found"Fix dotnet "error NETSDK1064: Package <id>, version <v> was not found. It might have been deleted since NuGet… "NETSDK1112: ... runtime pack ... not downloaded"Fix dotnet publish "NETSDK1112: The runtime pack for ... was not downloaded" / RID-specific restore errors in… TreatWarningsAsErrors fails buildFix dotnet builds that fail because TreatWarningsAsErrors promotes a compiler warning to an error in CI - a w… "vstest.console.dll ... could not be found"Fix "Could not find ... vstest.console.dll" / "VSTest task ... could not be found" in CI - the test runner is… "warning ... treated as error"Fix dotnet builds failing on "warning CSxxxx: ... [treated as error]" in CI - when TreatWarningsAsErrors turn… analyzer CAxxxx as errorFix dotnet builds failing on Roslyn analyzer warnings (CAxxxx) promoted to errors in CI - code analysis or a… dotnet ef migrations errorFix "dotnet ef" migration failures in CI - "Unable to create a DbContext", "No project was found", or a missi… "No project was found" / EF toolsFix dotnet ef failing with "No project was found" or "Could not execute because the specified command or file… "Unable to create an object of type DbContext"Fix dotnet ef "Unable to create an object of type X DbContext" in CI - design-time DbContext creation failing… "dotnet format ... would have changed files"Fix "dotnet format --verify-no-changes" failing in CI - a formatting/style gate that exits non-zero because f… nullable CS86xx as errorFix dotnet builds failing on nullable reference warnings (CS8600, CS8602, CS8618) promoted to errors in CI -… dotnet pack versioning errorFix dotnet pack failures in CI - NU5017 "Cannot create a package that has no dependencies nor content", missi… "NU5039: ... readme file does not exist"Fix dotnet pack "NU5039: The readme file does not exist" / "NU5046: The 'readme' element is not specified" in… "dotnet pack ... PackageId not set"Fix dotnet pack producing a package with a wrong/missing PackageId (or NU5017/empty id) in CI - the package i… "No test matches the given testcase filter"Fix "dotnet test --filter" runs that match zero tests in CI - a wrong filter expression, trait, or fully-qual… "... matched the specified pattern but 0 tests ran"Fix "A total of 1 test files matched the specified pattern but 0 tests ran" in CI - the assembly loaded but d… "No test is available"Fix dotnet test "No test is available" / "No test matches the given testcase filter" in CI - a missing test S… "No test is available"Fix dotnet test "No test is available in ... Make sure that test discoverer and executors are registered" in… "The Settings file ... could not be found"Fix "dotnet test --settings" failures in CI - a .runsettings path that does not exist on the runner, or an in… "Testhost process ... crashed"Fix dotnet test "The active test run was aborted. Reason: Test host process crashed" in CI - the process runn… "Testhost process exited with error"Fix "Testhost process exited with error: ..." / "The active test run was aborted" in CI - the test host proce… "Failed!" - dotnet testFix dotnet test failing with exit code 1 in CI - "Failed! - Failed: N" from assertion failures or exceptions.… "database ... does not exist"Fix EF Core "database \"app\" does not exist" (Npgsql 3D000) and "Cannot open database" (SQL Server) in CI -… "dotnet ef migrations bundle"Fix "dotnet ef migrations bundle" failures in CI - the bundle build fails on target runtime, missing Design p… "No executable found matching command dotnet-ef"Fix "Could not execute because the specified command or file was not found ... dotnet-ef" in CI - the EF Core… "pending changes ... Add a new migration"Fix EF Core "The model for context has pending changes" and pending-migration failures in CI - the database s… "requires a primary key to be defined"Fix EF Core "The entity type X requires a primary key to be defined" in CI - the model has an entity EF canno… "doesn't reference ...EntityFrameworkCore.Design"Fix EF Core "Your startup project X doesn't reference Microsoft.EntityFrameworkCore.Design" in CI - the desig… "RuntimeIdentifier ... required"Fix the .NET MAUI build error that a RuntimeIdentifier is required to build the iOS or Mac Catalyst target in… NETSDK1147 maui workload missingFix the .NET MAUI "error NETSDK1147: To build this project, the following workloads must be installed: maui"… NU1101 "Unable to find package Microsoft.Maui"Fix the .NET MAUI restore error "NU1101: Unable to find package Microsoft.Maui.*" in CI - NuGet could not res… APT2 resource compile errorFix the .NET MAUI Android "error APT2 ... resource" failures in CI - the Android Asset Packaging Tool 2 could… "JavaSdkDirectory" not foundFix the .NET MAUI Android build error where the JDK cannot be located in CI - the Android build needs a Java… Android "keystore ... not found"Fix the .NET MAUI Android signing failure in CI where the keystore cannot be found or the password is wrong -… XA5207 Android SDK not foundFix the .NET MAUI Android "error XA5207: Could not find android.jar for API level" in CI - the build could no… iOS "Xcode ... not found"Fix the .NET MAUI iOS build error where Xcode cannot be located in CI - building an iOS target requires a mac… "error MSB1009: Project file does not exist"Fix "error MSB1009: Project file does not exist" during dotnet build in CI - the path passed to build or rest… "error MSB3644: ... reference assemblies ... were not found"Fix "error MSB3644: The reference assemblies for .NETFramework,Version=vX were not found" in CI - the targeti… "error MSB4019: The imported project ... was not found"Fix "error MSB4019: The imported project X was not found" during dotnet build in CI - an Import in the projec… "error MSB4126: ... is not a valid ... configuration"Fix "error MSB4126: The specified solution configuration X is invalid" during dotnet build in CI - the Config… "error MSB4181: ... returned false but did not log an error"Fix "error MSB4181: The X task returned false but did not log an error" during dotnet build in CI - a custom… "error MSBxxxx"Diagnose and fix MSBuild errors in CI - MSB1009 project file does not exist, MSB4019 imported project not fou… "MSB1003: Specify a project or solution file"Fix MSBuild "MSB1003: Specify a project or solution file. The current working directory does not contain one"… "MSB1009: Project file does not exist"Fix MSBuild "error MSB1009: Project file does not exist" in CI - dotnet build/restore pointed at a .csproj or… "MSB1011: Specify which project"Fix MSBuild "MSB1011: Specify which project or solution file to use" in CI - dotnet build or run found multip… "MSB3021: Unable to copy file"Fix MSBuild "MSB3021: Unable to copy file X to Y. Access to the path is denied" in CI - a permission or stale… "MSB3021: Unable to copy file"Fix MSBuild "MSB3021: Unable to copy file" failures in CI caused by stale or read-only incremental build stat… "Unable to copy file ... being used"Fix MSBuild "MSB3027: Could not copy ... exceeded retry count" / "MSB3021: Unable to copy file ... being used… "MSB3027: could not copy ... locked"Fix MSBuild "MSB3027: Could not copy X to Y. Exceeded retry count. The file is locked by: another process" in… "MSB3027: ... being used by another process"Fix MSBuild "MSB3027: Could not copy <file>. Exceeded retry count" / "being used by another process" in CI -… "MSB3202: ... project file ... was not found"Fix MSBuild "error MSB3202: The project file <path> was not found" in CI - a project referenced by a solution… "MSB3644: ... not found"Fix MSBuild "MSB3644: The reference assemblies for X were not found" in CI - a targeting pack for a framework… "MSB4018: ... task failed unexpectedly"Fix MSBuild "error MSB4018: The <task> task failed unexpectedly" in CI - a build task that threw an unhandled… "MSB4018: task failed unexpectedly"Fix MSBuild "MSB4018: The X task failed unexpectedly" in CI - a build task threw an unhandled exception, ofte… "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 defin… "MSB4181: ... returned false but ... no error"Fix MSBuild "MSB4181: The <task> task returned false but did not log an error" in CI - a build task failed wi… "MSB4181: ... returned false"Fix MSBuild "MSB4181: The X task returned false but did not log an error" in CI - a wrapped task failed silen… "The build stopped unexpectedly"Fix MSBuild "The build stopped unexpectedly because of an internal failure" / MSB4166 in CI - a crashed worke… "error NU1100: Unable to resolve"Fix "error NU1100: Unable to resolve X for net8.0" during dotnet restore in CI - restore could not satisfy a… "error NU1101: Unable to find package"Fix "error NU1101: Unable to find package X. No packages exist with this id in source(s)" during dotnet resto… "error NU1102: Unable to find package ... with version"Fix "error NU1102: Unable to find package X with version (>= Y)" during dotnet restore in CI - the package ex… "error NU1202: ... not compatible with"Fix "error NU1202: Package X is not compatible with net8.0" during dotnet restore in CI - the package support… "error NU1301: Unable to load the service index"Fix "error NU1301: Unable to load the service index for source" during dotnet restore in CI - NuGet could not… "error NU1403: ... content hash validation failed"Fix "error NU1403: Package content hash validation failed for X" during dotnet restore in CI - the lock file… "error NU1605: Detected package downgrade"Fix "error NU1605: Detected package downgrade: X from A to B" during dotnet restore in CI - a transitive depe… "401 (Unauthorized)" from a private feedFix NuGet "Response status code does not indicate success: 401 (Unauthorized)" from a private feed in CI - th… "error CAxxxx / IDExxxx: ..."Fix a Roslyn analyzer diagnostic (CAxxxx, IDExxxx, or third-party) failing the build in CI because TreatWarni… "FileLoadException: ... does not match"Fix System.IO.FileLoadException "Could not load file or assembly ... manifest definition does not match the a… "FileNotFoundException: Could not load ..."Fix System.IO.FileNotFoundException "Could not load file or assembly X" at runtime in CI - a dependency that… "MissingMethodException: Method not found"Fix System.MissingMethodException "Method not found: X" at runtime in CI - a version mismatch where the loade… "HttpRequestException: The SSL connection ..."Fix System.Net.Http.HttpRequestException "The SSL connection could not be established" in CI - a TLS/certific… "OutOfMemoryException" during testsFix System.OutOfMemoryException during dotnet test in CI - the test process exhausting available memory, some… "PlatformNotSupportedException"Fix System.PlatformNotSupportedException in CI - code using a Windows-only or platform-specific API while run… "TypeInitializationException: ..."Fix System.TypeInitializationException "The type initializer for X threw an exception" in tests in CI - a sta… "Could not load file or assembly" (test)Fix VSTest "Could not load file or assembly X or one of its dependencies" during dotnet test in CI - an assem… "constructor parameters did not have matching"Fix xUnit "The following constructor parameters did not have matching fixture data" with WebApplicationFactor… "Could not load ... Mono.Android"Fix the Xamarin.Android build/test error "Could not load file or assembly Mono.Android" in CI - the Android f… MSB4062 Xamarin task not loadedFix the Xamarin "error MSB4062: The task could not be loaded from the assembly" in CI - MSBuild could not loa… The "Aapt2" task failedFix the Xamarin.Android "The \"Aapt2Compile\" task failed unexpectedly" in CI - the AAPT2 resource task could… TargetFrameworkVersion not installedFix the Xamarin.Android build error where the project TargetFrameworkVersion is not installed in CI - the And… XA5300 Android SDK directory not foundFix the Xamarin.Android "error XA5300: The Android SDK directory could not be found" in CI - the legacy Xamar… mtouch (MT) build failedFix the Xamarin.iOS "mtouch" build failure in CI - the native AOT linker that builds the iOS app failed, ofte… "No test matches the given testcase filter"Fix "No test matches the given testcase filter X in assembly Y" in CI - a --filter expression that matches no…
Explore other topics