refit breaking changes
Updated December 4, 2026
On this page
Latest version 17.1.0, released November 30, 2026. Source repository
Its 17.0.0 release requires .NET 10 or later. .NET end of life dates.
- From 14.0.0 to 17.0.0: 35 breaking changes in 1 version.
- From 2.0.0 to 17.0.0: 148 breaking changes in 9 versions.
refit 17.0.0 breaking changes
- Removed
Refit 17 no longer targets .NET Framework 4.6.2. Retarget applications using it before upgrading or stay on Refit 16. github.com - Removed
Refit removes .NET 8 and .NET 9 targets because Microsoft ended their support. Retarget applications to .NET 10 LTS or .NET 11 before upgrading. github.com - Removed
Refit drops the net462 build ahead of Microsoft's end of support. Use a remaining .NET Framework target such as 4.8 or 4.8.1. github.com - Removed
Refit 17 no longer targets .NET 8 or .NET 9. Retarget applications on those frameworks before upgrading or stay on Refit 16. github.com - Removed
AddKeyedRefitClient
AddKeyedRefitClient moved to the Refit.HttpClientFactory.Reflection package. github.com - Removed
AddRefitClient
AddRefitClient moved to the Refit.HttpClientFactory.Reflection package. github.com - Removed
GetFieldNameForProperty
The GetFieldNameForProperty contract was removed; custom content serializers must migrate to the new field-name provider. github.com - Removed
Refit.FormField.ExplicitName
Refit.FormField.ExplicitName was removed in refit 17.0.0 nuget.org - Removed
Refit.IHttpContentSerializer.GetFieldNameForProperty
The method taking a PropertyInfo is gone. Delete it from custom serializers and implement IContentSerializerNameStyle or IReflectionFieldNameProvider instead. nuget.org - Removed
Refit.JsonContentSerializer.GetFieldNameForProperty
Refit.JsonContentSerializer.GetFieldNameForProperty was removed in refit 17.0.0 nuget.org - Removed
Refit.ObjectToInferredTypesConverter
Refit.ObjectToInferredTypesConverter was removed in refit 17.0.0 nuget.org - Removed
Refit.RequestBuilder
Refit.RequestBuilder was removed in refit 17.0.0 nuget.org - Removed
Refit.RestMethodInfo
RestMethodInfo now lives in the Refit.Reflection package. Code that uses it needs that package reference. nuget.org - Removed
Refit.RestMethodParameterInfo
RestMethodParameterInfo now lives in the Refit.Reflection package. Code that uses it needs that package reference. nuget.org - Removed
Refit.RestMethodParameterProperty
RestMethodParameterProperty now lives in the Refit.Reflection package. Code that uses it needs that package reference. nuget.org - Removed
Refit.RestService.For
RestService.For moved to the Refit.Reflection package; add that package or use RestService.ForGenerated. nuget.org - Removed
Refit.SystemTextJsonContentSerializer.GetFieldNameForProperty
Refit.SystemTextJsonContentSerializer.GetFieldNameForProperty was removed in refit 17.0.0 nuget.org - Removed
RequestBuilder.ForType
RequestBuilder.ForType moved to the Refit.Reflection package; add that package to keep using it. github.com - Behavior changed
Default JSON now uses numeric enums, rejects numbers encoded as strings, and reads object values as JsonElement. Configure converters explicitly if an API needs another format. github.com - Behavior changed
The default options dropped AllowReadingFromString, so a quoted number no longer reads into an int. Set NumberHandling on the options if your API sends numbers as strings. github.com - Behavior changed
Complex objects in form bodies now throw NotSupportedException unless Refit.Reflection is referenced and registered. Flatten the model or type the body so the generator sees every member. github.com - Behavior changed
Properties typed object or Dictionary<string, object> now hold JsonElement values instead of CLR values. Read the JsonElement or call AddReflectionConverters from Refit.Reflection. github.com - Behavior changed
Enums that appear only as object or a generic argument format as plain names unless Refit.Reflection is registered. github.com - Behavior changed
Refit.Newtonsoft.Json and Refit.Xml now produce trim and AOT warnings, and their serializers can fail at run time in trimmed or AOT apps. Use System.Text.Json with a JsonSerializerContext for those apps. github.com - Behavior changed
The default JSON options no longer include the string enum converter, so enums are sent and read as numbers. Add a string enum converter to keep the old wire format. github.com - Behavior changed
ProblemDetails.Extensions
The serializer no longer fills Extensions on ProblemDetails, and custom subclasses or serializer settings no longer take part. Read extra members from the raw JSON if needed. github.com - Behavior changed
SystemTextJsonContentSerializer
Options without a resolver no longer switch to reflection silently. The first request throws NotSupportedException, so pass a source-generated context or reference Refit.Reflection. github.com - Configuration changed
Refit.Reflection and Refit.HttpClientFactory.Reflection are no longer trimmable and Refit.Reflection.targets no longer ships. Trimmed apps must keep the types they use themselves or move to generated clients. github.com - Signature changed
GeneratedRequestRunner
GeneratedRequestRunner, FormField and generated attribute providers changed shape. Rebuild every project with Refit-generated clients and do not mix Refit 16 generator output with Refit 17. github.com - Signature changed
Refit.DefaultUrlParameterFormatter.Format
The Format parameter type changed the same way as the interface. Update overrides to the new parameter type. nuget.org - Signature changed
Refit.FormField.ResolveFieldName
Was string ResolveFieldName(Refit.IUrlParameterKeyFormatter urlParameterKeyFormatter); now string ResolveFieldName(Refit.IUrlParameterKeyFormatter urlParameterKeyFormatter, Refit.ContentSerializerNameStyle nameStyle). nuget.org - Signature changed
Refit.GeneratedRequestRunner.AddFormattedCollectionProperty
Was static void AddFormattedCollectionProperty(ref Refit.GeneratedQueryStringBuilder builder, Refit.RefitSettings settings, System.Collections.IEnumerable values, string key, Refit.CollectionFormat collectionFormat, bool preEncoded... nuget.org - Signature changed
Refit.GeneratedRequestRunner.FormatUrlParameter
Was static string FormatUrlParameter(Refit.RefitSettings settings, object value, System.Reflection.ICustomAttributeProvider attributeProvider, System.Type type); now static string FormatUrlParameter(Refit.RefitSettings settings, object... nuget.org - Signature changed
Refit.GeneratedRequestRunner.RoundTripEscapePath
Was static string RoundTripEscapePath(string value, Refit.RefitSettings settings, System.Reflection.ICustomAttributeProvider attributeProvider, System.Type type); now static string RoundTripEscapePath(string value, Refit.RefitSettings... nuget.org - Signature changed
Refit.IUrlParameterFormatter.Format
The Format parameter type changed from ICustomAttributeProvider to IParameterAttributeProvider. Update the parameter type in custom formatters. nuget.org
refit 14.0.0 breaking changes
- Removed
The reflection request builder is now in the Refit.Reflection package. Add that package if any API method reports RF006. github.com - Removed
The Refit package no longer includes the reflection request builder. Add a reference to the Refit.Reflection package if any interface method cannot generate inline. github.com - Removed
The Refit package no longer includes the reflection request builder. Add the Refit.Reflection package if any method cannot generate inline, or RestService.For and AddRefitClient will throw NotSupportedException. github.com - Behavior changed
Streams you pass as a body, StreamPart or multipart parameter stay open after the request. You must dispose them yourself. github.com - Behavior changed
Query keys for flattened objects now use the content serializer's property name, such as JsonPropertyName. Set HonorContentSerializerPropertyNamesInQuery to false to keep the old behavior. github.com - Behavior changed
Nested objects, dictionaries and collections in URL-encoded bodies are now flattened into key-value pairs instead of their ToString() output. github.com - Behavior changed
Fully generated interfaces validate route templates when the first request is built, not when the client is created. github.com - Behavior changed
Nested URL-encoded objects are flattened instead of using ToString(), so request bodies can change. github.com - Behavior changed
Refit no longer disposes streams supplied as request bodies or multipart parts. Callers must dispose them. github.com - Behavior changed
Query string generation now flattens query objects from their declared type, which can change the generated query. github.com
And 25 more in this version. Sign up to see every change
refit 14.0.0-beta.5 breaking changes
- Behavior changed
Request building no longer uses runtime reflection by default, which changes how existing clients are built. Check for RF006 warnings after upgrading. github.com
refit 14.0.0-beta.1 breaking changes
- Behavior changed
Interfaces whose methods all generate inline no longer use the reflection request builder. Code that relies on reflection-based request building must install the separate opt-in package. github.com - Signature changed
Callers that expect a Task from these members must be updated to handle ValueTask. The release notes do not name the affected members. github.com
refit 13.0.0 breaking changes
- Behavior changed
Sensitive values such as auth headers and tokens are now redacted from exception and log output, so code that parsed or displayed those values may see different text. github.com - Behavior changed
The Newtonsoft.Json integration no longer honours unsafe TypeNameHandling by default. If you relied on permissive Newtonsoft type handling, you must opt back in explicitly. github.com - Behavior changed
XML deserialization now guards against external entity (XXE) attacks, so payloads that relied on external entities may no longer be processed as before. github.com - Signature changed
Refit.ApiException.Content
Was string Content {get;}; now string Content {get; set;}. nuget.org
refit 12.0.0 breaking changes
- Removed
Target net462 or net8 instead, using multiple targets if you need to support both. github.com - Removed
IApiResponse<T>.ContentHeaders
Source still compiles through the inherited base member, but code compiled against v8-v11 needs a recompile. github.com - Removed
IApiResponse<T>.Error
Source still compiles through the inherited base member, but code compiled against v8-v11 needs a recompile. github.com - Removed
IApiResponse<T>.IsSuccessful
Source still compiles, but narrowing Content via IsSuccessful on IApiResponse<T> should move to HasContent or IsSuccessfulWithContent. github.com - Removed
IApiResponse<T>.IsSuccessStatusCode
Source still compiles through the inherited base member, but code compiled against v8-v11 needs a recompile. github.com - Removed
Refit.RestMethodInfo.EqualityContract
Refit.RestMethodInfo.EqualityContract was removed in refit 12.0.0 nuget.org - Removed
Refit.RestMethodInfo.PrintMembers
Refit.RestMethodInfo.PrintMembers was removed in refit 12.0.0 nuget.org - Behavior changed
Multipart Guid, DateTime, DateTimeOffset and TimeSpan values are now sent as plain text rather than JSON-quoted, so servers reading them may see different values. github.com - Default changed
SystemTextJsonContentSerializer
Numbers in JSON strings are now read by default; set NumberHandling to Strict on JsonSerializerOptions to keep the old behavior. github.com - Signature changed
Refit.AliasAsAttribute
Was class AliasAsAttribute : System.Attribute; now sealed class AliasAsAttribute : System.Attribute. nuget.org
And 27 more in this version. Sign up to see every change
Older versions
4 older versions, each with its first changes. Sign up to see every change
Show 4 older versions
refit 11.0.0 breaking changes
- Behavior changed
Exceptions thrown by HttpClient.SendAsync before a response arrives are now wrapped in ApiRequestException. For ApiResponse<T> return types they are surfaced through Error, so catch blocks around Refit calls may need to catch... github.com - Behavior changed
Synchronous return types are now only permitted for generated or non-public interface members. Interfaces that relied on unsupported synchronous members may now fail generation. github.com
And 7 more in this version.
refit 7.0.0 breaking changes
- Removed
Refit.RefitSettings.AuthorizationHeaderValueWithCancellationTokenGetter
Refit.RefitSettings.AuthorizationHeaderValueWithCancellationTokenGetter was removed in refit 7.0.0 nuget.org - Removed
Refit.RefitSettings.AuthorizationHeaderValueWithParamGetter
Refit.RefitSettings.AuthorizationHeaderValueWithParamGetter was removed in refit 7.0.0 nuget.org
And 22 more in this version.
refit 7.0.0-beta.1 breaking changes
- Configuration changed
The release marks its authorization configuration change as breaking, so code that configures authorization may need updating. github.com
refit 2.0.0 breaking changes
- Removed
Refit.CastleRestService
Refit.CastleRestService was removed in refit 2.0.0 nuget.org - Behavior changed
Refit 2.0 generates the backing classes for your interfaces at compile time with Roslyn into a RefitStubs.cs file instead of at runtime with Castle.Core, so the generated code and build setup change. github.com
And 1 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.