-
Notifications
You must be signed in to change notification settings - Fork 131
Use calling assembly for determining build configuration #598
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
Conversation
|
@dotnet-policy-service agree |
|
@ErikEJ We should have a look at this. We've been going back and forth on what assembly to use for determining the configuration quite a bit. I still think we should use |
|
@jmezach Not sure why this was needed at all in the first place, tbh |
|
@jmezach And how would you get the assembly from TProject? |
|
@ErikEJ I believe the main issue was with the CI pipeline of this project itself. The CI was building the referenced MSBuild.Sdk.SqlProj with configuration Release, so when running the tests we couldn't find the As for how we get the assembly of the |
|
@jmezach I guess that could work too, for the generic |
src/CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects/SqlProjectResource.cs
Outdated
Show resolved
Hide resolved
src/CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects/SqlProjectBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects/SqlProjectResource.cs
Outdated
Show resolved
Hide resolved
|
@sschutten Have you smoke tested the latest change? |
|
@ErikEJ Yes, all integration tests pass and I can confirm this works in my solution during runtime and during integration tests. |
|
@sschutten OK, I have kicked in the CI build now |
|
I have tested the Nuget package from the CI build on one of our "production" solutions, and it works as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #590
This change takes the assembly calling the
AddSqlProjectextension method for determining the build configuration. TheAddSqlProjectextension method is usually called from the AppHost project and is used to more reliably determine the build configuration. This works for both during running the AppHost as well as during integration testing.PR Checklist
Other information
This is my first contribution to this project. Please let me know things I should improve!