Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions MSBuild.Sdk.SqlProj.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.12.35707.178 d17.12
# Visual Studio Version 18
VisualStudioVersion = 18.2.11415.280 d18.0
MinimumVisualStudioVersion = 15.0.26124.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{B0420F9B-A902-4E9D-8B29-55B4F626483B}"
EndProject
Expand All @@ -10,8 +10,6 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D25C8812-D92E-41D5-9BC9-30AFCF45063B}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
.github\workflows\main.yml = .github\workflows\main.yml
README.md = README.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DacpacTool", "src\DacpacTool\DacpacTool.csproj", "{78CA944A-928F-48FA-B29F-C5DC96E67684}"
Expand All @@ -20,6 +18,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{A3A4D55B-4
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DacpacTool.Tests", "test\DacpacTool.Tests\DacpacTool.Tests.csproj", "{2EC1BB4C-C8A1-4C7E-AAE9-24E22EB0A8C4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestProject", "test\TestProject\TestProject.csproj", "{1EDD367B-2A1B-C640-39D9-8DA744694312}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -66,6 +66,18 @@ Global
{2EC1BB4C-C8A1-4C7E-AAE9-24E22EB0A8C4}.Release|x64.Build.0 = Release|Any CPU
{2EC1BB4C-C8A1-4C7E-AAE9-24E22EB0A8C4}.Release|x86.ActiveCfg = Release|Any CPU
{2EC1BB4C-C8A1-4C7E-AAE9-24E22EB0A8C4}.Release|x86.Build.0 = Release|Any CPU
{1EDD367B-2A1B-C640-39D9-8DA744694312}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1EDD367B-2A1B-C640-39D9-8DA744694312}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1EDD367B-2A1B-C640-39D9-8DA744694312}.Debug|x64.ActiveCfg = Debug|Any CPU
{1EDD367B-2A1B-C640-39D9-8DA744694312}.Debug|x64.Build.0 = Debug|Any CPU
{1EDD367B-2A1B-C640-39D9-8DA744694312}.Debug|x86.ActiveCfg = Debug|Any CPU
{1EDD367B-2A1B-C640-39D9-8DA744694312}.Debug|x86.Build.0 = Debug|Any CPU
{1EDD367B-2A1B-C640-39D9-8DA744694312}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1EDD367B-2A1B-C640-39D9-8DA744694312}.Release|Any CPU.Build.0 = Release|Any CPU
{1EDD367B-2A1B-C640-39D9-8DA744694312}.Release|x64.ActiveCfg = Release|Any CPU
{1EDD367B-2A1B-C640-39D9-8DA744694312}.Release|x64.Build.0 = Release|Any CPU
{1EDD367B-2A1B-C640-39D9-8DA744694312}.Release|x86.ActiveCfg = Release|Any CPU
{1EDD367B-2A1B-C640-39D9-8DA744694312}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -74,6 +86,7 @@ Global
{F4A31183-CB24-4D39-B498-8FE4F1A0CCA2} = {B0420F9B-A902-4E9D-8B29-55B4F626483B}
{78CA944A-928F-48FA-B29F-C5DC96E67684} = {B0420F9B-A902-4E9D-8B29-55B4F626483B}
{2EC1BB4C-C8A1-4C7E-AAE9-24E22EB0A8C4} = {A3A4D55B-4484-4501-894F-0B07708A9A1D}
{1EDD367B-2A1B-C640-39D9-8DA744694312} = {A3A4D55B-4484-4501-894F-0B07708A9A1D}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {832DCF12-9633-4AEB-A9D8-444EDF649047}
Expand Down
4 changes: 4 additions & 0 deletions src/MSBuild.Sdk.SqlProj/Sdk/Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
PostBuildEvent
</CoreBuildDependsOn>
<GenerateNuspecDependsOn>$(GenerateNuspecDependsOn);SetNuSpecProperties</GenerateNuspecDependsOn>
<PublishDependsOn Condition="'$(BuildingInsideVisualStudio)' == 'true'">PublishDatabase</PublishDependsOn>
<PublishContainerDependsOn>$(PublishContainerDependsOn);PrepareContainer</PublishContainerDependsOn>
</PropertyGroup>

Expand Down Expand Up @@ -267,6 +268,9 @@
<Delete Files="@(SqlArtifacts -> '$(TargetDir)%(Filename)%(Extension)')" />
</Target>

<!-- This target is run when using dotnet publish / Visual Studio publish. PublishDependsOn is set above to control what happens when using Publish in Visual Studio -->
<Target Name="Publish" DependsOnTargets="$(PublishDependsOn)"></Target>

<!-- Performs a publish of the .dacpac produced by build to a configurable target server -->
<!-- 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. -->
<Target Name="PublishDatabase" DependsOnTargets="Build">
Expand Down
Loading