You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However this seems to generate a CS0103 The name 'Configuration' does not exist in the current context. The namespace Microsoft.Extensions.Configuration is imported.
In .NET 6 the code seems to be the following instead of the current sample. However this generates the error.
In VS2022 create a new "Blazor server app" or "Blazor webassembly app" (when creating a "Blazor webassembly app" be shure to select the "ASP.NET Core hosted" checkbox)
Set the framework to .NET 6.0
Open "Program.cs"
Try to set the connection string.
Update: If you use the "Individual accounts" template the correct syntax is generated
Today i wanted to start with a simple blazor app. However it seems that the syntax for loading the connection string has been changed in .NET 6.
The current way is:
EntityFramework.Docs/entity-framework/core/miscellaneous/connection-strings.md
Lines 36 to 40 in 7e13def
However this seems to generate a CS0103
The name 'Configuration' does not exist in the current context
. The namespaceMicrosoft.Extensions.Configuration
is imported.In .NET 6 the code seems to be the following instead of the current sample. However this generates the error.
Steps to reproduce.
Update: If you use the "Individual accounts" template the correct syntax is generated
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: