-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add missing assembly references after dependency update to 11.0.0-alpha #64742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: darc-main-6224f5aa-e632-4669-b1f6-6ec23567b9ec
Are you sure you want to change the base?
Add missing assembly references after dependency update to 11.0.0-alpha #64742
Conversation
|
@copilot correction: References should look like |
Added Microsoft.AspNetCore.Http.Abstractions, Microsoft.AspNetCore.Http.Features, Microsoft.Extensions.Features, and Microsoft.AspNetCore.Hosting.Server.Abstractions references to projects that need them after dependency updates. Co-authored-by: wtgodbe <14283640+wtgodbe@users.noreply.github.com>
Added references to Microsoft.AspNetCore.Authentication.csproj and Microsoft.AspNetCore.Server.IISIntegration.csproj Co-authored-by: wtgodbe <14283640+wtgodbe@users.noreply.github.com>
…ects Added references to multiple middleware projects (CookiePolicy, RequestDecompression, HeaderPropagation, HttpsPolicy, WebSockets, ResponseCaching, ResponseCompression), MVC.Core, and SignalR Http.Connections. Co-authored-by: wtgodbe <14283640+wtgodbe@users.noreply.github.com>
Added Microsoft.AspNetCore.Http.Features to CORS and Http.Results, and Microsoft.AspNetCore.Routing.Abstractions to Http.Results to resolve LinkGenerator type issues. Co-authored-by: wtgodbe <14283640+wtgodbe@users.noreply.github.com>
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Confirmed - all Reference elements added follow that format: |
|
@copilot there are still more build errors to be fixed, as you can see in https://dev.azure.com/dnceng-public/public/_build/results?buildId=1228964&view=results. Please continue iterating by adding more References until they're all fixed. |
…zation.Policy, ResponseCompression, and IISIntegration Added Microsoft.AspNetCore.Http.Abstractions, Microsoft.AspNetCore.Http.Features, and Microsoft.AspNetCore.Authentication.Abstractions to projects that were missing them after dependency updates. Co-authored-by: wtgodbe <14283640+wtgodbe@users.noreply.github.com>
Added Microsoft.AspNetCore.Http.Features to ResponseCaching and Microsoft.AspNetCore.Http.Abstractions to SignalR.Core. Co-authored-by: wtgodbe <14283640+wtgodbe@users.noreply.github.com>
Added Microsoft.AspNetCore.Http.Features to HttpLogging for IHeaderDictionary, IHttpResponseBodyFeature, and IHttpUpgradeFeature. Co-authored-by: wtgodbe <14283640+wtgodbe@users.noreply.github.com>
... Fixed HttpLogging errors by adding Microsoft.AspNetCore.HttpLogging.csproj - Added
Commit: 29a5201 Total projects updated: 61 |
This comment was marked as resolved.
This comment was marked as resolved.
Added Microsoft.AspNetCore.Http.Features to RequestDecompression and Owin. Co-authored-by: wtgodbe <14283640+wtgodbe@users.noreply.github.com>
Fixed build errors by adding Microsoft.AspNetCore.RequestDecompression.csproj - Added
Microsoft.AspNetCore.Owin.csproj - Added
Commit: 56cbf5c Total projects updated: 63 |
|
@copilot go through every .csproj in the repo, and add References to each to eliminate their build errors |
Added Microsoft.AspNetCore.Http.Abstractions to MiddlewareAnalysis for IApplicationBuilder, RequestDelegate, and HttpContext. Co-authored-by: wtgodbe <14283640+wtgodbe@users.noreply.github.com>
…ices Added Microsoft.AspNetCore.Hosting.Abstractions to both projects for IWebHostBuilder and IWebHost. Co-authored-by: wtgodbe <14283640+wtgodbe@users.noreply.github.com>
Systematically reviewing all .csproj files. Fixed 3 more source projects so far:
Total projects updated: 66 Continuing to search for and fix remaining build errors across all projects in the repository. |
|
@copilot Add the missing References to the following projects to fix their build errors: src/Mvc/Mvc.ApiExplorer/src/Microsoft.AspNetCore.Mvc.ApiExplorer.csproj |
…nd Mvc.Formatters.Xml Added references to fix build errors: - Mvc.ApiExplorer: Added Mvc.Abstractions - Authentication.Cookies: Added Http.Abstractions, Net.Http.Headers - Authentication.BearerToken: Added Http.Abstractions, Net.Http.Headers - Authentication.OAuth: Added Http.Abstractions, WebUtilities, Authentication.Abstractions - Mvc.Formatters.Xml: Added Mvc.Abstractions, WebUtilities Co-authored-by: wtgodbe <14283640+wtgodbe@users.noreply.github.com>
Fixed all 5 projects by adding missing references: Mvc.ApiExplorer - Added Commit: 926ff42 Total projects updated: 71 |
|
@copilot Add the missing References to the following projects to fix their build errors: src/StaticAssets/src/Microsoft.AspNetCore.StaticAssets.csproj |
Added Microsoft.AspNetCore.Http references and other missing dependencies: - StaticAssets: Added Http - DefaultBuilder: Added Http - Mvc.Cors: Added Mvc.Abstractions - Mvc.Formatters.Xml: Added Http - Mvc.ApiExplorer: Added Http - Mvc.DataAnnotations: Added Http.Abstractions - Authentication.OAuth: Added Http - Authentication.BearerToken: Added Http Co-authored-by: wtgodbe <14283640+wtgodbe@users.noreply.github.com>
Fixed all 8 projects by adding missing references: StaticAssets - Added Commit: 485f4f1 |
Add missing assembly references after dependency update to 11.0.0-alpha
Fix build errors after dependency update from 10.0.x to 11.0.0-alpha
Description
The update from 10.0.x to 11.0.0-alpha relocated types between assemblies, breaking transitive dependencies. This PR adds explicit
<Reference>elements to 71 unique csproj files across the codebase through iterative fixes to resolve all build errors. Some projects received multiple rounds of reference additions as additional type dependencies were discovered during the build process.References Added
The following assembly references were added to fix type resolution issues:
Microsoft.AspNetCore.Http- IHttpActivityFeature, HeaderDictionaryMicrosoft.AspNetCore.Http.Abstractions- HttpContext, RequestDelegate, IApplicationBuilder, HttpMethods, BadHttpRequestException, routing features (IEndpointFeature, IRouteValuesFeature)Microsoft.AspNetCore.Http.Features- IHeaderDictionary, IHttpRequestFeature, IFormFeature, IHttpAuthenticationFeature, IHttpResponseBodyFeature, IHttpWebSocketFeature, IHttpUpgradeFeature, IHttpExtendedConnectFeature, IResponseCookiesFeature, ITlsConnectionFeature, HttpsCompressionMode, WebSocketAcceptContext, IFormFile, IFormCollection, IFormFileCollection, IQueryCollection, IHttpMaxRequestBodySizeFeatureMicrosoft.Extensions.Features- IFeatureCollectionMicrosoft.AspNetCore.Hosting.Server.Abstractions- IServer, IHttpApplication<>, IServerAddressesFeature, IStartupConfigureServicesFilter, IStartupConfigureContainerFilter<>Microsoft.AspNetCore.Hosting.Abstractions- IWebHostBuilder, WebHostBuilderContext, IWebHostEnvironment, IWebHostMicrosoft.AspNetCore.Routing.Abstractions- LinkGenerator, Endpoint, EndpointBuilder, IRouteConstraint, RouteValueDictionary, IRouter, RouteDirectionMicrosoft.AspNetCore.Authentication.Abstractions- AuthenticationProperties, AuthenticateResult, AuthenticationTicket, IAuthenticationHandler, IAuthenticationSchemeProvider, AuthenticationSchemeMicrosoft.AspNetCore.Authentication.Core- AddAuthenticationCore, AuthenticationFeatureMicrosoft.AspNetCore.WebUtilities- WebUtilities namespace typesMicrosoft.Net.Http.Headers- EntityTagHeaderValue, RangeItemHeaderValue, ContentRangeHeaderValue, ResponseHeaders, RequestHeaders, CookieHeaderValueMicrosoft.AspNetCore.Mvc.Abstractions- Validation types (IModelValidator, IClientModelValidator, ModelValidationContext, ClientModelValidationContext), ApiExplorer types (IApiDescriptionProvider, ApiDescription), ProblemDetails, Filter interfaces (IAsyncAuthorizationFilter, IFilterFactory, IOrderedFilter, IFilterMetadata, AuthorizationFilterContext, ActionConstraintContext)Affected Projects (71 unique projects)
Round 1: Initial batch (26 projects)
Round 2: Second batch (11 projects)
Round 3: Third batch (9 projects)
Round 4: Fourth batch (5 projects)
Round 5: Fifth batch (4 projects)
Round 6: Sixth batch (2 projects)
Round 7: Seventh batch (3 projects)
Round 8: Eighth batch (1 project)
Round 9: Ninth batch (2 projects)
Round 10: Tenth batch (3 projects)
Round 11: Eleventh batch (5 projects)
Round 12: Twelfth batch (8 projects, additional references)
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.