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

Add support for dotnet publish #487

Merged
merged 5 commits into from
Sep 25, 2024
Merged

Add support for dotnet publish #487

merged 5 commits into from
Sep 25, 2024

Conversation

zijchen
Copy link
Member

@zijchen zijchen commented Sep 6, 2024

Running dotnet publish will place the dacpac and all dependencies into the publish folder. Note this does not publish dacpac to databasae, please use sqlpackage for that.

Closes #447

@dzsquared
Copy link
Contributor

clarifying "and all dependencies" - if I have a sqlproj with a dacpac file reference and a dacpac nupkg reference - then run dotnet publish -
is the result that the project.dacpac is placed in the output/publish folder plus the other 2 dacpacs?

@zijchen
Copy link
Member Author

zijchen commented Sep 9, 2024

clarifying "and all dependencies" - if I have a sqlproj with a dacpac file reference and a dacpac nupkg reference - then run dotnet publish - is the result that the project.dacpac is placed in the output/publish folder plus the other 2 dacpacs?

That is correct.

@llali
Copy link
Member

llali commented Sep 13, 2024

does publish folder include database references? master dacpacs?

@zijchen
Copy link
Member Author

zijchen commented Sep 13, 2024

does publish folder include database references? master dacpacs?

Yes, all references, whether they come from a project, Nuget, or direct dacpac reference get copied to publish folder.

@zijchen zijchen merged commit 2c6e18d into main Sep 25, 2024
13 checks passed
@zijchen zijchen deleted the zijchen/dotnet-publish branch September 25, 2024 17:51
@czb182
Copy link

czb182 commented Sep 27, 2024

Is there going to be a new version of Microsoft.Build.Sql for this PR?

@zijchen
Copy link
Member Author

zijchen commented Oct 1, 2024

Yes it'll be in > 0.2.4-preview

@ErikEJ
Copy link
Contributor

ErikEJ commented Oct 1, 2024

Which will be published when??

@zijchen
Copy link
Member Author

zijchen commented Oct 2, 2024

We'll look to push one this week or the next

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.

Support dotnet publish
5 participants