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
According to the docs, you should use AddConnectionString to connect to an existing SQL Server instance
This prevents SQL project publishing from working, as .WithReference only accepts IResourceBuilder<SqlServerDatabaseResource> and AddConnectionString returns IResourceBuilder<IResourceWithConnectionString>
Unsure how to solve, maybe add an WithReference overload that accepts a IResourceBuilder<IResourceWithConnectionString> ?
Happy to do a PR once we agree on a design (and agree that this add value / makes sense)
Related to an existing integration?
Yes
Existing integration
CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects
Overview
According to the docs, you should use
AddConnectionString
to connect to an existing SQL Server instanceThis prevents SQL project publishing from working, as .WithReference only accepts
IResourceBuilder<SqlServerDatabaseResource>
andAddConnectionString
returnsIResourceBuilder<IResourceWithConnectionString>
Unsure how to solve, maybe add an WithReference overload that accepts a
IResourceBuilder<IResourceWithConnectionString>
?Happy to do a PR once we agree on a design (and agree that this add value / makes sense)
@jmezach FYI
Usage example
Breaking change?
No
Alternatives
I seem to be forced to use a SQL container at the moment
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item
The text was updated successfully, but these errors were encountered: