MSBuild.Sdk.SqlProj icon indicating copy to clipboard operation
MSBuild.Sdk.SqlProj copied to clipboard

Allow sql projects to publish on build (PublishOnBuild).

Open AraHaan opened this issue 3 years ago • 5 comments

This is triggered with a new msbuild property: PublishOnBuild.

AraHaan avatar Apr 30 '22 20:04 AraHaan

cc: @jmezach

AraHaan avatar Apr 30 '22 20:04 AraHaan

How is this different from

dotnet build

dotnet publish

especially since we support publish for local development only

ErikEJ avatar Nov 27 '22 10:11 ErikEJ

It allows this to be published even if the sqlproj just happens to be part of a solution where publishing those projects might fail (because they depend on runtimes for which the only supported form of publish is FDD). Also, it acts as a shortcut for when you only want to run build on the entire solution and do not want to run publish on the entire solution as well (however you want to publish specific projects in it via cli).

AraHaan avatar Nov 27 '22 12:11 AraHaan

I do not understand this sentence: because they depend on runtimes for which the only supported form of publish is FDD - what is FDD?

Also, it acts as a shortcut for when you only want to run build on the entire solution and do not want to run publish on the entire solution as well (however you want to publish specific projects in it via cli).

How is that very different from just

dotnet build

dotnet publish

ErikEJ avatar Nov 28 '22 06:11 ErikEJ

I do not understand this sentence: because they depend on runtimes for which the only supported form of publish is FDD - what is FDD?

Also, it acts as a shortcut for when you only want to run build on the entire solution and do not want to run publish on the entire solution as well (however you want to publish specific projects in it via cli).

How is that very different from just

dotnet build

dotnet publish

Framework dependent deployment (or FDD). I think dotnet publish now specifies an implicit RID since the release of the .NET 7 SDK which implies self-contained which can be breaking for some projects 💀.

AraHaan avatar Nov 28 '22 17:11 AraHaan