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
Describe the bug
When you add RazorLight to your Console App that use EF Core, operation like add-migration or update-database raise this error/warning : "An error occurred while accessing the Microsoft.Extensions.Hosting services"
To Reproduce
Using VS2022, create a new Console App for .NET 6.0
In the package Manager Console, launch the following command : "add-migration CreateDB"
Result is : "Build started...
Build succeeded.
Hello, World!
An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: The entry point exited without ever building an IHost.
To undo this action, use Remove-Migration."
Expected behavior
Same result but without the message "An error occurred while accessing the Microsoft.Extensions.Hosting services..."
Information (please complete the following information):
Note that I have on another project the following message : An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: An exception has been raised that is likely due to a transient failure. Consider enabling transient error resiliency by adding 'EnableRetryOnFailure' to the 'UseSqlServer' call.
The text was updated successfully, but these errors were encountered:
Describe the bug
When you add RazorLight to your Console App that use EF Core, operation like add-migration or update-database raise this error/warning : "An error occurred while accessing the Microsoft.Extensions.Hosting services"
To Reproduce
Build succeeded.
Hello, World!
An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: The entry point exited without ever building an IHost.
To undo this action, use Remove-Migration."
Expected behavior
Same result but without the message "An error occurred while accessing the Microsoft.Extensions.Hosting services..."
Information (please complete the following information):
Note that I have on another project the following message : An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: An exception has been raised that is likely due to a transient failure. Consider enabling transient error resiliency by adding 'EnableRetryOnFailure' to the 'UseSqlServer' call.
The text was updated successfully, but these errors were encountered: