Skip to content

Commit ec001d5

Browse files
committed
Another attempt to fix VS publishing
Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com>
1 parent b57ff33 commit ec001d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MSBuild.Sdk.SqlProj/Sdk/Sdk.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
PostBuildEvent
5151
</CoreBuildDependsOn>
5252
<GenerateNuspecDependsOn>$(GenerateNuspecDependsOn);SetNuSpecProperties</GenerateNuspecDependsOn>
53-
<PublishDependsOn Condition="'$(BuildingInsideVisualStudio)' == 'true'">$(PublishDependsOn);PublishDatabase</PublishDependsOn>
53+
<PublishBeforeTargets Condition="'$(BuildingInsideVisualStudio)' == 'true'">PublishDatabase</PublishBeforeTargets>
5454
<PublishContainerDependsOn>$(PublishContainerDependsOn);PrepareContainer</PublishContainerDependsOn>
5555
</PropertyGroup>
5656

@@ -270,7 +270,7 @@
270270

271271
<!-- Performs a publish of the .dacpac produced by build to a configurable target server -->
272272
<!-- Note: This used to contain a condition that DeployOnPublish != False. Since you now have to explicitly run the PublishDatabase target this no longer made sense. -->
273-
<Target Name="PublishDatabase" DependsOnTargets="Build">
273+
<Target Name="PublishDatabase" DependsOnTargets="Build" BeforeTargets="$(PublishBeforeTargets)">
274274
<ItemGroup>
275275
<_DeployPropertyNames Include="$(KnownDeployProperties)" />
276276
<DeployPropertyNames Include="@(_DeployPropertyNames)" Condition=" '$(%(Identity))' != '' ">

0 commit comments

Comments
 (0)