-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcmigration/subsvcseQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.
Description
Description
app.ServiceProvider.GetRequiredService<IOptions>() generates an error message:
error CS1061: 'WebApplication' does not contain a definition for 'ServiceProvider' and no accessible extension method 'ServiceProvider' accepting a first argument of type 'WebApplication' could be found (are you missing a using directive or an assembly reference?)
Page URL
Content source URL
Document ID
f3b2ce81-5438-1d1a-1c2b-6cc9a089a0ea
Platform Id
f8610778-e458-a8a6-8136-0ee8c72f11e8
Article author
Metadata
- ID: f3b2ce81-5438-1d1a-1c2b-6cc9a089a0ea
- PlatformId: f8610778-e458-a8a6-8136-0ee8c72f11e8
- Service: aspnet-core
- Sub-service: migration
Metadata
Metadata
Assignees
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcmigration/subsvcseQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.