Skip to content
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

Fix issue 520 #538

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Fix issue 520 #538

merged 2 commits into from
Dec 19, 2024

Conversation

zijchen
Copy link
Member

@zijchen zijchen commented Dec 7, 2024

Fixes #520

msbuild is somehow resolving direct project references as transitive, which overwrites the correct ProjectReference with SQLCMD variables. Importing the Microsoft.NET.Sdk.BeforeCommon.targets fixes it, but need additional changes for targeting .NET Framework to work.

image

@zijchen zijchen marked this pull request as ready for review December 9, 2024 18:39

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 6 changed files in this pull request and generated no suggestions.

Files not reviewed (4)
  • src/Microsoft.Build.Sql/sdk/Sdk.props: Language not supported
  • src/Microsoft.Build.Sql/sdk/Sdk.targets: Language not supported
  • test/Microsoft.Build.Sql.Tests/TestData/BuildWithExternalReference/Synonym1.sql: Language not supported
  • test/Microsoft.Build.Sql.Tests/TestData/BuildWithExternalReference/View1.sql: Language not supported
@zijchen zijchen merged commit c2ec38a into main Dec 19, 2024
7 checks passed
@zijchen zijchen deleted the zijchen/520 branch December 19, 2024 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error SQL71501 for synonym referencing a table in another database in same solution
2 participants