Skip to content

Commit

Permalink
updated mspec and opencover
Browse files Browse the repository at this point in the history
possible to pass parameters AllowIncompatiblePlatform,
GenerateSmartDefaults and BlockOnPossibleDataLoss to SqlPackage
  • Loading branch information
JorritSalverda committed Mar 18, 2013
1 parent 29a9cc6 commit 53744d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Build/Scripts/properties-convention-based.msbuild
Expand Up @@ -26,7 +26,7 @@

<!-- tool paths -->
<NUnitToolPath>$(BuildToolsDirectory)NUnit-2.6.0.12051\</NUnitToolPath>
<MSpecRunnerPath>$(BuildToolsDirectory)Machine.Specifications.0.5.7\tools\mspec-clr4.exe</MSpecRunnerPath>
<MSpecRunnerPath>$(BuildToolsDirectory)Machine.Specifications.0.5.11\tools\mspec-clr4.exe</MSpecRunnerPath>
<MSpecToJUnitXsltPath>$(BuildToolsDirectory)MSpecToJunitXslt\MSpecToJUnit.xslt</MSpecToJUnitXsltPath>
<MSTestRunnerPath>$(BuildToolsDirectory)MSTest.v11.0.50727.1\MSTest.exe</MSTestRunnerPath>
<MSBuildCommunityTasksDirectory>$(BuildToolsDirectory)MSBuildTasks.1.4.0.45\</MSBuildCommunityTasksDirectory>
Expand All @@ -52,7 +52,7 @@
<VisualStudioSqlServerDataToolsDir>$(VSToolsPath)SSDT\</VisualStudioSqlServerDataToolsDir>
<WebPublishingPath>$(VSToolsPath)Web\Microsoft.Web.Publishing.Tasks.dll</WebPublishingPath>
<SqlServerRedistPath>$(BuildToolsDirectory)SqlServerRedistPath</SqlServerRedistPath>
<OpenCoverPath>$(BuildToolsDirectory)OpenCover.4.0.804\</OpenCoverPath>
<OpenCoverPath>$(BuildToolsDirectory)OpenCover.4.0.1107\</OpenCoverPath>
<OpenCoverMSBuildTasksPath>$(OpenCoverPath)MSBuild\</OpenCoverMSBuildTasksPath>
<ReportGeneratorPath>$(BuildToolsDirectory)ReportGenerator.v1.6.1.0\</ReportGeneratorPath>
<BuildVersionFilePath>$(ScriptsDirectory)buildversion.txt</BuildVersionFilePath>
Expand Down Expand Up @@ -94,6 +94,11 @@
<DeploySkipFilePattern></DeploySkipFilePattern>
<DeployDirectory></DeployDirectory>

<!-- deploy dac properties -->
<DacDeployAllowIncompatiblePlatform>True</DacDeployAllowIncompatiblePlatform>
<DacDeployGenerateSmartDefaults>True</DacDeployGenerateSmartDefaults>
<DacDeployBlockOnPossibleDataLoss>True</DacDeployBlockOnPossibleDataLoss>

<!-- deploy azure properties -->
<AzureSubscriptionID></AzureSubscriptionID>
<AzureCertificateFilename Condition=" '$(AzureCertificateFilename)' == '' ">AzureManagementCertificate.pfx</AzureCertificateFilename>
Expand Down
2 changes: 1 addition & 1 deletion Build/Scripts/targets.msbuild
Expand Up @@ -1077,7 +1077,7 @@
</PropertyGroup>

<!-- deploy data-tier application project (http://msdn.microsoft.com/en-us/library/hh550080(v=vs.103).aspx) -->
<Exec WorkingDirectory="$(MSBuildProjectDirectory)" Command="&quot;$(SqlServerRedistPath)\SqlPackage.exe&quot; /Action:Publish /SourceFile:&quot;$(DacPacPath)&quot; /TargetServerName:&quot;$(DeployServer)&quot; /TargetPassword:&quot;$(DeployPassword)&quot; /TargetUser:&quot;$(DeployUsername)&quot; /TargetDatabaseName:&quot;$(DeployTargetName)&quot; /p:AllowIncompatiblePlatform=True /p:GenerateSmartDefaults=True" Condition=" Exists('$(DacPacPath)') " />
<Exec WorkingDirectory="$(MSBuildProjectDirectory)" Command="&quot;$(SqlServerRedistPath)\SqlPackage.exe&quot; /Action:Publish /SourceFile:&quot;$(DacPacPath)&quot; /TargetServerName:&quot;$(DeployServer)&quot; /TargetPassword:&quot;$(DeployPassword)&quot; /TargetUser:&quot;$(DeployUsername)&quot; /TargetDatabaseName:&quot;$(DeployTargetName)&quot; /p:AllowIncompatiblePlatform=$(DacDeployAllowIncompatiblePlatform) /p:GenerateSmartDefaults=$(DacDeployGenerateSmartDefaults) /p:BlockOnPossibleDataLoss=$(DacDeployBlockOnPossibleDataLoss)" Condition=" Exists('$(DacPacPath)') " />

</Target>

Expand Down

0 comments on commit 53744d4

Please sign in to comment.